emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] trunk r116301: Some hi-lock doc


From: Glenn Morris
Subject: [Emacs-diffs] trunk r116301: Some hi-lock doc
Date: Fri, 07 Feb 2014 07:18:15 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 116301
revision-id: address@hidden
parent: address@hidden
committer: Glenn Morris <address@hidden>
branch nick: trunk
timestamp: Thu 2014-02-06 23:18:02 -0800
message:
  Some hi-lock doc
  
  * doc/emacs/display.texi (Highlight Interactively):
  Mention hi-lock-auto-select-face.
  
  * lisp/hi-lock.el (hi-lock-auto-select-face, hi-lock-line-face-buffer)
  (hi-lock-face-buffer, hi-lock-face-phrase-buffer)
  (hi-lock-face-symbol-at-point, hi-lock-read-face-name): Doc tweaks.
  
  * etc/NEWS: Related edits.
modified:
  doc/emacs/ChangeLog            changelog-20091113204419-o5vbwnq5f7feedwu-6227
  doc/emacs/display.texi         
display.texi-20091113204419-o5vbwnq5f7feedwu-6243
  etc/NEWS                       news-20100311060928-aoit31wvzf25yr1z-1
  lisp/ChangeLog                 changelog-20091113204419-o5vbwnq5f7feedwu-1432
  lisp/hi-lock.el                hilock.el-20091113204419-o5vbwnq5f7feedwu-1889
=== modified file 'doc/emacs/ChangeLog'
--- a/doc/emacs/ChangeLog       2014-02-07 07:13:21 +0000
+++ b/doc/emacs/ChangeLog       2014-02-07 07:18:02 +0000
@@ -1,5 +1,8 @@
 2014-02-07  Glenn Morris  <address@hidden>
 
+       * display.texi (Highlight Interactively):
+       Mention hi-lock-auto-select-face.
+
        * anti.texi (Antinews): Fix typo.
 
        * ack.texi (Acknowledgments): No longer mention obsolete files.

=== modified file 'doc/emacs/display.texi'
--- a/doc/emacs/display.texi    2014-01-01 07:43:34 +0000
+++ b/doc/emacs/display.texi    2014-02-07 07:18:02 +0000
@@ -928,6 +928,12 @@
 pre-loaded into a list of default values.  While being prompted
 for a face use @kbd{M-n} and @kbd{M-p} to cycle through them.
 
address@hidden hi-lock-auto-select-face
+Setting the option @code{hi-lock-auto-select-face} to a address@hidden
+value causes this command (and other Hi Lock commands that read faces)
+to automatically choose the next face from the default list without
+prompting.
+
 You can use this command multiple times, specifying various regular
 expressions to highlight in different ways.
 
@@ -976,8 +982,8 @@
 @findex highlight-symbol-at-point
 @cindex symbol, highlighting
 @cindex highlighting symbol at point
-Highlight the symbol found near point without prompting, using the next
-available face automatically (@code{highlight-symbol-at-point}).
+Highlight the symbol found near point, using the next available face
+(@code{highlight-symbol-at-point}).
 
 @item M-s h w
 @itemx C-x w b

=== modified file 'etc/NEWS'
--- a/etc/NEWS  2014-02-07 03:22:34 +0000
+++ b/etc/NEWS  2014-02-07 07:18:02 +0000
@@ -607,14 +607,14 @@
 
 ** Hi-Lock
 
++++
+*** New global command `M-s h .' (`highlight-symbol-at-point') highlights
+the symbol found near point.
+
++++
 *** New option `hi-lock-auto-select-face'.  When non-nil, hi-lock commands
 will cycle through faces in `hi-lock-face-defaults' without prompting.
 
