From: jari.aalto@poboxes.com (Jari Aalto+mail.linux)
Subject: Re: [patch] 21.3 executable.find - Use cache in `executable-find'
Date: Tue, 10 Feb 2004 23:21:17 +0200 [thread overview]
Message-ID: <8yja1vhu.fsf@blue.sea.net> (raw)
In-Reply-To: mailman.2083.1076239601.928.bug-gnu-emacs@gnu.org
* Sun 2004-02-08 jari.aalto <AT> poboxes.com (Jari Aalto+mail.linux) gnu.emacs.bug
* <http://groups.google.com/groups?oi=djq&as_umsgid=%3Cmailman.2083.1076239601.928.bug-gnu-emacs@gnu.org>
| It is common that searches for programs are done multiple times, so it
| would be good if the precious values were cached just like bash does.
| Here is patch to make this happen.
|
| This patch supposes that my other patches have been applied
| (See patch to implement `executable-command-find-unix-p')
|
One small fix needed to get it working.
2004-02-10 Tue Jari Aalto <jari.aalto <AT> poboxes.com>
* progmodes/executable.el (executable-find-cache): Returned
(command path), when should have returned path. fixed.
Index: executable.el
===================================================================
RCS file: /cygdrive/h/data/version-control/cvsroot/emacs/gnu-emacs/lisp213/progmodes/executable.el,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -IId: -u -r1.6 -r1.7
--- executable.el 8 Feb 2004 11:30:11 -0000 1.6
+++ executable.el 10 Feb 2004 21:19:06 -0000 1.7
@@ -219,7 +219,9 @@
(defsubst executable-find-cache (command)
"Look up COMMAND from `executable-find-cache'."
- (assoc command executable-find-cache))
+ (let ((elt (assoc command executable-find-cache)))
+ (when elt
+ (nth 1 elt))))
;;;###autoload
(defun executable-find-path (command)
next parent reply other threads:[~2004-02-10 21:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.2083.1076239601.928.bug-gnu-emacs@gnu.org>
2004-02-10 21:21 ` Jari Aalto+mail.linux [this message]
2004-02-08 11:37 [patch] 21.3 executable.find - Use cache in `executable-find' Jari Aalto+mail.linux
2004-03-24 11:13 ` Eli Zaretskii
[not found] ` <y8pp51f9.fsf@blue.sea.net>
2004-03-25 6:49 ` Eli Zaretskii
2004-03-25 9:14 ` Jari Aalto+mail.linux
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8yja1vhu.fsf@blue.sea.net \
--to=jari.aalto@poboxes.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 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).