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.
This commit is contained in:
parent
3dc7dad23a
commit
d7fe635216
13 changed files with 66 additions and 2 deletions
|
@ -1,3 +1,25 @@
|
|||
2012-11-17 Juanma Barranquero <lekktu@gmail.com>
|
||||
|
||||
* 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.
|
||||
|
||||
2012-11-17 Jay Belanger <jay.p.belanger@gmail.com>
|
||||
|
||||
* calc/calc.el (calc-gregorian-switch): New variable.
|
||||
|
|
|
@ -374,6 +374,8 @@ This function is semi-obsolete. Use `get-char-code-property'."
|
|||
(format "%c:%s" x doc)))
|
||||
mnemonics ", ")))))
|
||||
|
||||
(declare-function quail-find-key "quail" (char))
|
||||
|
||||
;;;###autoload
|
||||
(defun describe-char (pos &optional buffer)
|
||||
"Describe position POS (interactively, point) and the char after POS.
|
||||
|
|
|
@ -3732,6 +3732,7 @@ Ask means pop up a menu for the user to select one of copy, move or link."
|
|||
;;;; Desktop support
|
||||
|
||||
(eval-when-compile (require 'desktop))
|
||||
(declare-function desktop-file-name "desktop" (filename dirname))
|
||||
|
||||
(defun dired-desktop-buffer-misc-data (dirname)
|
||||
"Auxiliary information to be saved in desktop file."
|
||||
|
|
|
@ -220,6 +220,9 @@ the mode if ARG is omitted or nil."
|
|||
(goto-char (point-max))
|
||||
(insert msg1 msg2 "\n"))))
|
||||
|
||||
(declare-function shell-prefixed-directory-name "shell" (dir))
|
||||
(declare-function shell-process-cd "shell" (arg))
|
||||
|
||||
;;;###autoload
|
||||
(defun dirtrack (input)
|
||||
"Determine the current directory from the process output for a prompt.
|
||||
|
|
|
@ -549,6 +549,9 @@ like an INI file. You can add this hook to `find-file-hook'."
|
|||
(concat (w32-shell-name) " -c " (buffer-file-name)))))
|
||||
|
||||
(eval-when-compile (require 'comint))
|
||||
(declare-function comint-mode "comint" ())
|
||||
(declare-function comint-exec "comint" (buffer name command startfile switches))
|
||||
|
||||
(defun bat-generic-mode-run-as-comint ()
|
||||
"Run the current BAT file in a comint buffer."
|
||||
(interactive)
|
||||
|
|
|
@ -2454,6 +2454,8 @@ when using per-directory thumbnail file storage"))
|
|||
(defvar image-dired-widget-list nil
|
||||
"List to keep track of meta data in edit buffer.")
|
||||
|
||||
(declare-function widget-forward "wid-edit" (arg))
|
||||
|
||||
;;;###autoload
|
||||
(defun image-dired-dired-edit-comment-and-tags ()
|
||||
"Edit comment and tags of current or marked image files.
|
||||
|
|
11
lisp/info.el
11
lisp/info.el
|
@ -4836,6 +4836,17 @@ first line or header line, and for breadcrumb links.")
|
|||
;; current Info node.
|
||||
(eval-when-compile (require 'speedbar))
|
||||
|
||||
(declare-function speedbar-add-expansion-list "speedbar" (new-list))
|
||||
(declare-function speedbar-center-buffer-smartly "speedbar" ())
|
||||
(declare-function speedbar-change-expand-button-char "speedbar" (char))
|
||||
(declare-function speedbar-change-initial-expansion-list "speedbar" (new-default))
|
||||
(declare-function speedbar-delete-subblock "speedbar" (indent))
|
||||
(declare-function speedbar-make-specialized-keymap "speedbar" ())
|
||||
(declare-function speedbar-make-tag-line "speedbar"
|
||||
(exp-button-type exp-button-char exp-button-function
|
||||
exp-button-data tag-button tag-button-function
|
||||
tag-button-data tag-button-face depth))
|
||||
|
||||
(defvar Info-speedbar-key-map nil
|
||||
"Keymap used when in the Info display mode.")
|
||||
|
||||
|
|
|
@ -1383,6 +1383,10 @@ Used by `pr-menu-bind' and `pr-update-menus'.")
|
|||
(eval-when-compile
|
||||
(require 'easymenu)) ; to avoid compilation gripes
|
||||
|
||||
(declare-function easy-menu-add-item "easymenu"
|
||||
(map path item &optional before))
|
||||
(declare-function easy-menu-remove-item "easymenu" (map path name))
|
||||
|
||||
(eval-and-compile
|
||||
(defun pr-global-menubar (pr-menu-spec)
|
||||
(require 'easymenu)
|
||||
|
@ -6079,6 +6083,8 @@ COMMAND.exe, COMMAND.bat and COMMAND.com in this order."
|
|||
(and pr-i-region ; let region activated
|
||||
(pr-keep-region-active)))
|
||||
|
||||
(declare-function widget-field-action "wid-edit" (widget &optional _event))
|
||||
(declare-function widget-value-set "wid-edit" (widget value))
|
||||
|
||||
(defun pr-insert-section-1 ()
|
||||
;; 1. Print:
|
||||
|
|
|
@ -3608,6 +3608,7 @@ functions to do caching and flushing if appropriate."
|
|||
nil
|
||||
|
||||
(eval-when-compile (condition-case nil (require 'imenu) (error nil)))
|
||||
(declare-function imenu--make-index-alist "imenu" (&optional no-error))
|
||||
|
||||
(defun speedbar-fetch-dynamic-imenu (file)
|
||||
"Load FILE into a buffer, and generate tags using Imenu.
|
||||
|
|
|
@ -397,6 +397,12 @@
|
|||
(require 'ring)
|
||||
(require 'ehelp)
|
||||
|
||||
(declare-function ring-empty-p "ring" (ring))
|
||||
(declare-function ring-ref "ring" (ring index))
|
||||
(declare-function ring-insert-at-beginning "ring" (ring item))
|
||||
(declare-function ring-length "ring" (ring))
|
||||
(declare-function ring-insert "ring" (ring item))
|
||||
|
||||
(defgroup term nil
|
||||
"General command interpreter in a window."
|
||||
:group 'processes)
|
||||
|
|
|
@ -92,7 +92,7 @@
|
|||
(declare-function set-message-beep "w32fns.c")
|
||||
|
||||
(declare-function cygwin-convert-path-from-windows "cygw32.c"
|
||||
(path absolute_p))
|
||||
(path &optional absolute_p))
|
||||
|
||||
;; Conditional on new-fontset so bootstrapping works on non-GUI compiles
|
||||
(if (fboundp 'new-fontset)
|
||||
|
|
|
@ -881,6 +881,8 @@ ALL-FRAMES is also used to decide whether to split the window."
|
|||
(vcursor-disable -1))))
|
||||
)
|
||||
|
||||
(declare-function compare-windows-skip-whitespace "compare-w" (start))
|
||||
|
||||
;; vcursor-compare-windows is copied from compare-w.el with only
|
||||
;; minor modifications; these are too bound up with the function
|
||||
;; to make it really useful to call compare-windows itself.
|
||||
|
|
|
@ -1550,11 +1550,13 @@ Also make each path-info component into a list.
|
|||
(woman-dired-define-keys)
|
||||
(add-hook 'dired-mode-hook 'woman-dired-define-keys))
|
||||
|
||||
(declare-function dired-get-filename "dired"
|
||||
(&optional localp no-error-if-not-filep))
|
||||
|
||||
;;;###autoload
|
||||
(defun woman-dired-find-file ()
|
||||
"In dired, run the WoMan man-page browser on this file."
|
||||
(interactive)
|
||||
;; dired-get-filename is defined in dired.el
|
||||
(woman-find-file (dired-get-filename)))
|
||||
|
||||
|
||||
|
@ -1947,6 +1949,9 @@ Optional argument REDRAW, if non-nil, forces mode line to be updated."
|
|||
(message "Woman fill column set to %s."
|
||||
(if woman-fill-frame "frame width" woman-fill-column)))
|
||||
|
||||
(declare-function apropos-print "apropos"
|
||||
(do-keys spacing &optional text nosubst))
|
||||
|
||||
(defun woman-mini-help ()
|
||||
"Display WoMan commands and user options in an `apropos' buffer."
|
||||
;; Based on apropos-command in apropos.el
|
||||
|
|
Loading…
Add table
Reference in a new issue