-+++
-*** New global command `M-s h .' (`highlight-symbol-at-point')
-highlights the symbol found near point without prompting,
-using the next face automatically.
-
 ** New Imenu option `imenu-generic-skip-comments-and-strings'.
 
 ** Info

=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2014-02-07 03:22:34 +0000
+++ b/lisp/ChangeLog    2014-02-07 07:18:02 +0000
@@ -1,5 +1,9 @@
 2014-02-07  Glenn Morris  <address@hidden>
 
+       * hi-lock.el (hi-lock-auto-select-face, hi-lock-line-face-buffer)
+       (hi-lock-face-buffer, hi-lock-face-phrase-buffer)
+       (hi-lock-face-symbol-at-point, hi-lock-read-face-name): Doc tweaks.
+
        * obsolete/iswitchb.el: Move to obsolete/.
        * simple.el (iswitchb-mode): Add manual autoloads to ease transition,
        since obsolete/ is not scanned for autoloads.

=== modified file 'lisp/hi-lock.el'
--- a/lisp/hi-lock.el   2014-01-01 07:43:34 +0000
+++ b/lisp/hi-lock.el   2014-02-07 07:18:02 +0000
@@ -136,9 +136,9 @@
 (put 'hi-lock-file-patterns-policy 'risky-local-variable t)
 
 (defcustom hi-lock-auto-select-face nil
-  "Non-nil if highlighting commands should not prompt for face names.
-When non-nil, each hi-lock command will cycle through faces in
-`hi-lock-face-defaults' without prompting."
+  "Non-nil means highlighting commands do not prompt for the face to use.
+Instead, each hi-lock command will cycle through the faces in
+`hi-lock-face-defaults'."
   :type 'boolean
   :version "24.4")
 
@@ -410,9 +410,8 @@
 ;;;###autoload
 (defun hi-lock-line-face-buffer (regexp &optional face)
   "Set face of all lines containing a match of REGEXP to FACE.
-Interactively, prompt for REGEXP then FACE.  Use
-`read-regexp-defaults-function' to customize default
-value(s) of REGEXP.  Use the global history list for FACE.
+Interactively, prompt for REGEXP using `read-regexp', then FACE.
+Use the global history list for FACE.
 
 Use Font lock mode, if enabled, to highlight REGEXP.  Otherwise,
 use overlays for highlighting.  If overlays are used, the
@@ -435,9 +434,8 @@
 ;;;###autoload
 (defun hi-lock-face-buffer (regexp &optional face)
   "Set face of each match of REGEXP to FACE.
-Interactively, prompt for REGEXP then FACE.  Use
-`read-regexp-defaults-function' to customize default
-value(s) of REGEXP.  Use the global history list for FACE.
+Interactively, prompt for REGEXP using `read-regexp', then FACE.
+Use the global history list for FACE.
 
 Use Font lock mode, if enabled, to highlight REGEXP.  Otherwise,
 use overlays for highlighting.  If overlays are used, the
@@ -456,12 +454,12 @@
 ;;;###autoload
 (defun hi-lock-face-phrase-buffer (regexp &optional face)
   "Set face of each match of phrase REGEXP to FACE.
-Interactively, prompt for REGEXP then FACE.  Use
-`read-regexp-defaults-function' to customize default
-value(s) of REGEXP.  Use the global history list for FACE.  When
-called interactively, replace whitespace in user provided regexp
-with arbitrary whitespace and make initial lower-case letters
-case-insensitive before highlighting with `hi-lock-set-pattern'.
+Interactively, prompt for REGEXP using `read-regexp', then FACE.
+Use the global history list for FACE.
+
+When called interactively, replace whitespace in user-provided
+regexp with arbitrary whitespace, and make initial lower-case
+letters case-insensitive, before highlighting with `hi-lock-set-pattern'.
 
 Use Font lock mode, if enabled, to highlight REGEXP.  Otherwise,
 use overlays for highlighting.  If overlays are used, the
@@ -480,14 +478,13 @@
 (defalias 'highlight-symbol-at-point 'hi-lock-face-symbol-at-point)
 ;;;###autoload
 (defun hi-lock-face-symbol-at-point ()
-  "Set face of each match of the symbol at point.
-Use `find-tag-default-as-symbol-regexp' to retrieve the symbol at point.
-Use non-nil `hi-lock-auto-select-face' to retrieve the next face
-from `hi-lock-face-defaults' automatically.
+  "Highlight each instance of the symbol at point.
+Uses the next face from `hi-lock-face-defaults' without prompting,
+unless you use a prefix argument.
+Uses `find-tag-default-as-symbol-regexp' to retrieve the symbol at point.
 
-Use Font lock mode, if enabled, to highlight symbol at point.
-Otherwise, use overlays for highlighting.  If overlays are used,
-the highlighting will not update as you type."
+This uses Font lock mode if it is enabled; otherwise it uses overlays,
+in which case the highlighting will not update as you type."
   (interactive)
   (let* ((regexp (hi-lock-regexp-okay
                  (find-tag-default-as-symbol-regexp)))
@@ -663,7 +660,8 @@
 (defun hi-lock-read-face-name ()
   "Return face for interactive highlighting.
 When `hi-lock-auto-select-face' is non-nil, just return the next face.
-Otherwise, read face name from minibuffer with completion and history."
+Otherwise, or with a prefix argument, read a face from the minibuffer
+with completion and history."
   (unless hi-lock-interactive-patterns
     (setq hi-lock--unused-faces hi-lock-face-defaults))
   (let* ((last-used-face


reply via email to

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