* M-x locate-library doesn't provide default
@ 2003-07-31 15:36 Kevin Rodgers
0 siblings, 0 replies; only message in thread
From: Kevin Rodgers @ 2003-07-31 15:36 UTC (permalink / raw)
If point is near "foo" in an expression like
(load-library "foo")
or
(require 'foo)
then `M-x locate-library' ought to provide it as the default.
Here's a patch:
*** emacs-21.3/lisp/help.el.orig Thu Sep 5 16:47:16 2002
--- emacs-21.3/lisp/help.el Thu Jul 31 09:35:03 2003
***************
*** 1036,1044 ****
When called from a program, the file name is normaly returned as a
string. When run interactively, the argument INTERACTIVE-CALL is t,
and the file name is displayed in the echo area."
! (interactive (list (read-string "Locate library: ")
! nil nil
! t))
(let (result)
(catch 'answer
(mapc
--- 1036,1046 ----
When called from a program, the file name is normaly returned as a
string. When run interactively, the argument INTERACTIVE-CALL is t,
and the file name is displayed in the echo area."
! (interactive
! (let ((lib (current-word)))
! (list (read-string (format "Locate library (default %s): " lib)
! nil nil lib)
! nil nil t)))
(let (result)
(catch 'answer
(mapc
--
Kevin Rodgers
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-07-31 15:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-31 15:36 M-x locate-library doesn't provide default Kevin Rodgers
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.