diff options
| author | Bastien Guerry | 2012-01-05 18:02:29 +0100 |
|---|---|---|
| committer | Bastien Guerry | 2012-01-05 18:02:29 +0100 |
| commit | c74587e6b0c545eb4fb57654a79ca88ea14a6764 (patch) | |
| tree | 0c2eef2d63420e7e657649d9805984aac1f8ed5b | |
| parent | 7baca3bcbe2be3cbf2108eda589cf5c6147e2566 (diff) | |
| download | emacs-c74587e6b0c545eb4fb57654a79ca88ea14a6764.tar.gz emacs-c74587e6b0c545eb4fb57654a79ca88ea14a6764.zip | |
Fix some compiler warnings.
| -rw-r--r-- | lisp/org/ChangeLog | 16 | ||||
| -rw-r--r-- | lisp/org/org-agenda.el | 16 | ||||
| -rw-r--r-- | lisp/org/org-bbdb.el | 6 | ||||
| -rw-r--r-- | lisp/org/org-eshell.el | 2 | ||||
| -rw-r--r-- | lisp/org/org-mobile.el | 2 |
5 files changed, 33 insertions, 9 deletions
diff --git a/lisp/org/ChangeLog b/lisp/org/ChangeLog index 4c902de8e17..0a59f1f837e 100644 --- a/lisp/org/ChangeLog +++ b/lisp/org/ChangeLog | |||
| @@ -1,3 +1,19 @@ | |||
| 1 | 2012-01-05 Bastien Guerry <bzg@gnu.org> | ||
| 2 | |||
| 3 | * org-eshell.el (org-eshell-open): Use (goto-char (point-max)) | ||
| 4 | instead of (end-of-buffer). | ||
| 5 | |||
| 6 | * org-bbdb.el (name): Declare variable. | ||
| 7 | (bbdb-record-get-field, bbdb-search-name) | ||
| 8 | (bbdb-search-organization): Declare as part of ext:bbdb. | ||
| 9 | |||
| 10 | * org-agenda.el: Add an alias for `org-agenda-filter'. | ||
| 11 | (diary-list-entries-hook): Use the non-obsolete hook. | ||
| 12 | (org-agenda-filter-apply): Silent compiler warnings. | ||
| 13 | |||
| 14 | * org-mobile.el (org-mobile-push): Use `org-agenda-tag-filter' | ||
| 15 | instead of the obsolete `org-agenda-filter'. | ||
| 16 | |||
| 1 | 2012-01-03 Bastien Guerry <bzg@gnu.org> | 17 | 2012-01-03 Bastien Guerry <bzg@gnu.org> |
| 2 | 18 | ||
| 3 | * org.el (org-ctrl-c-ctrl-c): Preserve symmetry when adding | 19 | * org.el (org-ctrl-c-ctrl-c): Preserve symmetry when adding |
diff --git a/lisp/org/org-agenda.el b/lisp/org/org-agenda.el index 70df5a15777..d444aff4f2b 100644 --- a/lisp/org/org-agenda.el +++ b/lisp/org/org-agenda.el | |||
| @@ -247,7 +247,9 @@ you can \"misuse\" it to also add other text to the header. However, | |||
| 247 | 247 | ||
| 248 | ;; Keep custom values for `org-agenda-filter-preset' compatible with | 248 | ;; Keep custom values for `org-agenda-filter-preset' compatible with |
| 249 | ;; the new variable `org-agenda-tag-filter-preset'. | 249 | ;; the new variable `org-agenda-tag-filter-preset'. |
| 250 | (defvaralias 'org-agenda-filter-preset 'org-agenda-tag-filter-preset) | 250 | (if (fboundp 'defvaralias) |
| 251 | (defvaralias 'org-agenda-filter-preset 'org-agenda-tag-filter-preset) | ||
| 252 | (defvaralias 'org-agenda-filter 'org-agenda-tag-filter)) | ||
| 251 | 253 | ||
| 252 | (defconst org-agenda-custom-commands-local-options | 254 | (defconst org-agenda-custom-commands-local-options |
| 253 | `(repeat :tag "Local settings for this command. Remember to quote values" | 255 | `(repeat :tag "Local settings for this command. Remember to quote values" |
| @@ -1768,7 +1770,7 @@ works you probably want to add it to `org-agenda-custom-commands' for good." | |||
| 1768 | (setcdr ass (cdr entry)) | 1770 | (setcdr ass (cdr entry)) |
| 1769 | (push entry org-agenda-custom-commands)))) | 1771 | (push entry org-agenda-custom-commands)))) |
| 1770 | 1772 | ||
| 1771 | ;;; Define the Org-agenda-mode | 1773 | ;;; Define the org-agenda-mode |
| 1772 | 1774 | ||
| 1773 | (defvar org-agenda-mode-map (make-sparse-keymap) | 1775 | (defvar org-agenda-mode-map (make-sparse-keymap) |
| 1774 | "Keymap for `org-agenda-mode'.") | 1776 | "Keymap for `org-agenda-mode'.") |
| @@ -4375,7 +4377,7 @@ of what a project is and how to check if it stuck, customize the variable | |||
| 4375 | ;;; Diary integration | 4377 | ;;; Diary integration |
| 4376 | 4378 | ||
| 4377 | (defvar org-disable-agenda-to-diary nil) ;Dynamically-scoped param. | 4379 | (defvar org-disable-agenda-to-diary nil) ;Dynamically-scoped param. |
| 4378 | (defvar list-diary-entries-hook) | 4380 | (defvar diary-list-entries-hook) |
| 4379 | (defvar diary-time-regexp) | 4381 | (defvar diary-time-regexp) |
| 4380 | (defun org-get-entries-from-diary (date) | 4382 | (defun org-get-entries-from-diary (date) |
| 4381 | "Get the (Emacs Calendar) diary entries for DATE." | 4383 | "Get the (Emacs Calendar) diary entries for DATE." |
| @@ -4384,8 +4386,8 @@ of what a project is and how to check if it stuck, customize the variable | |||
| 4384 | (diary-display-hook '(fancy-diary-display)) | 4386 | (diary-display-hook '(fancy-diary-display)) |
| 4385 | (diary-display-function 'fancy-diary-display) | 4387 | (diary-display-function 'fancy-diary-display) |
| 4386 | (pop-up-frames nil) | 4388 | (pop-up-frames nil) |
| 4387 | (list-diary-entries-hook | 4389 | (diary-list-entries-hook |
| 4388 | (cons 'org-diary-default-entry list-diary-entries-hook)) | 4390 | (cons 'org-diary-default-entry diary-list-entries-hook)) |
| 4389 | (diary-file-name-prefix-function nil) ; turn this feature off | 4391 | (diary-file-name-prefix-function nil) ; turn this feature off |
| 4390 | (diary-modify-entry-list-string-function 'org-modify-diary-entry-string) | 4392 | (diary-modify-entry-list-string-function 'org-modify-diary-entry-string) |
| 4391 | entries | 4393 | entries |
| @@ -6180,6 +6182,7 @@ When this is the global TODO list, a prefix argument will be interpreted." | |||
| 6180 | (recenter window-line))) | 6182 | (recenter window-line))) |
| 6181 | 6183 | ||
| 6182 | (defvar org-global-tags-completion-table nil) | 6184 | (defvar org-global-tags-completion-table nil) |
| 6185 | (defvar org-agenda-filtered-by-category nil) | ||
| 6183 | (defvar org-agenda-filter-form nil) | 6186 | (defvar org-agenda-filter-form nil) |
| 6184 | 6187 | ||
| 6185 | (defun org-agenda-filter-by-category (strip) | 6188 | (defun org-agenda-filter-by-category (strip) |
| @@ -6359,10 +6362,9 @@ If the line does not have an effort defined, return nil." | |||
| 6359 | (funcall op (or eff (if org-sort-agenda-noeffort-is-high 32767 0)) | 6362 | (funcall op (or eff (if org-sort-agenda-noeffort-is-high 32767 0)) |
| 6360 | value)))) | 6363 | value)))) |
| 6361 | 6364 | ||
| 6362 | (defvar org-agenda-filtered-by-category nil) | ||
| 6363 | (defun org-agenda-filter-apply (filter type) | 6365 | (defun org-agenda-filter-apply (filter type) |
| 6364 | "Set FILTER as the new agenda filter and apply it." | 6366 | "Set FILTER as the new agenda filter and apply it." |
| 6365 | (let (tags) | 6367 | (let (tags cat) |
| 6366 | (if (eq type 'tag) | 6368 | (if (eq type 'tag) |
| 6367 | (setq org-agenda-tag-filter filter) | 6369 | (setq org-agenda-tag-filter filter) |
| 6368 | (setq org-agenda-category-filter filter | 6370 | (setq org-agenda-category-filter filter |
diff --git a/lisp/org/org-bbdb.el b/lisp/org/org-bbdb.el index e587b6ac7c0..3df4c2044e9 100644 --- a/lisp/org/org-bbdb.el +++ b/lisp/org/org-bbdb.el | |||
| @@ -112,11 +112,17 @@ | |||
| 112 | (&optional dont-check-disk already-in-db-buffer)) | 112 | (&optional dont-check-disk already-in-db-buffer)) |
| 113 | (declare-function bbdb-split "ext:bbdb" (string separators)) | 113 | (declare-function bbdb-split "ext:bbdb" (string separators)) |
| 114 | (declare-function bbdb-string-trim "ext:bbdb" (string)) | 114 | (declare-function bbdb-string-trim "ext:bbdb" (string)) |
| 115 | (declare-function bbdb-record-get-field "ext:bbdb" | ||
| 116 | (fn file &optional arglist fileonly)) | ||
| 117 | ;; These two functions below are part of BBDB3: | ||
| 118 | (declare-function bbdb-search-name "ext:bbdb" (regexp &optional layout)) | ||
| 119 | (declare-function bbdb-search-organization "ext:bbdb" (regexp &optional layout)) | ||
| 115 | 120 | ||
| 116 | (declare-function calendar-leap-year-p "calendar" (year)) | 121 | (declare-function calendar-leap-year-p "calendar" (year)) |
| 117 | (declare-function diary-ordinal-suffix "diary-lib" (n)) | 122 | (declare-function diary-ordinal-suffix "diary-lib" (n)) |
| 118 | 123 | ||
| 119 | (defvar date) ;; dynamically scoped from Org | 124 | (defvar date) ;; dynamically scoped from Org |
| 125 | (defvar name) ;; dynamically scoped from Org | ||
| 120 | 126 | ||
| 121 | ;; Support for version 2.35 | 127 | ;; Support for version 2.35 |
| 122 | (defvar org-bbdb-old (fboundp 'bbdb-record-get-field-internal)) | 128 | (defvar org-bbdb-old (fboundp 'bbdb-record-get-field-internal)) |
diff --git a/lisp/org/org-eshell.el b/lisp/org/org-eshell.el index c386af86b8f..16b19e26d08 100644 --- a/lisp/org/org-eshell.el +++ b/lisp/org/org-eshell.el | |||
| @@ -46,7 +46,7 @@ | |||
| 46 | (if (get-buffer eshell-buffer-name) | 46 | (if (get-buffer eshell-buffer-name) |
| 47 | (org-pop-to-buffer-same-window eshell-buffer-name) | 47 | (org-pop-to-buffer-same-window eshell-buffer-name) |
| 48 | (eshell)) | 48 | (eshell)) |
| 49 | (end-of-buffer) | 49 | (goto-char (point-max)) |
| 50 | (eshell-kill-input) | 50 | (eshell-kill-input) |
| 51 | (insert command) | 51 | (insert command) |
| 52 | (eshell-send-input))) | 52 | (eshell-send-input))) |
diff --git a/lisp/org/org-mobile.el b/lisp/org/org-mobile.el index b049f4ec5e0..bcc1c90932a 100644 --- a/lisp/org/org-mobile.el +++ b/lisp/org/org-mobile.el | |||
| @@ -303,7 +303,7 @@ create all custom agenda views, for upload to the mobile phone." | |||
| 303 | (interactive) | 303 | (interactive) |
| 304 | (let ((a-buffer (get-buffer org-agenda-buffer-name))) | 304 | (let ((a-buffer (get-buffer org-agenda-buffer-name))) |
| 305 | (let ((org-agenda-buffer-name "*SUMO*") | 305 | (let ((org-agenda-buffer-name "*SUMO*") |
| 306 | (org-agenda-filter org-agenda-filter) | 306 | (org-agenda-tag-filter org-agenda-tag-filter) |
| 307 | (org-agenda-redo-command org-agenda-redo-command)) | 307 | (org-agenda-redo-command org-agenda-redo-command)) |
| 308 | (save-excursion | 308 | (save-excursion |
| 309 | (save-window-excursion | 309 | (save-window-excursion |