From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: M-x locate-library doesn't provide default
Date: Thu, 31 Jul 2003 09:36:27 -0600 [thread overview]
Message-ID: <3F29377B.6080903@yahoo.com> (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
reply other threads:[~2003-07-31 15:36 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3F29377B.6080903@yahoo.com \
--to=ihs_4664@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.