diff options
| author | Juanma Barranquero | 2012-11-17 22:52:12 +0100 |
|---|---|---|
| committer | Juanma Barranquero | 2012-11-17 22:52:12 +0100 |
| commit | d7fe635216f7ac026ede427198dbb75b238d3142 (patch) | |
| tree | 674d4cd98f82ebe2b7ba2287e1413e59663397d2 /lisp | |
| parent | 3dc7dad23add129340e7179e12bc12cc82d07001 (diff) | |
| download | emacs-d7fe635216f7ac026ede427198dbb75b238d3142.tar.gz emacs-d7fe635216f7ac026ede427198dbb75b238d3142.zip | |
lisp/*.el: Add missing declarations.
* descr-text.el (quail-find-key):
* dired.el (desktop-file-name):
* dirtrack.el (shell-prefixed-directory-name, shell-process-cd):
* generic-x.el (comint-mode, comint-exec):
* image-dired.el (widget-forward):
* info.el (speedbar-add-expansion-list, speedbar-center-buffer-smartly)
(speedbar-change-expand-button-char)
(speedbar-change-initial-expansion-list, speedbar-delete-subblock)
(speedbar-make-specialized-keymap, speedbar-make-tag-line):
* printing.el (easy-menu-add-item, easy-menu-remove-item)
(widget-field-action, widget-value-set):
* speedbar.el (imenu--make-index-alist):
* term.el (ring-empty-p, ring-ref, ring-insert-at-beginning)
(ring-length, ring-insert):
* vcursor.el (compare-windows-skip-whitespace):
* woman.el (dired-get-filename):
Declare functions.
* term/w32-win.el (cygwin-convert-path-from-windows): Fix declaration.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 22 | ||||
| -rw-r--r-- | lisp/descr-text.el | 2 | ||||
| -rw-r--r-- | lisp/dired.el | 1 | ||||
| -rw-r--r-- | lisp/dirtrack.el | 3 | ||||
| -rw-r--r-- | lisp/generic-x.el | 3 | ||||
| -rw-r--r-- | lisp/image-dired.el | 2 | ||||
| -rw-r--r-- | lisp/info.el | 11 | ||||
| -rw-r--r-- | lisp/printing.el | 6 | ||||
| -rw-r--r-- | lisp/speedbar.el | 1 | ||||
| -rw-r--r-- | lisp/term.el | 6 | ||||
| -rw-r--r-- | lisp/term/w32-win.el | 2 | ||||
| -rw-r--r-- | lisp/vcursor.el | 2 | ||||
| -rw-r--r-- | lisp/woman.el | 7 |
13 files changed, 66 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c9c879b5e88..f9e9217fe10 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,25 @@ | |||
| 1 | 2012-11-17 Juanma Barranquero <lekktu@gmail.com> | ||
| 2 | |||
| 3 | * descr-text.el (quail-find-key): | ||
| 4 | * dired.el (desktop-file-name): | ||
| 5 | * dirtrack.el (shell-prefixed-directory-name, shell-process-cd): | ||
| 6 | * generic-x.el (comint-mode, comint-exec): | ||
| 7 | * image-dired.el (widget-forward): | ||
| 8 | * info.el (speedbar-add-expansion-list, speedbar-center-buffer-smartly) | ||
| 9 | (speedbar-change-expand-button-char) | ||
| 10 | (speedbar-change-initial-expansion-list, speedbar-delete-subblock) | ||
| 11 | (speedbar-make-specialized-keymap, speedbar-make-tag-line): | ||
| 12 | * printing.el (easy-menu-add-item, easy-menu-remove-item) | ||
| 13 | (widget-field-action, widget-value-set): | ||
| 14 | * speedbar.el (imenu--make-index-alist): | ||
| 15 | * term.el (ring-empty-p, ring-ref, ring-insert-at-beginning) | ||
| 16 | (ring-length, ring-insert): | ||
| 17 | * vcursor.el (compare-windows-skip-whitespace): | ||
| 18 | * woman.el (dired-get-filename): | ||
| 19 | Declare functions. | ||
| 20 | |||
| 21 | * term/w32-win.el (cygwin-convert-path-from-windows): Fix declaration. | ||
| 22 | |||
| 1 | 2012-11-17 Jay Belanger <jay.p.belanger@gmail.com> | 23 | 2012-11-17 Jay Belanger <jay.p.belanger@gmail.com> |
| 2 | 24 | ||
| 3 | * calc/calc.el (calc-gregorian-switch): New variable. | 25 | * calc/calc.el (calc-gregorian-switch): New variable. |
diff --git a/lisp/descr-text.el b/lisp/descr-text.el index 0c7f82d516e..c384b96df86 100644 --- a/lisp/descr-text.el +++ b/lisp/descr-text.el | |||
| @@ -374,6 +374,8 @@ This function is semi-obsolete. Use `get-char-code-property'." | |||
| 374 | (format "%c:%s" x doc))) | 374 | (format "%c:%s" x doc))) |
| 375 | mnemonics ", "))))) | 375 | mnemonics ", "))))) |
| 376 | 376 | ||
| 377 | (declare-function quail-find-key "quail" (char)) | ||
| 378 | |||
| 377 | ;;;###autoload | 379 | ;;;###autoload |
| 378 | (defun describe-char (pos &optional buffer) | 380 | (defun describe-char (pos &optional buffer) |
| 379 | "Describe position POS (interactively, point) and the char after POS. | 381 | "Describe position POS (interactively, point) and the char after POS. |
diff --git a/lisp/dired.el b/lisp/dired.el index 5f7ee48a810..f6056e20d0a 100644 --- a/lisp/dired.el +++ b/lisp/dired.el | |||
| @@ -3732,6 +3732,7 @@ Ask means pop up a menu for the user to select one of copy, move or link." | |||
| 3732 | ;;;; Desktop support | 3732 | ;;;; Desktop support |
| 3733 | 3733 | ||
| 3734 | (eval-when-compile (require 'desktop)) | 3734 | (eval-when-compile (require 'desktop)) |
| 3735 | (declare-function desktop-file-name "desktop" (filename dirname)) | ||
| 3735 | 3736 | ||
| 3736 | (defun dired-desktop-buffer-misc-data (dirname) | 3737 | (defun dired-desktop-buffer-misc-data (dirname) |
| 3737 | "Auxiliary information to be saved in desktop file." | 3738 | "Auxiliary information to be saved in desktop file." |
diff --git a/lisp/dirtrack.el b/lisp/dirtrack.el index 5e825032741..a66fc23dec1 100644 --- a/lisp/dirtrack.el +++ b/lisp/dirtrack.el | |||
| @@ -220,6 +220,9 @@ the mode if ARG is omitted or nil." | |||
| 220 | (goto-char (point-max)) | 220 | (goto-char (point-max)) |
| 221 | (insert msg1 msg2 "\n")))) | 221 | (insert msg1 msg2 "\n")))) |
| 222 | 222 | ||
| 223 | (declare-function shell-prefixed-directory-name "shell" (dir)) | ||
| 224 | (declare-function shell-process-cd "shell" (arg)) | ||
| 225 | |||
| 223 | ;;;###autoload | 226 | ;;;###autoload |
| 224 | (defun dirtrack (input) | 227 | (defun dirtrack (input) |
| 225 | "Determine the current directory from the process output for a prompt. | 228 | "Determine the current directory from the process output for a prompt. |
diff --git a/lisp/generic-x.el b/lisp/generic-x.el index 878021ec5c5..e2533c1f12b 100644 --- a/lisp/generic-x.el +++ b/lisp/generic-x.el | |||
| @@ -549,6 +549,9 @@ like an INI file. You can add this hook to `find-file-hook'." | |||
| 549 | (concat (w32-shell-name) " -c " (buffer-file-name))))) | 549 | (concat (w32-shell-name) " -c " (buffer-file-name))))) |
| 550 | 550 | ||
| 551 | (eval-when-compile (require 'comint)) | 551 | (eval-when-compile (require 'comint)) |
| 552 | (declare-function comint-mode "comint" ()) | ||
| 553 | (declare-function comint-exec "comint" (buffer name command startfile switches)) | ||
| 554 | |||
| 552 | (defun bat-generic-mode-run-as-comint () | 555 | (defun bat-generic-mode-run-as-comint () |
| 553 | "Run the current BAT file in a comint buffer." | 556 | "Run the current BAT file in a comint buffer." |
| 554 | (interactive) | 557 | (interactive) |
diff --git a/lisp/image-dired.el b/lisp/image-dired.el index 3659894f08d..77c968b21ae 100644 --- a/lisp/image-dired.el +++ b/lisp/image-dired.el | |||
| @@ -2454,6 +2454,8 @@ when using per-directory thumbnail file storage")) | |||
| 2454 | (defvar image-dired-widget-list nil | 2454 | (defvar image-dired-widget-list nil |
| 2455 | "List to keep track of meta data in edit buffer.") | 2455 | "List to keep track of meta data in edit buffer.") |
| 2456 | 2456 | ||
| 2457 | (declare-function widget-forward "wid-edit" (arg)) | ||
| 2458 | |||
| 2457 | ;;;###autoload | 2459 | ;;;###autoload |
| 2458 | (defun image-dired-dired-edit-comment-and-tags () | 2460 | (defun image-dired-dired-edit-comment-and-tags () |
| 2459 | "Edit comment and tags of current or marked image files. | 2461 | "Edit comment and tags of current or marked image files. |
diff --git a/lisp/info.el b/lisp/info.el index 36ffa806f04..b0ef5c6bc4d 100644 --- a/lisp/info.el +++ b/lisp/info.el | |||
| @@ -4836,6 +4836,17 @@ first line or header line, and for breadcrumb links.") | |||
| 4836 | ;; current Info node. | 4836 | ;; current Info node. |
| 4837 | (eval-when-compile (require 'speedbar)) | 4837 | (eval-when-compile (require 'speedbar)) |
| 4838 | 4838 | ||
| 4839 | (declare-function speedbar-add-expansion-list "speedbar" (new-list)) | ||
| 4840 | (declare-function speedbar-center-buffer-smartly "speedbar" ()) | ||
| 4841 | (declare-function speedbar-change-expand-button-char "speedbar" (char)) | ||
| 4842 | (declare-function speedbar-change-initial-expansion-list "speedbar" (new-default)) | ||
| 4843 | (declare-function speedbar-delete-subblock "speedbar" (indent)) | ||
| 4844 | (declare-function speedbar-make-specialized-keymap "speedbar" ()) | ||
| 4845 | (declare-function speedbar-make-tag-line "speedbar" | ||
| 4846 | (exp-button-type exp-button-char exp-button-function | ||
| 4847 | exp-button-data tag-button tag-button-function | ||
| 4848 | tag-button-data tag-button-face depth)) | ||
| 4849 | |||
| 4839 | (defvar Info-speedbar-key-map nil | 4850 | (defvar Info-speedbar-key-map nil |
| 4840 | "Keymap used when in the Info display mode.") | 4851 | "Keymap used when in the Info display mode.") |
| 4841 | 4852 | ||
diff --git a/lisp/printing.el b/lisp/printing.el index 02b2fb0139c..26a7648f68e 100644 --- a/lisp/printing.el +++ b/lisp/printing.el | |||
| @@ -1383,6 +1383,10 @@ Used by `pr-menu-bind' and `pr-update-menus'.") | |||
| 1383 | (eval-when-compile | 1383 | (eval-when-compile |
| 1384 | (require 'easymenu)) ; to avoid compilation gripes | 1384 | (require 'easymenu)) ; to avoid compilation gripes |
| 1385 | 1385 | ||
| 1386 | (declare-function easy-menu-add-item "easymenu" | ||
| 1387 | (map path item &optional before)) | ||
| 1388 | (declare-function easy-menu-remove-item "easymenu" (map path name)) | ||
| 1389 | |||
| 1386 | (eval-and-compile | 1390 | (eval-and-compile |
| 1387 | (defun pr-global-menubar (pr-menu-spec) | 1391 | (defun pr-global-menubar (pr-menu-spec) |
| 1388 | (require 'easymenu) | 1392 | (require 'easymenu) |
| @@ -6079,6 +6083,8 @@ COMMAND.exe, COMMAND.bat and COMMAND.com in this order." | |||
| 6079 | (and pr-i-region ; let region activated | 6083 | (and pr-i-region ; let region activated |
| 6080 | (pr-keep-region-active))) | 6084 | (pr-keep-region-active))) |
| 6081 | 6085 | ||
| 6086 | (declare-function widget-field-action "wid-edit" (widget &optional _event)) | ||
| 6087 | (declare-function widget-value-set "wid-edit" (widget value)) | ||
| 6082 | 6088 | ||
| 6083 | (defun pr-insert-section-1 () | 6089 | (defun pr-insert-section-1 () |
| 6084 | ;; 1. Print: | 6090 | ;; 1. Print: |
diff --git a/lisp/speedbar.el b/lisp/speedbar.el index 25a6fbfd998..dd104d436b5 100644 --- a/lisp/speedbar.el +++ b/lisp/speedbar.el | |||
| @@ -3608,6 +3608,7 @@ functions to do caching and flushing if appropriate." | |||
| 3608 | nil | 3608 | nil |
| 3609 | 3609 | ||
| 3610 | (eval-when-compile (condition-case nil (require 'imenu) (error nil))) | 3610 | (eval-when-compile (condition-case nil (require 'imenu) (error nil))) |
| 3611 | (declare-function imenu--make-index-alist "imenu" (&optional no-error)) | ||
| 3611 | 3612 | ||
| 3612 | (defun speedbar-fetch-dynamic-imenu (file) | 3613 | (defun speedbar-fetch-dynamic-imenu (file) |
| 3613 | "Load FILE into a buffer, and generate tags using Imenu. | 3614 | "Load FILE into a buffer, and generate tags using Imenu. |
diff --git a/lisp/term.el b/lisp/term.el index d6acaef1ae9..a7c50d65562 100644 --- a/lisp/term.el +++ b/lisp/term.el | |||
| @@ -397,6 +397,12 @@ | |||
| 397 | (require 'ring) | 397 | (require 'ring) |
| 398 | (require 'ehelp) | 398 | (require 'ehelp) |
| 399 | 399 | ||
| 400 | (declare-function ring-empty-p "ring" (ring)) | ||
| 401 | (declare-function ring-ref "ring" (ring index)) | ||
| 402 | (declare-function ring-insert-at-beginning "ring" (ring item)) | ||
| 403 | (declare-function ring-length "ring" (ring)) | ||
| 404 | (declare-function ring-insert "ring" (ring item)) | ||
| 405 | |||
| 400 | (defgroup term nil | 406 | (defgroup term nil |
| 401 | "General command interpreter in a window." | 407 | "General command interpreter in a window." |
| 402 | :group 'processes) | 408 | :group 'processes) |
diff --git a/lisp/term/w32-win.el b/lisp/term/w32-win.el index 80bc647c2f7..42e09b65750 100644 --- a/lisp/term/w32-win.el +++ b/lisp/term/w32-win.el | |||
| @@ -92,7 +92,7 @@ | |||
| 92 | (declare-function set-message-beep "w32fns.c") | 92 | (declare-function set-message-beep "w32fns.c") |
| 93 | 93 | ||
| 94 | (declare-function cygwin-convert-path-from-windows "cygw32.c" | 94 | (declare-function cygwin-convert-path-from-windows "cygw32.c" |
| 95 | (path absolute_p)) | 95 | (path &optional absolute_p)) |
| 96 | 96 | ||
| 97 | ;; Conditional on new-fontset so bootstrapping works on non-GUI compiles | 97 | ;; Conditional on new-fontset so bootstrapping works on non-GUI compiles |
| 98 | (if (fboundp 'new-fontset) | 98 | (if (fboundp 'new-fontset) |
diff --git a/lisp/vcursor.el b/lisp/vcursor.el index 19cb7a9df8d..a277abcad9b 100644 --- a/lisp/vcursor.el +++ b/lisp/vcursor.el | |||
| @@ -881,6 +881,8 @@ ALL-FRAMES is also used to decide whether to split the window." | |||
| 881 | (vcursor-disable -1)))) | 881 | (vcursor-disable -1)))) |
| 882 | ) | 882 | ) |
| 883 | 883 | ||
| 884 | (declare-function compare-windows-skip-whitespace "compare-w" (start)) | ||
| 885 | |||
| 884 | ;; vcursor-compare-windows is copied from compare-w.el with only | 886 | ;; vcursor-compare-windows is copied from compare-w.el with only |
| 885 | ;; minor modifications; these are too bound up with the function | 887 | ;; minor modifications; these are too bound up with the function |
| 886 | ;; to make it really useful to call compare-windows itself. | 888 | ;; to make it really useful to call compare-windows itself. |
diff --git a/lisp/woman.el b/lisp/woman.el index 46b6b680440..193dcd99022 100644 --- a/lisp/woman.el +++ b/lisp/woman.el | |||
| @@ -1550,11 +1550,13 @@ Also make each path-info component into a list. | |||
| 1550 | (woman-dired-define-keys) | 1550 | (woman-dired-define-keys) |
| 1551 | (add-hook 'dired-mode-hook 'woman-dired-define-keys)) | 1551 | (add-hook 'dired-mode-hook 'woman-dired-define-keys)) |
| 1552 | 1552 | ||
| 1553 | (declare-function dired-get-filename "dired" | ||
| 1554 | (&optional localp no-error-if-not-filep)) | ||
| 1555 | |||
| 1553 | ;;;###autoload | 1556 | ;;;###autoload |
| 1554 | (defun woman-dired-find-file () | 1557 | (defun woman-dired-find-file () |
| 1555 | "In dired, run the WoMan man-page browser on this file." | 1558 | "In dired, run the WoMan man-page browser on this file." |
| 1556 | (interactive) | 1559 | (interactive) |
| 1557 | ;; dired-get-filename is defined in dired.el | ||
| 1558 | (woman-find-file (dired-get-filename))) | 1560 | (woman-find-file (dired-get-filename))) |
| 1559 | 1561 | ||
| 1560 | 1562 | ||
| @@ -1947,6 +1949,9 @@ Optional argument REDRAW, if non-nil, forces mode line to be updated." | |||
| 1947 | (message "Woman fill column set to %s." | 1949 | (message "Woman fill column set to %s." |
| 1948 | (if woman-fill-frame "frame width" woman-fill-column))) | 1950 | (if woman-fill-frame "frame width" woman-fill-column))) |
| 1949 | 1951 | ||
| 1952 | (declare-function apropos-print "apropos" | ||
| 1953 | (do-keys spacing &optional text nosubst)) | ||
| 1954 | |||
| 1950 | (defun woman-mini-help () | 1955 | (defun woman-mini-help () |
| 1951 | "Display WoMan commands and user options in an `apropos' buffer." | 1956 | "Display WoMan commands and user options in an `apropos' buffer." |
| 1952 | ;; Based on apropos-command in apropos.el | 1957 | ;; Based on apropos-command in apropos.el |