unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* void-variable lazy-highlight-cleanup
@ 2005-01-03 19:28 Sam Steingold
  2005-01-04  3:38 ` Richard Stallman
  0 siblings, 1 reply; 4+ messages in thread
From: Sam Steingold @ 2005-01-03 19:28 UTC (permalink / raw)


GNU Emacs 21.3.50.1 (i386-msvc-nt5.0.2195)
 of 2005-01-03 on WINSTEINGOLDLAP
--with-msvc (12.00)

Debugger entered--Lisp error: (void-variable lazy-highlight-cleanup)
  replace-dehighlight()
  byte-code("\b\x11	\x11\nÃV\x11ÄuÅ " [regexp-flag match-again replace-count 0 -1 replace-dehighlight] 2)
  perform-replace("viewd" "viewed" t nil t nil nil nil nil)
  query-replace("viewd" "viewed" t)
  ispell-word(nil nil nil)
  call-interactively(ispell-word)

-- 
Sam Steingold (http://www.podval.org/~sds) running w2k
<http://www.camera.org> <http://www.iris.org.il> <http://www.memri.org/>
<http://www.mideasttruth.com/> <http://www.honestreporting.com>
When we break the law, they fine us, when we comply, they tax us.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: void-variable lazy-highlight-cleanup
  2005-01-03 19:28 void-variable lazy-highlight-cleanup Sam Steingold
@ 2005-01-04  3:38 ` Richard Stallman
  2005-01-06  7:45   ` Juri Linkov
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Stallman @ 2005-01-04  3:38 UTC (permalink / raw)
  Cc: emacs-devel

I unknowingly installed some changes I was not quite ready to install.
I have fixed them up.

Thanks.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: void-variable lazy-highlight-cleanup
  2005-01-04  3:38 ` Richard Stallman
@ 2005-01-06  7:45   ` Juri Linkov
  2005-01-09  3:22     ` Richard Stallman
  0 siblings, 1 reply; 4+ messages in thread
From: Juri Linkov @ 2005-01-06  7:45 UTC (permalink / raw)
  Cc: emacs-devel

Richard Stallman <rms@gnu.org> writes:
> I unknowingly installed some changes I was not quite ready to install.
> I have fixed them up.

Since you decided to rename isearch-lazy-highlight options, then maybe
for backward compatibility we should make all old variable and face
names aliases and mark them as obsolete?  Is the following patch OK?  
It also groups different highlighting options together, removes
isearch-lazy-highlight from lazy-highlight groups (because it too
specific for this group), eliminates isearch-faces group (because
it has only two items).  And maybe this change should be mentioned
in NEWS (and in the Emacs Manual).

Index: lisp/isearch.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/isearch.el,v
retrieving revision 1.253
diff -u -r1.253 isearch.el
--- lisp/isearch.el	6 Jan 2005 06:54:28 -0000	1.253
+++ lisp/isearch.el	6 Jan 2005 07:38:20 -0000
@@ -120,11 +120,6 @@
   :type 'regexp
   :group 'isearch)
 
