[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r106789: Fix some compiler warnings.
From: |
Bastien Guerry |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r106789: Fix some compiler warnings. |
Date: |
Thu, 05 Jan 2012 18:02:29 +0100 |
User-agent: |
Bazaar (2.3.1) |
------------------------------------------------------------
revno: 106789
committer: Bastien Guerry <address@hidden>
branch nick: trunk
timestamp: Thu 2012-01-05 18:02:29 +0100
message:
Fix some compiler warnings.
modified:
lisp/org/ChangeLog
lisp/org/org-agenda.el
lisp/org/org-bbdb.el
lisp/org/org-eshell.el
lisp/org/org-mobile.el
=== modified file 'lisp/org/ChangeLog'
--- a/lisp/org/ChangeLog 2012-01-05 09:46:05 +0000
+++ b/lisp/org/ChangeLog 2012-01-05 17:02:29 +0000
@@ -1,3 +1,19 @@
+2012-01-05 Bastien Guerry <address@hidden>
+
+ * org-eshell.el (org-eshell-open): Use (goto-char (point-max))
+ instead of (end-of-buffer).
+
+ * org-bbdb.el (name): Declare variable.
+ (bbdb-record-get-field, bbdb-search-name)
+ (bbdb-search-organization): Declare as part of ext:bbdb.
+
+ * org-agenda.el: Add an alias for `org-agenda-filter'.
+ (diary-list-entries-hook): Use the non-obsolete hook.
+ (org-agenda-filter-apply): Silent compiler warnings.
+
+ * org-mobile.el (org-mobile-push): Use `org-agenda-tag-filter'
+ instead of the obsolete `org-agenda-filter'.
+
2012-01-03 Bastien Guerry <address@hidden>
* org.el (org-ctrl-c-ctrl-c): Preserve symmetry when adding
=== modified file 'lisp/org/org-agenda.el'
--- a/lisp/org/org-agenda.el 2012-01-04 14:14:29 +0000
+++ b/lisp/org/org-agenda.el 2012-01-05 17:02:29 +0000
@@ -247,7 +247,9 @@
;; Keep custom values for `org-agenda-filter-preset' compatible with
;; the new variable `org-agenda-tag-filter-preset'.
-(defvaralias 'org-agenda-filter-preset 'org-agenda-tag-filter-preset)
+(if (fboundp 'defvaralias)
+ (defvaralias 'org-agenda-filter-preset 'org-agenda-tag-filter-preset)
+ (defvaralias 'org-agenda-filter 'org-agenda-tag-filter))
(defconst org-agenda-custom-commands-local-options
`(repeat :tag "Local settings for this command. Remember to quote values"
@@ -1768,7 +1770,7 @@
(setcdr ass (cdr entry))
(push entry org-agenda-custom-commands))))
-;;; Define the Org-agenda-mode
+;;; Define the org-agenda-mode
(defvar org-agenda-mode-map (make-sparse-keymap)
"Keymap for `org-agenda-mode'.")
@@ -4375,7 +4377,7 @@
;;; Diary integration
(defvar org-disable-agenda-to-diary nil) ;Dynamically-scoped param.
-(defvar list-diary-entries-hook)
+(defvar diary-list-entries-hook)
(defvar diary-time-regexp)
(defun org-get-entries-from-diary (date)
"Get the (Emacs Calendar) diary entries for DATE."
@@ -4384,8 +4386,8 @@
(diary-display-hook '(fancy-diary-display))
(diary-display-function 'fancy-diary-display)
(pop-up-frames nil)
- (list-diary-entries-hook
- (cons 'org-diary-default-entry list-diary-entries-hook))
+ (diary-list-entries-hook
+ (cons 'org-diary-default-entry diary-list-entries-hook))
(diary-file-name-prefix-function nil) ; turn this feature off
(diary-modify-entry-list-string-function
'org-modify-diary-entry-string)
entries
@@ -6180,6 +6182,7 @@
(recenter window-line)))
(defvar org-global-tags-completion-table nil)
+(defvar org-agenda-filtered-by-category nil)
(defvar org-agenda-filter-form nil)
(defun org-agenda-filter-by-category (strip)
@@ -6359,10 +6362,9 @@
(funcall op (or eff (if org-sort-agenda-noeffort-is-high 32767 0))
value))))
-(defvar org-agenda-filtered-by-category nil)
(defun org-agenda-filter-apply (filter type)
"Set FILTER as the new agenda filter and apply it."
- (let (tags)
+ (let (tags cat)
(if (eq type 'tag)
(setq org-agenda-tag-filter filter)
(setq org-agenda-category-filter filter
=== modified file 'lisp/org/org-bbdb.el'
--- a/lisp/org/org-bbdb.el 2012-01-04 14:14:29 +0000
+++ b/lisp/org/org-bbdb.el 2012-01-05 17:02:29 +0000
@@ -112,11 +112,17 @@
(&optional dont-check-disk already-in-db-buffer))
(declare-function bbdb-split "ext:bbdb" (string separators))
(declare-function bbdb-string-trim "ext:bbdb" (string))
+(declare-function bbdb-record-get-field "ext:bbdb"
+ (fn file &optional arglist fileonly))
+;; These two functions below are part of BBDB3:
+(declare-function bbdb-search-name "ext:bbdb" (regexp &optional layout))
+(declare-function bbdb-search-organization "ext:bbdb" (regexp &optional
layout))
(declare-function calendar-leap-year-p "calendar" (year))
(declare-function diary-ordinal-suffix "diary-lib" (n))
(defvar date) ;; dynamically scoped from Org
+(defvar name) ;; dynamically scoped from Org
;; Support for version 2.35
(defvar org-bbdb-old (fboundp 'bbdb-record-get-field-internal))
=== modified file 'lisp/org/org-eshell.el'
--- a/lisp/org/org-eshell.el 2012-01-05 08:00:08 +0000
+++ b/lisp/org/org-eshell.el 2012-01-05 17:02:29 +0000
@@ -46,7 +46,7 @@
(if (get-buffer eshell-buffer-name)
(org-pop-to-buffer-same-window eshell-buffer-name)
(eshell))
- (end-of-buffer)
+ (goto-char (point-max))
(eshell-kill-input)
(insert command)
(eshell-send-input)))
=== modified file 'lisp/org/org-mobile.el'
--- a/lisp/org/org-mobile.el 2012-01-04 15:20:49 +0000
+++ b/lisp/org/org-mobile.el 2012-01-05 17:02:29 +0000
@@ -303,7 +303,7 @@
(interactive)
(let ((a-buffer (get-buffer org-agenda-buffer-name)))
(let ((org-agenda-buffer-name "*SUMO*")
- (org-agenda-filter org-agenda-filter)
+ (org-agenda-tag-filter org-agenda-tag-filter)
(org-agenda-redo-command org-agenda-redo-command))
(save-excursion
(save-window-excursion
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r106789: Fix some compiler warnings.,
Bastien Guerry <=