aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2005-01-05 19:31:57 +0000
committerRichard M. Stallman2005-01-05 19:31:57 +0000
commit436c08c28835f5c0f7080a1ddd3a876f65e16145 (patch)
treee2589164261a967b9fae22027181a9e7c4e94fbb
parente12029167de3212f4d9679693409ecd695942304 (diff)
downloademacs-436c08c28835f5c0f7080a1ddd3a876f65e16145.tar.gz
emacs-436c08c28835f5c0f7080a1ddd3a876f65e16145.zip
(find-variable, find-variable-other-window, find-variable-other-frame):
Fix the TYPE args to find-function-read and find-function-do-it. (find-function): Doc fix. (find-function-at-point): Replace function-at-point alias.
-rw-r--r--lisp/ChangeLog8
-rw-r--r--lisp/emacs-lisp/find-func.el16
2 files changed, 16 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 7efce4fa93b..730d199dc3b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,11 @@
12005-01-05 Richard M. Stallman <rms@gnu.org>
2
3 * emacs-lisp/find-func.el (find-variable)
4 (find-variable-other-window, find-variable-other-frame):
5 Fix the TYPE args to find-function-read and find-function-do-it.
6 (find-function): Doc fix.
7 (find-function-at-point): Replace function-at-point alias.
8
12005-01-04 Richard M. Stallman <rms@gnu.org> 92005-01-04 Richard M. Stallman <rms@gnu.org>
2 10
3 * cus-face.el (custom-declare-face): 11 * cus-face.el (custom-declare-face):
diff --git a/lisp/emacs-lisp/find-func.el b/lisp/emacs-lisp/find-func.el
index d6cc8be7062..49e44ca5fee 100644
--- a/lisp/emacs-lisp/find-func.el
+++ b/lisp/emacs-lisp/find-func.el
@@ -329,7 +329,7 @@ Set mark before moving, if the buffer already existed."
329 "Find the definition of the FUNCTION near point. 329 "Find the definition of the FUNCTION near point.
330 330
331Finds the Emacs Lisp library containing the definition of the function 331Finds the Emacs Lisp library containing the definition of the function
332near point (selected by `function-at-point') in a buffer and 332near point (selected by `function-called-at-point') in a buffer and
333places point before the definition. 333places point before the definition.
334Set mark before moving, if the buffer already existed. 334Set mark before moving, if the buffer already existed.
335 335
@@ -383,24 +383,24 @@ Set mark before moving, if the buffer already existed.
383The library where VARIABLE is defined is searched for in 383The library where VARIABLE is defined is searched for in
384`find-function-source-path', if non nil, otherwise in `load-path'. 384`find-function-source-path', if non nil, otherwise in `load-path'.
385See also `find-function-recenter-line' and `find-function-after-hook'." 385See also `find-function-recenter-line' and `find-function-after-hook'."
386 (interactive (find-function-read 'variable)) 386 (interactive (find-function-read 'defvar))
387 (find-function-do-it variable t 'switch-to-buffer)) 387 (find-function-do-it variable 'defvar 'switch-to-buffer))
388 388
389;;;###autoload 389;;;###autoload
390(defun find-variable-other-window (variable) 390(defun find-variable-other-window (variable)
391 "Find, in another window, the definition of VARIABLE near point. 391 "Find, in another window, the definition of VARIABLE near point.
392 392
393See `find-variable' for more details." 393See `find-variable' for more details."
394 (interactive (find-function-read 'variable)) 394 (interactive (find-function-read 'defvar))
395 (find-function-do-it variable t 'switch-to-buffer-other-window)) 395 (find-function-do-it variable 'defvar 'switch-to-buffer-other-window))
396 396
397;;;###autoload 397;;;###autoload
398(defun find-variable-other-frame (variable) 398(defun find-variable-other-frame (variable)
399 "Find, in annother frame, the definition of VARIABLE near point. 399 "Find, in annother frame, the definition of VARIABLE near point.
400 400
401See `find-variable' for more details." 401See `find-variable' for more details."
402 (interactive (find-function-read 'variable)) 402 (interactive (find-function-read 'defvar))
403 (find-function-do-it variable t 'switch-to-buffer-other-frame)) 403 (find-function-do-it variable 'defvar 'switch-to-buffer-other-frame))
404 404
405;;;###autoload 405;;;###autoload
406(defun find-definition-noselect (symbol type &optional file) 406(defun find-definition-noselect (symbol type &optional file)
@@ -465,7 +465,7 @@ Set mark before moving, if the buffer already existed."
465(defun find-function-at-point () 465(defun find-function-at-point ()
466 "Find directly the function at point in the other window." 466 "Find directly the function at point in the other window."
467 (interactive) 467 (interactive)
468 (let ((symb (function-at-point))) 468 (let ((symb (function-called-at-point)))
469 (when symb 469 (when symb
470 (find-function-other-window symb)))) 470 (find-function-other-window symb))))
471 471