-(defcustom search-highlight t
-  "*Non-nil means incremental search highlights the current match."
-  :type 'boolean
-  :group 'isearch)
-
 (defcustom search-invisible 'open
   "If t incremental search can match hidden text.
 nil means don't match invisible text.
@@ -155,15 +150,6 @@
   :type 'boolean
   :group 'isearch)
 
-(defcustom isearch-lazy-highlight t
-  "*Controls the lazy-highlighting during incremental search.
-When non-nil, all text in the buffer matching the current search
-string is highlighted lazily (see `lazy-highlight-initial-delay'
-and `lazy-highlight-interval')."
-  :type 'boolean
-  :group 'lazy-highlight
-  :group 'isearch)
-
 (defvar isearch-mode-hook nil
   "Function(s) to call after starting up an incremental search.")
 
@@ -208,13 +194,45 @@
   :type 'boolean
   :group 'isearch)
 
+;;; isearch highlight customization.
+
+(defcustom search-highlight t
+  "*Non-nil means incremental search highlights the current match."
+  :type 'boolean
+  :group 'isearch)
+
+(defface isearch
+  '((((class color) (min-colors 88) (background light))
+     ;; The background must not be too dark, for that means
+     ;; the character is hard to see when the cursor is there.
+     (:background "magenta2" :foreground "lightskyblue1"))
+    (((class color) (min-colors 88) (background dark))
+     (:background "palevioletred2" :foreground "brown4"))
+    (((class color) (min-colors 16))
+     (:background "magenta4" :foreground "cyan1"))
+    (((class color) (min-colors 8))
+     (:background "magenta4" :foreground "cyan1"))
+    (t (:inverse-video t)))
+  "Face for highlighting Isearch matches."
+  :group 'isearch)
+(defvar isearch 'isearch)
+
+(defcustom isearch-lazy-highlight t
+  "*Controls the lazy-highlighting during incremental search.
+When non-nil, all text in the buffer matching the current search
+string is highlighted lazily (see `lazy-highlight-initial-delay'
+and `lazy-highlight-interval')."
+  :type 'boolean
+  :group 'isearch)
+
 ;;; Lazy highlight customization.
+
 (defgroup lazy-highlight nil
   "Lazy highlighting feature for matching strings."
   :prefix "lazy-highlight-"
   :version "21.1"
   :group 'isearch
-  :group 'replace)
+  :group 'matching)
 
 (defcustom lazy-highlight-cleanup t
   "*Controls whether to remove extra highlighting after a search.
@@ -222,16 +240,22 @@
 \\[isearch-lazy-highlight-cleanup]."
   :type 'boolean
   :group 'lazy-highlight)
+(defvaralias 'isearch-lazy-highlight-cleanup 'lazy-highlight-cleanup)
+(make-obsolete-variable 'isearch-lazy-highlight-cleanup 'lazy-highlight-cleanup)
 
 (defcustom lazy-highlight-initial-delay 0.25
   "*Seconds to wait before beginning to lazily highlight all matches."
   :type 'number
   :group 'lazy-highlight)
+(defvaralias 'isearch-lazy-highlight-initial-delay 'lazy-highlight-initial-delay)
+(make-obsolete-variable 'isearch-lazy-highlight-initial-delay 'lazy-highlight-initial-delay)
 
 (defcustom lazy-highlight-interval 0 ; 0.0625
   "*Seconds between lazily highlighting successive matches."
   :type 'number
   :group 'lazy-highlight)
+(defvaralias 'isearch-lazy-highlight-interval 'lazy-highlight-interval)
+(make-obsolete-variable 'isearch-lazy-highlight-interval 'lazy-highlight-interval)
 
 (defcustom lazy-highlight-max-at-a-time 20
   "*Maximum matches to highlight at a time (for `lazy-highlight').
@@ -241,6 +265,8 @@
   :type '(choice (const :tag "All" nil)
 		 (integer :tag "Some"))
   :group 'lazy-highlight)
+(defvaralias 'isearch-lazy-highlight-max-at-a-time 'lazy-highlight-max-at-a-time)
+(make-obsolete-variable 'isearch-lazy-highlight-max-at-a-time 'lazy-highlight-max-at-a-time)
 
 (defface lazy-highlight
   '((((class color) (min-colors 88) (background light))
@@ -253,8 +279,11 @@
      (:background "turquoise3"))
     (t (:underline t)))
   "Face for lazy highlighting of matches other than the current one."
-  :group 'isearch-faces
   :group 'lazy-highlight)
+(put 'isearch-lazy-highlight-face 'face-alias 'lazy-highlight)
+(defvar lazy-highlight-face 'lazy-highlight)
+(defvaralias 'isearch-lazy-highlight-face 'lazy-highlight-face)
+(make-obsolete-variable 'isearch-lazy-highlight-face 'lazy-highlight-face)
 \f
 ;; Define isearch-mode keymap.
 
@@ -2284,29 +2311,6 @@
 ;;  - the variable `isearch-invalid-regexp' is expected to be true
 ;;    iff `isearch-string' is an invalid regexp.
 
-(defgroup isearch-faces nil
-  "Lazy highlighting feature for incremental search."
-  :version "21.1"
-  :group 'isearch)
-
-(defface isearch
-  '((((class color) (min-colors 88) (background light))
-     ;; The background must not be too dark, for that means
-     ;; the character is hard to see when the cursor is there.
-     (:background "magenta2" :foreground "lightskyblue1"))
-    (((class color) (min-colors 88) (background dark))
-     (:background "palevioletred2" :foreground "brown4"))
-    (((class color) (min-colors 16))
-     (:background "magenta4" :foreground "cyan1"))
-    (((class color) (min-colors 8))
-     (:background "magenta4" :foreground "cyan1"))
-    (t (:inverse-video t)))
-  "Face for highlighting Isearch matches."
-  :group 'isearch-faces)
-(defvar isearch 'isearch)
-
-(defvar isearch-lazy-highlight-face 'lazy-highlight)
-
 (defvar isearch-lazy-highlight-overlays nil)
 (defvar isearch-lazy-highlight-wrapped nil)
 (defvar isearch-lazy-highlight-start nil)

-- 
Juri Linkov
http://www.jurta.org/emacs/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: void-variable lazy-highlight-cleanup
  2005-01-06  7:45   ` Juri Linkov
@ 2005-01-09  3:22     ` Richard Stallman
  0 siblings, 0 replies; 4+ messages in thread
From: Richard Stallman @ 2005-01-09  3:22 UTC (permalink / raw)
  Cc: emacs-devel

I like these changes, except for this:

    It also groups different highlighting options together, removes
    isearch-lazy-highlight from lazy-highlight groups (because it too
    specific for this group),

This may as well be in both groups.
Likewise for query-replace-lazy-highlight.

      And maybe this change should be mentioned
    in NEWS (and in the Emacs Manual).

I didn't think this feature was in the manual, but I see that it is,
so I will update it.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-01-09  3:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-03 19:28 void-variable lazy-highlight-cleanup Sam Steingold
2005-01-04  3:38 ` Richard Stallman
2005-01-06  7:45   ` Juri Linkov
2005-01-09  3:22     ` Richard Stallman

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).