Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
7c23d9e8
Commit
7c23d9e8
authored
Oct 21, 2010
by
Stefan Monnier
Browse files
* lisp/emacs-lisp/find-func.el (find-library): Use test-completion.
parent
e0da801a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
13 deletions
+14
-13
lisp/ChangeLog
lisp/ChangeLog
+9
-6
lisp/emacs-lisp/find-func.el
lisp/emacs-lisp/find-func.el
+5
-7
No files found.
lisp/ChangeLog
View file @
7c23d9e8
2010-10-22 Stefan Monnier <monnier@iro.umontreal.ca>
* emacs-lisp/find-func.el (find-library): Use test-completion.
2010-10-21 Lars Magne Ingebrigtsen <larsi@gnus.org>
2010-10-21 Lars Magne Ingebrigtsen <larsi@gnus.org>
* newcomment.el (comment-dwim): Fix the intentation in the doc
* newcomment.el (comment-dwim): Fix the intentation in the doc string.
string.
010-10-21 Michael Albinus <michael.albinus@gmx.de>
010-10-21 Michael Albinus <michael.albinus@gmx.de>
...
@@ -13,15 +16,15 @@
...
@@ -13,15 +16,15 @@
2010-10-21 Daiki Ueno <ueno@unixuser.org>
2010-10-21 Daiki Ueno <ueno@unixuser.org>
* hexl.el (hexl-mode, hexl-mode-exit):
Tweak
* hexl.el (hexl-mode, hexl-mode-exit):
revert-buffer-function to inhibit auto-mode-alist (Bug#7252).
Tweak
revert-buffer-function to inhibit auto-mode-alist (Bug#7252).
(hexl-revert-buffer-function): New function.
(hexl-revert-buffer-function): New function.
(hexl-before-revert-hook, hexl-after-revert-hook): Abolish.
(hexl-before-revert-hook, hexl-after-revert-hook): Abolish.
2010-10-19 Alan Mackenzie <acm@muc.de>
2010-10-19 Alan Mackenzie <acm@muc.de>
* progmodes/cc-langs.el (c-type-decl-prefix-key): C++ bit:
move
* progmodes/cc-langs.el (c-type-decl-prefix-key): C++ bit:
"\(const\|throw\|volatile\)\>" nearer the start of the regexp, so
Move
"\(const\|throw\|volatile\)\>" nearer the start of the regexp, so
that these keywords aren't wrongly matched as identifiers.
that these keywords aren't wrongly matched as identifiers.
* progmodes/cc-mode.el (c-before-change, c-after-change): Move the
* progmodes/cc-mode.el (c-before-change, c-after-change): Move the
...
...
lisp/emacs-lisp/find-func.el
View file @
7c23d9e8
...
@@ -213,6 +213,8 @@ LIBRARY should be a string (the name of the library)."
...
@@ -213,6 +213,8 @@ LIBRARY should be a string (the name of the library)."
(interactive
(interactive
(let* ((dirs (or find-function-source-path load-path))
(let* ((dirs (or find-function-source-path load-path))
(suffixes (find-library-suffixes))
(suffixes (find-library-suffixes))
(table (apply-partially 'locate-file-completion-table
dirs suffixes))
(def (if (eq (function-called-at-point) 'require)
(def (if (eq (function-called-at-point) 'require)
;; `function-called-at-point' may return 'require
;; `function-called-at-point' may return 'require
;; with `point' anywhere on this line. So wrap the
;; with `point' anywhere on this line. So wrap the
...
@@ -226,16 +228,12 @@ LIBRARY should be a string (the name of the library)."
...
@@ -226,16 +228,12 @@ LIBRARY should be a string (the name of the library)."
(thing-at-point 'symbol))
(thing-at-point 'symbol))
(error nil))
(error nil))
(thing-at-point 'symbol))))
(thing-at-point 'symbol))))
(when def
(when (and def (not (test-completion def table)))
(setq def (and (locate-file-completion-table
(setq def nil))
dirs suffixes def nil 'lambda)
def)))
(list
(list
(completing-read (if def (format "Library name (default %s): " def)
(completing-read (if def (format "Library name (default %s): " def)
"Library name: ")
"Library name: ")
(apply-partially 'locate-file-completion-table
table nil nil nil nil def))))
dirs suffixes)
nil nil nil nil def))))
(let ((buf (find-file-noselect (find-library-name library))))
(let ((buf (find-file-noselect (find-library-name library))))
(condition-case nil (switch-to-buffer buf) (error (pop-to-buffer buf)))))
(condition-case nil (switch-to-buffer buf) (error (pop-to-buffer buf)))))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment