1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-15 09:47:20 +00:00
Commit Graph

39 Commits

Author SHA1 Message Date
Thien-Thi Nguyen
aaef169dc6 Update years in copyright notice; nfc. 2006-02-06 15:23:23 +00:00
Juanma Barranquero
8b730780cb (hi-lock-mode, hi-lock-line-face-buffer, hi-lock-face-buffer,
hi-lock-font-lock-hook, hi-lock-archaic-interface-message-used,
hi-lock-file-patterns-range): Fix typos in docstrings.
2006-02-02 10:43:18 +00:00
Juri Linkov
907560871c (hi-lock-archaic-interface-message-used)
(hi-lock-archaic-interface-deduce, hi-lock-mode): Doc fix.
(hi-lock-mode): Display "Hi" in the mode line only when
hi-lock-interactive-patterns or hi-lock-file-patterns is non-nil.
(hi-lock-write-interactive-patterns):
Use hi-lock-file-patterns-prefix instead of hard-coded "Hi-lock".
(hi-lock-set-pattern, hi-lock-set-file-patterns)
(hi-lock-font-lock-hook): Set 3rd arg `how' of
font-lock-add-keywords to t.
2005-12-23 16:45:05 +00:00
Juri Linkov
81dc571454 (hi-lock-highlight-range): New variable.
(hi-lock-mode, hi-lock-unface-buffer): Call font-lock-fontify-buffer
only if font-lock-fontified is non-nil.  Remove overlays.
(hi-lock-set-pattern): Call font-lock-fontify-buffer if
font-lock-fontified is non-nil, otherwise use overlays (instead of
text properties).
(hi-lock-string-serialize-hash, hi-lock-string-serialize-serial):
New variables.
(hi-lock-string-serialize) New function.
2005-12-23 16:20:58 +00:00
Eli Zaretskii
71060bddb0 (hi-lock-mode) Renamed from hi-lock-buffer-mode; react if global-hi-lock-mode
seems intended.
(global-hi-lock-mode) Renamed from hi-lock-mode.
(hi-lock-archaic-interface-message-used, hi-lock-archaic-interface-deduce): New
variables.
(turn-on-hi-lock-if-enabled, hi-lock-line-face-buffer)
(hi-lock-face-buffer, hi-lock-face-phrase-buffer)
(hi-lock-find-patterns, hi-lock-font-lock-hook): Replace hi-lock-buffer-mode
with hi-lock-mode.
2005-12-10 11:48:21 +00:00
Chong Yidong
597767dac7 * hi-lock.el (hi-lock-line-face-buffer, hi-lock-face-buffer)
(hi-lock-face-phrase-buffer): Use hi-yellow face.
	(hi-lock-write-interactive-patterns): Use comment-region.
2005-11-29 22:28:59 +00:00
Chong Yidong
e4d5906679 * hi-lock.el (hi-lock-buffer-mode): Turn on font-lock.
(hi-lock-unface-buffer, hi-lock-set-file-patterns): Call
	font-lock-fontify-buffer.
	(hi-lock-refontify): Deleted.
	(hi-lock-font-lock-hook): Turn off hi-lock when font lock is
	turned off.
2005-11-25 05:32:56 +00:00
Chong Yidong
9cb4bb4503 Fix typo. 2005-11-24 21:11:42 +00:00
Chong Yidong
ae34cba19b Fix two omissions in last change. 2005-11-24 21:05:33 +00:00
Chong Yidong
963b20402d * hi-lock.el (hi-lock-buffer-mode): Renamed from `hi-lock-mode'.
Use define-minor-mode, and make it a local mode.
	(hi-lock-mode): New global minor mode.
	(turn-on-hi-lock-if-enabled): New function.
	(hi-lock-line-face-buffer, hi-lock-face-buffer)
	(hi-lock-set-pattern): Changed arguments to regexp and face
	instead of a font-lock pattern.  Directly set face property,
	instead of refontifying.
	(hi-lock-font-lock-hook): Check if font-lock is being turned on.
	(hi-lock-find-patterns): Use line-number-at-pos.

	(hi-lock-face-phrase-buffer): Call hi-lock-buffer-mode.  Use new
	arguments for hi-lock-set-pattern.
	(hi-lock-find-file-hook, hi-lock-current-line)
	(hi-lock-set-patterns): Deleted unused functions.

	* progmodes/compile.el (compilation-setup): Don't fiddle with
	font-lock-defaults.
