1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-20 10:23:57 +00:00
Commit Graph

57 Commits

Author SHA1 Message Date
Glenn Morris
ae940284fa Add 2009 to copyright years. 2009-01-05 03:18:22 +00:00
Glenn Morris
4c12073242 Header format fix. 2008-12-19 05:29:04 +00:00
Glenn Morris
f2d9c15f59 Add declarations for builds without X. 2008-08-11 01:23:07 +00:00
Juri Linkov
8677dea3af (hi-lock-line-face-buffer, hi-lock-face-buffer)
(hi-lock-face-phrase-buffer): Use `(car regexp-history)'
as the second arg of `read-regexp'.
2008-07-29 14:45:01 +00:00
Juri Linkov
ef705f2574 (hi-lock-regexp-history): Make it an obsolete alias
to `regexp-history'.
(hi-lock-face-history): Rename to `hi-lock-face-defaults' and
make it an obsolete alias to it.
(hi-lock-face-defaults): New variable renamed from
`hi-lock-face-history'.
(hi-lock-line-face-buffer, hi-lock-face-buffer)
(hi-lock-face-phrase-buffer): Use `read-regexp' instead of
`read-from-minibuffer'.  Doc fix.
(hi-lock-read-face-name): Replace `hi-lock-face-history' with
`hi-lock-face-defaults'.  Remove `mapcar (lambda (f) (cons f f))'.
Set `hist' arg of `completing-read' to `face-name-history'.
Put a list of default faces to `default' arg instead of `hist' arg.
2008-06-30 19:36:38 +00:00
Glenn Morris
eb3fa2cfcf Switch to recommended form of GPLv3 permissions notice. 2008-05-06 08:06:51 +00:00
Juanma Barranquero
869d3e1733 (hi-lock-mode): Fix typos in docstring.
(hi-lock-unload-function): New function.
2008-03-31 00:04:49 +00:00
Miles Bader
59ce725a3b Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-987
2008-01-08 20:46:54 +00:00
Glenn Morris
409cc4a3ea Add 2008 to copyright years. 2008-01-07 02:45:14 +00:00
Juanma Barranquero
ee44464cb4 (hi-lock-write-interactive-patterns): Use mapc' rather than mapcar'. 2007-09-25 11:07:41 +00:00
Michaël Cadilhac
a2ab90da9d (hi-lock-unface-buffer): Show a x-menu only if the mouse was used. 2007-08-26 19:35:16 +00:00
Glenn Morris
b4aa60262c Switch license to GPLv3 or later. 2007-07-25 04:50:21 +00:00
Richard M. Stallman
cf995676d5 (hi-lock-file-patterns-policy): Default to `ask'. 2007-04-25 14:01:26 +00:00
Richard M. Stallman
06b1a5ef97 (hi-lock-file-patterns-policy): Doc fix. 2007-04-22 16:52:29 +00:00
Glenn Morris
176eb1f17f (hi-lock-file-patterns-policy): Make it a defcustom, and give it the
risky-local-variable property.
2007-04-22 01:49:46 +00:00
Chong Yidong
c898bef77f (hi-lock-file-patterns-policy): New var.
(hi-lock-find-patterns): Use hi-lock-file-patterns-policy.
(hi-lock-mode): Update docstring.
2007-04-20 19:24:19 +00:00
Chong Yidong
98007d8383 (global-hi-lock-mode): define-global-minor-mode changed to
define-globalized-minor-mode.
2007-02-03 17:26:01 +00:00
Glenn Morris
d7a0267c8d Add 2007 to copyright years. 2007-01-21 03:53:13 +00:00
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