]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/find-cmd.el (find-cmd): Use grep's `find-program'.
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 24 Sep 2014 19:23:13 +0000 (15:23 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 24 Sep 2014 19:23:13 +0000 (15:23 -0400)
Suggested by <lompik@voila.fr>.

Fixes: debbugs:18518
etc/NEWS
lisp/ChangeLog
lisp/ChangeLog.14
lisp/ChangeLog.16
lisp/find-cmd.el

index 397b8866f6b52c761a8fa2725f2ff098b4c2fd07..b40fb789532f94fec64d177997e8ca417281b311 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -231,6 +231,9 @@ active region handling.
 any reference to a buffer position.  The 6th member of the mouse
 position list returned for such events is now nil.
 
+** Menu items in keymaps do not support the "key shortcut cache" any more.
+These slots used to hold key-shortcut data, but have been obsolete since
+Emacs-21.
 
 \f
 * Lisp Changes in Emacs 24.5
index 937d0a40b3037e67888c989479e43fc56745f7bb..3ab2152406c6f65a0461fc26807e68c5cbf0fbe8 100644 (file)
@@ -1,3 +1,8 @@
+2014-09-24  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * find-cmd.el (find-cmd): Use grep's `find-program' (bug#18518).
+       Suggested by <lompik@voila.fr>.
+
 2014-09-24  Ulf Jasper  <ulf.jasper@web.de>
 
        * net/newst-treeview.el (newsticker--treeview-do-get-node-by-id):
 
        * window.el (fit-window-to-buffer): Doc fix.
 
-2014-09-15  Ivan Shmakov  <ivan@siamics.net>  (tiny change)
+2014-09-15  Ivan Shmakov  <ivan@siamics.net>
 
        * desktop.el (desktop-create-buffer): Check that buffers are still live
        before burying them (bug#18373).
        (dbus-register-service): Register it.  (Bug#17858)
        (dbus-managed-objects-handler): Fix docstring.
 
-2014-07-04  Phil Sainty  <psainty@orcon.net.nz>  (tiny change)
+2014-07-04  Phil Sainty  <psainty@orcon.net.nz>
 
        * emacs-lisp/lisp.el (narrow-to-defun-include-comments): New var.
        (narrow-to-defun): New arg include-comments, defaulting to it
        Add option to delete file when done.  (Bug#15647)
        (python-shell-send-string, python-shell-send-region): Use it.
 
-2013-11-23  Ivan Shmakov  <ivan@siamics.net>  (tiny change)
+2013-11-23  Ivan Shmakov  <ivan@siamics.net>
 
        * vc/diff-mode.el (diff-mode): Only allow diff-default-read-only
        to set buffer-read-only to t, never to nil.  (Bug#15938)
index 52612a7a7243737fa67b9342a1766a5a8eaf3fe2..3c2a7ff7ee3a280385a598d3784ec32ef0635707 100644 (file)
 
        * kmacro.el (kmacro-insert-counter): Doc fix.
 
-2008-11-21  Ivan Shmakov  <oneingray@gmail.com>  (tiny change)
+2008-11-21  Ivan Shmakov  <oneingray@gmail.com>
 
        * progmodes/tcl.el (tcl-filter): Don't forcibly move point.
 
index d46337244f61626282fb4f89ab0cda4ba7da142f..b4c475aff10cda8142c40d7397a62ae129e788f0 100644 (file)
        In doc-strings state whether the argument window has to denote a
        live, valid or any window.
 
-2012-08-16  Phil Sainty  <psainty@orcon.net.nz>  (tiny change)
+2012-08-16  Phil Sainty  <psainty@orcon.net.nz>
 
        * progmodes/subword.el (subword-forward-function)
        (subword-backward-function, subword-forward-regexp)
index acd820a31cee3a382989053a1766aa3d65108a27..276aeed1208b03760c53cfd0fd71fe44dbed1004 100644 (file)
@@ -39,6 +39,8 @@
 
 ;;; Code:
 
+(require 'grep)
+
 (defconst find-constituents
   '((and . find-and)
     (not . find-not)
@@ -145,13 +147,15 @@ For example:
 
 `default-directory' is used as the initial search path.  The
 result is a string that should be ready for the command line."
-  (concat
-   "find " (shell-quote-argument (expand-file-name default-directory)) " "
-           (cond
-            ((cdr subfinds)
-             (mapconcat 'find-to-string subfinds ""))
-            (t
-             (find-to-string (car subfinds))))))
+  ;; FIXME: Provide a version that returns a list of strings (ready to pass to
+  ;; call-process).
+  (concat find-program " "
+          (shell-quote-argument (expand-file-name default-directory)) " "
+          (cond
+           ((cdr subfinds)
+            (mapconcat #'find-to-string subfinds ""))
+           (t
+            (find-to-string (car subfinds))))))
 
 (defun find-and (form)
   "And FORMs together, so:
@@ -161,7 +165,7 @@ will produce:
   (if (< (length form) 2)
       (find-to-string (car form))
       (concat "\\( "
-              (mapconcat 'find-to-string form "-and ")
+              (mapconcat #'find-to-string form "-and ")
               "\\) ")))
 
 (defun find-or (form)
@@ -172,7 +176,7 @@ will produce:
   (if (< (length form) 2)
       (find-to-string (car form))
       (concat "\\( "
-              (mapconcat 'find-to-string form "-or ")
+              (mapconcat #'find-to-string form "-or ")
               "\\) ")))
 
 (defun find-not (form)
@@ -183,7 +187,7 @@ will produce:
 If you wanted the FORMs -and(ed) together instead then this would
 suffice:
   \(not \(and \(mtime \"+1\"\) \(name \"something\"\)\)\)"
-  (concat "-not " (find-or (mapcar 'find-to-string form))))
+  (concat "-not " (find-or (mapcar #'find-to-string form))))
 
 (defun find-prune (form)
   "-or together FORMs postfix '-prune' and then -or that with a
@@ -194,7 +198,7 @@ will produce (unwrapped):
   -prune -or -true \\\) -and -name '*.pm' \\\)"
   (find-or
    (list
-    (concat (find-or (mapcar 'find-to-string form)) (find-generic "prune"))
+    (concat (find-or (mapcar #'find-to-string form)) (find-generic "prune"))
     (find-generic "true"))))
 
 (defun find-generic (option &optional oper argcount args dont-quote)