[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: patch for locate.el when called with prefix arg
From: |
Luc Teirlinck |
Subject: |
Re: patch for locate.el when called with prefix arg |
Date: |
Mon, 23 Apr 2007 11:59:29 -0500 (CDT) |
I suggest the following small changes to the Changelog (mainly for the
benefit of people who might want to find out when the optional arg for
locate was introduced), as well as the adding of an additional comment
to locate.el, to make clear that the use of `current-prefix-arg' in
`locate-prompt-for-search-string' is legitimate.
These changes are so trivial that I thought of just committing them,
but I am unsure about the exact procedure, given the pretest, which is
why I post them.
===File ~/changelog-diff====================================
*** ChangeLog 23 Apr 2007 11:17:11 -0500 1.11042
--- ChangeLog 23 Apr 2007 11:46:01 -0500
***************
*** 8,16 ****
2007-04-23 Luc Teirlinck <address@hidden>
* locate.el (locate-local-prompt): New var.
(locate-prompt-for-search-string): New function.
! (locate): Make locate-local-prompt buffer-local. Use
! locate-prompt-for-search-string.
(locate-with-filter): New optional arg. Use
locate-prompt-for-search-string.
(locate-update): Bind locate-prompt-for-command.
--- 8,17 ----
2007-04-23 Luc Teirlinck <address@hidden>
* locate.el (locate-local-prompt): New var.
+ (locate-prompt-for-command): Doc fix.
(locate-prompt-for-search-string): New function.
! (locate): New optional arg. Make locate-local-prompt
! buffer-local. Use locate-prompt-for-search-string.
(locate-with-filter): New optional arg. Use
locate-prompt-for-search-string.
(locate-update): Bind locate-prompt-for-command.
============================================================
===File ~/locate-diff=======================================
*** locate.el 23 Apr 2007 11:17:12 -0500 1.43
--- locate.el 23 Apr 2007 11:40:14 -0500
***************
*** 245,250 ****
--- 245,251 ----
(skip-chars-backward "." pt)
(point)))))
+ ;; Function for use in interactive declarations.
(defun locate-prompt-for-search-string ()
(if (or (and current-prefix-arg
(not locate-prompt-for-command))
============================================================
- Re: patch for locate.el when called with prefix arg, (continued)
- Re: patch for locate.el when called with prefix arg, Miles Bader, 2007/04/23
- Re: patch for locate.el when called with prefix arg, Luc Teirlinck, 2007/04/23
- Re: patch for locate.el when called with prefix arg, Miles Bader, 2007/04/23
- Re: patch for locate.el when called with prefix arg, Miles Bader, 2007/04/23
- Re: patch for locate.el when called with prefix arg, Luc Teirlinck, 2007/04/23
- Re: patch for locate.el when called with prefix arg, Richard Stallman, 2007/04/23
- Re: patch for locate.el when called with prefix arg, Luc Teirlinck, 2007/04/23
- Re: patch for locate.el when called with prefix arg, Luc Teirlinck, 2007/04/23
- Re: patch for locate.el when called with prefix arg, Richard Stallman, 2007/04/23
- Re: patch for locate.el when called with prefix arg, Chong Yidong, 2007/04/23
- Re: patch for locate.el when called with prefix arg,
Luc Teirlinck <=
- Re: patch for locate.el when called with prefix arg, Chong Yidong, 2007/04/23
- Re: patch for locate.el when called with prefix arg, Luc Teirlinck, 2007/04/23
- Re: patch for locate.el when called with prefix arg, Luc Teirlinck, 2007/04/23
- Re: patch for locate.el when called with prefix arg, Luc Teirlinck, 2007/04/23
- Re: patch for locate.el when called with prefix arg, Luc Teirlinck, 2007/04/23
- Re: patch for locate.el when called with prefix arg, Richard Stallman, 2007/04/24
- Re: patch for locate.el when called with prefix arg, Luc Teirlinck, 2007/04/24
- Re: patch for locate.el when called with prefix arg, Luc Teirlinck, 2007/04/24
- Re: patch for locate.el when called with prefix arg, Luc Teirlinck, 2007/04/24
- Re: patch for locate.el when called with prefix arg, Richard Stallman, 2007/04/24