2005-11-24 20:52:16 +00:00
Juri Linkov
f43eaaefc8 (hi-lock): Rename this defgroup from
`hi-lock-interactive-text-highlighting'.  Change parent group from
`faces' to `font-lock'.  Add link to the manual.
(hi-lock-mode, hi-lock-file-patterns-range)
(hi-lock-exclude-modes, hi-lock-faces): Rename :group from
`hi-lock-interactive-text-highlighting' to `hi-lock'.
(hi-lock-faces): Add :group `faces'.
2005-11-17 07:21:54 +00:00
Chong Yidong
71dd9295e3 * hi-lock.el (hi-lock-mode): Set the default value of
font-lock-defaults.
2005-11-12 17:17:52 +00:00
Deepak Goel
8a26c16552 Message format spec fixes (1) 2005-09-18 12:25:02 +00:00
Thien-Thi Nguyen
0d30b33766 Update years in copyright notice; nfc. 2005-08-06 22:13:43 +00:00
Juanma Barranquero
ed6773fa23 (hi-lock-find-patterns): Protect also against invalid values for the pattern
lists which are `read'able but not `append'able (like symbols).
2005-07-07 01:51:48 +00:00
Lute Kamstra
086add1519 Update FSF's address. 2005-07-04 23:32:44 +00:00
Kim F. Storm
e0d815a220 (hi-green): Fix face spec. 2005-04-08 22:03:42 +00:00
Dan Nicolaescu
ea81d57ec5 * mh-customize.el (mh-speedbar-selected-folder-face): Special case
high number of colors displays.

