emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r103809: Remove some unnecessary pure


From: Glenn Morris
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r103809: Remove some unnecessary purecopy's from find-dired.
Date: Sat, 02 Apr 2011 12:01:52 -0700
User-agent: Bazaar (2.0.3)

------------------------------------------------------------
revno: 103809
committer: Glenn Morris <address@hidden>
branch nick: trunk
timestamp: Sat 2011-04-02 12:01:52 -0700
message:
  Remove some unnecessary purecopy's from find-dired.
  
  * lisp/find-dired.el (find-ls-option, find-ls-subdir-switches)
  (find-grep-options, find-name-arg): Remove purecopy.
modified:
  lisp/ChangeLog
  lisp/find-dired.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2011-04-02 18:56:29 +0000
+++ b/lisp/ChangeLog    2011-04-02 19:01:52 +0000
@@ -1,7 +1,8 @@
 2011-04-02  Glenn Morris  <address@hidden>
 
        * find-dired.el (find-ls-option, find-ls-subdir-switches)
-       (find-grep-options): Do not autoload these defcustoms.
+       (find-grep-options): Do not autoload these defcustoms, remove purecopy.
+       (find-name-arg): Remove purecopy.
 
        * progmodes/grep.el (grep-find-use-xargs): Doc fix.
        (grep-compute-defaults): Check for `-exec COMMAND +' support.

=== modified file 'lisp/find-dired.el'
--- a/lisp/find-dired.el        2011-04-02 18:56:29 +0000
+++ b/lisp/find-dired.el        2011-04-02 19:01:52 +0000
@@ -36,8 +36,8 @@
 ;; find's -ls corresponds to these switches.
 ;; Note -b, at least GNU find quotes spaces etc. in filenames
 (defcustom find-ls-option
-  (if (eq system-type 'berkeley-unix) (purecopy '("-ls" . "-gilsb"))
-    (purecopy '("-exec ls -ld {} \\;" . "-ld")))
+  (if (eq system-type 'berkeley-unix) '("-ls" . "-gilsb")
+    '("-exec ls -ld {} \\;" . "-ld"))
   "Description of the option to `find' to produce an `ls -l'-type listing.
 This is a cons of two strings (FIND-OPTION . LS-SWITCHES).  FIND-OPTION
 gives the option (or options) to `find' that produce the desired output.
@@ -46,7 +46,7 @@
               (string :tag "Ls Switches"))
   :group 'find-dired)
 
-(defcustom find-ls-subdir-switches (purecopy "-al")
+(defcustom find-ls-subdir-switches "-al"
   "`ls' switches for inserting subdirectories in `*Find*' buffers.
 This should contain the \"-l\" switch.
 Use the \"-F\" or \"-b\" switches if and only if you also use
@@ -56,10 +56,10 @@
   :version "22.1")
 
 (defcustom find-grep-options
-  (purecopy (if (or (eq system-type 'berkeley-unix)
+  (if (or (eq system-type 'berkeley-unix)
          (string-match "solaris2" system-configuration)
          (string-match "irix" system-configuration))
-      "-s" "-q"))
+      "-s" "-q")
   "Option to grep to be as silent as possible.
 On Berkeley systems, this is `-s'; on Posix, and with GNU grep, `-q' does it.
 On other systems, the closest you can come is to use `-l'."
@@ -68,9 +68,9 @@
 
 ;; This used to be autoloaded (see bug#4387).
 (defcustom find-name-arg
-  (purecopy (if read-file-name-completion-ignore-case
+  (if read-file-name-completion-ignore-case
       "-iname"
-    "-name"))
+    "-name")
   "Argument used to specify file name pattern.
 If `read-file-name-completion-ignore-case' is non-nil, -iname is used so that
 find also ignores case.  Otherwise, -name is used."


reply via email to

[Prev in Thread] Current Thread [Next in Thread]