]> code.delx.au - gnu-emacs/commitdiff
* lisp/replace.el (query-replace-from-to-separator): Delay initialization
authorGlenn Morris <rgm@gnu.org>
Thu, 16 Apr 2015 15:32:38 +0000 (08:32 -0700)
committerGlenn Morris <rgm@gnu.org>
Thu, 16 Apr 2015 15:32:38 +0000 (08:32 -0700)
to avoid rogue setting after startup.

lisp/replace.el

index 70b86dd2016c23c904ef683209090412a2be793c..8e71615ca14bba359e0967358a5e6a77a9eb8ca7 100644 (file)
@@ -68,14 +68,12 @@ to the minibuffer that reads the string to replace, or invoke replacements
 from Isearch by using a key sequence like `C-s C-s M-%'." "24.3")
 
 (defcustom query-replace-from-to-separator
-  (propertize
-   (or (ignore-errors
-        ;; Ignore errors when attempt to autoload char-displayable-p
-        ;; fails while preparing to dump.
-        (if (char-displayable-p ?\u2192) " \u2192 " " -> "))
-       " -> ")
-   'face 'minibuffer-prompt)
+  (propertize (if (char-displayable-p ?\u2192) " \u2192 " " -> ")
+              'face 'minibuffer-prompt)
   "String that separates FROM and TO in the history of replacement pairs."
+  ;; Avoids error when attempt to autoload char-displayable-p fails
+  ;; while preparing to dump, also stops customize-rogue listing this.
+  :initialize 'custom-initialize-delay
   :group 'matching
   :type 'sexp
   :version "25.1")