* bug#2270: 23.0.90; find-library: (1) doc string, (2) other-window version
@ 2009-02-10 18:23 Drew Adams
0 siblings, 0 replies; 2+ messages in thread
From: Drew Adams @ 2009-02-10 18:23 UTC (permalink / raw)
To: emacs-pretest-bug
emacs -Q
1. The doc string of find-library says only this:
"Find the elisp source of LIBRARY."
Hardly very helpful. What is LIBRARY? A file name as a string?
Absolute or relative? A symbol naming a feature? A symbol naming a
relative file name? All of the above?
Also, "elisp" should be "Emacs-Lisp".
2. Please add this command (or equivalent), after adjusting its doc
string also to explain what LIBRARY is:
(defun find-library-other-window (library)
"Find the Emacs-Lisp source of LIBRARY in another window."
(interactive
(let* ((path (cons (or find-function-source-path load-path)
(find-library-suffixes)))
(def (if (eq (function-called-at-point) 'require)
(save-excursion (backward-up-list)
(forward-char)
(backward-sexp -2)
(thing-at-point 'symbol))
(thing-at-point 'symbol))))
(when def (setq def (and (locate-file-completion def path 'test) def)))
(list (completing-read "Library name: " 'locate-file-completion
path nil nil nil def))))
(let ((buf (find-file-noselect (find-library-name library))))
(pop-to-buffer buf 'other-window)))
In GNU Emacs 23.0.90.1 (i386-mingw-nt5.1.2600)
of 2009-02-01 on SOFT-MJASON
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4)'
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#2270: 23.0.90; find-library: (1) doc string, (2) other-window version
@ 2009-02-11 2:27 Chong Yidong
0 siblings, 0 replies; 2+ messages in thread
From: Chong Yidong @ 2009-02-11 2:27 UTC (permalink / raw)
To: Drew Adams; +Cc: 2270
> 1. The doc string of find-library says only this:
> "Find the elisp source of LIBRARY."
>
> Hardly very helpful.
I've clarified it.
> 2. Please add this command (or equivalent), after adjusting its doc
> string also to explain what LIBRARY is:
After the release, maybe.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-02-11 2:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-10 18:23 bug#2270: 23.0.90; find-library: (1) doc string, (2) other-window version Drew Adams
-- strict thread matches above, loose matches on Subject: below --
2009-02-11 2:27 Chong Yidong
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).