* textmodes/table.el (table-cell-face): Add special case for
displays supporting a high number of colors.
* progmodes/vhdl-mode.el (vhdl-font-lock-prompt-face)
(vhdl-font-lock-reserved-words-face)
(vhdl-speedbar-architecture-face)
(vhdl-speedbar-instantiation-face)
(vhdl-speedbar-architecture-selected-face)
(vhdl-speedbar-instantiation-selected-face): Likewise.
* progmodes/sh-script.el (sh-heredoc-face): Likewise.
* progmodes/idlw-help.el (idlwave-help-link-face): Likewise.
* progmodes/ebrowse.el (ebrowse-tree-mark-face)
(ebrowse-root-class-face, ebrowse-member-attribute-face)
(ebrowse-progress-face): Likewise.
* progmodes/compile.el (compilation-info-face): Likewise.
* progmodes/cc-fonts.el (c-invalid-face): Likewise.
* emacs-lisp/re-builder.el (reb-match-3): Likewise.
* calendar/calendar.el (diary-face): Likewise.
* woman.el (woman-italic-face, woman-bold-face)
(woman-unknown-face): Likewise.
* wid-edit.el (widget-button-pressed-face): Likewise.
* whitespace.el (whitespace-highlight-face): Likewise.
* smerge-mode.el (smerge-mine-face, smerge-base-face): Likewise.
* pcvs-info.el (cvs-marked-face): Likewise.
* info.el (info-xref): Likewise.
* ido.el (ido-subdir-face, ido-indicator-face): Likewise.
* hilit-chg.el (highlight-changes-face)
(highlight-changes-delete-face): Likewise.
* hi-lock.el (hi-yellow, hi-green, hi-blue-b, hi-green-b)
(hi-red-b): Likewise.
* generic-x.el (show-tabs-tab-face, show-tabs-space-face): Likewise.
* font-lock.el (font-lock-keyword-face)
(font-lock-function-name-face, font-lock-warning-face): Likewise.
* cus-edit.el (custom-invalid-face, custom-modified-face)
(custom-set-face, custom-changed-face, custom-variable-tag-face)
(custom-group-tag-face-1, custom-group-tag-face): Likewise.
* comint.el (comint-highlight-prompt): Likewise.
2005-04-08 14:26:13 +00:00
Stefan Monnier
ffc30f4fa1 find-file-hooks -> find-file-hook. 2005-03-24 22:17:43 +00:00
Richard M. Stallman
048e6895c6 (hi-lock-mode): Turning on Hi-Lock turns on Font-Lock. 2005-02-03 06:49:18 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Juanma Barranquero
71296446d3 Trailing whitespace deleted. 2003-02-04 11:26:42 +00:00
Markus Rost
007f562826 (defgroup hi-lock-interactive-text-highlighting): Remove autoload
cookie.
2002-11-12 00:10:23 +00:00
Stefan Monnier
62cec9fefe *** empty log message *** 2002-02-01 19:31:46 +00:00
Eli Zaretskii
59b7ded872 Don't call x-popup-menu if display-popup-menus-p returns nil. 2001-08-31 17:53:03 +00:00
Pavel Janík
e8af40eed4 Some fixes to follow coding conventions. 2001-07-16 12:23:00 +00:00
Stefan Monnier
b18f5523f4 (hi-lock-line-face-buffer): Wrap the regexp in a group
so ^, $, *, ? and + are interpreted correctly.
2001-03-09 21:16:24 +00:00
Stefan Monnier
932c309e30 (hi-lock-unface-buffer): Use nil rather than t for
predicate passed to completing-read.
2001-02-23 16:17:57 +00:00
Gerd Moellmann
e9fcba3d59 (hi-lock-find-patterns): Don't activate font-lock-mode. 2001-02-13 09:02:36 +00:00
Gerd Moellmann
108ee42bc7 (hi-lock-mode): Toggling hi-lock-mode now affects all
buffers.  When hi-lock turned on rather than only checking current
buffer for regexps, all buffers are checked. Moved activation of
font-lock to hi-lock-refontify. When font-lock turned off rather
than removing added highlighting just in current buffer, remove it
in all buffers.  Changed edit menu text from "Automatic
Highlighting" to "Regexp Highlighting" Documentation for
highlighting phrases, minor documentation changes.
(hi-lock-set-file-patterns): Execute only if there are new or
existing file patterns.
(hi-lock-refontify): Assume font-lock-fontify-buffer will first
unfontify and, if a support mode is active, will not refontify the
whole buffer.  If necessary, turn on font lock. (Removed
font-lock-unfontify and font-lock support-mode-specific calls,
such as lazy-lock-fontify-window.)
(hi-lock-find-patterns): Do not turn on hi-lock-mode even if
patterns are found. Not useful now since find-file-hook is removed
if hi-lock is off, but may be needed for per-buffer hi-lock
activation.
(hi-lock-face-phrase-buffer): New function.  Also added related
menu item and keybinding.
(highlight-phrase): New alias, to hi-lock-face-phrase-buffer.
(hi-lock-process-phrase): New function.
(hi-lock-line-face-buffer): Doc fixes.
(hi-lock-face-buffer): Doc fixes.
(hi-lock-unface-buffer): Doc fixes.
2001-02-06 15:43:37 +00:00
Gerd Moellmann
8564afc9ab (hi-lock-mode, hi-lock-line-face-buffer): Doc fix.
(hi-lock-find-patterns): Turn on font-lock-mode, if it is not
on already.
2001-01-31 15:10:34 +00:00
Dave Love
f5bd8092f2 (hi-lock-exclude-modes): Fix :type. 2001-01-10 17:29:33 +00:00
Gerd Moellmann
99879a40e5 Update from author. 2000-11-28 22:32:46 +00:00
Gerd Moellmann
16cdf14172 (hi-lock-refontify): Don't call non-existent
jit-lock-fontify-buffer; it should anyway be unneccessary to
dp anything special when jit-lock is active.
(hi-yellow, hi-pink, hi-green, hi-blue): Fix defface specs.
2000-11-22 19:44:43 +00:00
Miles Bader
c3b2720659 (hi-black-hb):
Use relative :height and inherit from `variable-pitch' face instead of
  hardwiring :family.
2000-09-20 02:07:56 +00:00
Miles Bader
a0b8c9399c (hi-yellow, hi-pink, hi-green, hi-blue): Force the foreground color to
black if the default background is dark.
2000-08-17 00:51:39 +00:00
Eli Zaretskii
cf667bc526 (hi-lock-unface-buffer): If a menu of regexps is
popped up, but the user clicks outside the menu, return an empty
regexp (that causes unhighlight-regexp to have no effect).
2000-08-04 11:39:24 +00:00
Eli Zaretskii
588aca276b (toplevel): Require font-lock. 2000-08-04 08:30:16 +00:00
Gerd Moellmann
abb2db1cf3 *** empty log message *** 2000-08-02 21:29:36 +00:00