Mercurial > emacs
comparison lisp/obsolete/hilit19.el @ 90043:e24e2e78deda
Revision: miles@gnu.org--gnu-2004/emacs--unicode--0--patch-69
Merge from emacs--cvs-trunk--0
Patches applied:
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-643
- miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-649
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-650
Merge from gnus--rel--5.10
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-651
- miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-655
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-656
Update from CVS: lisp/man.el (Man-xref-normal-file): Fix help-echo.
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-657
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-658
Merge from gnus--rel--5.10
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-659
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-660
Merge from gnus--rel--5.10
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-661
- miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-667
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-668
Merge from gnus--rel--5.10
* miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-61
- miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-68
Update from CVS
author | Miles Bader <miles@gnu.org> |
---|---|
date | Thu, 04 Nov 2004 08:55:40 +0000 |
parents | 68c22ea6027c 6e18b0aebeb3 |
children | 62afea0771d8 |
comparison
equal
deleted
inserted
replaced
90042:003d95404d71 | 90043:e24e2e78deda |
---|---|
1 ;;; hilit19.el --- customizable highlighting for Emacs 19 | 1 ;;; hilit19.el --- customizable highlighting for Emacs 19 |
2 | 2 |
3 ;; Copyright (c) 1993, 1994, 2001 Free Software Foundation, Inc. | 3 ;; Copyright (c) 1993, 1994, 2001, 2004 Free Software Foundation, Inc. |
4 | 4 |
5 ;; Author: Jonathan Stigelman <stig@hackvan.com> | 5 ;; Author: Jonathan Stigelman <stig@hackvan.com> |
6 ;; Maintainer: FSF | 6 ;; Maintainer: FSF |
7 ;; (actually no longer maintained) | 7 ;; (actually no longer maintained) |
8 ;; Keywords: faces | 8 ;; Keywords: faces |
394 (defvar hilit-predefined-face-list (face-list) | 394 (defvar hilit-predefined-face-list (face-list) |
395 "List of faces with which hilit-lookup-face-create will NOT tamper. | 395 "List of faces with which hilit-lookup-face-create will NOT tamper. |
396 | 396 |
397 If hilit19 is dumped into emacs at your site, you may have to set this in | 397 If hilit19 is dumped into emacs at your site, you may have to set this in |
398 your init file.") | 398 your init file.") |
399 | |
400 (eval-when-compile (setq byte-optimize t)) | |
401 | 399 |
402 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 400 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
403 ;; Use this to report bugs: | 401 ;; Use this to report bugs: |
404 | 402 |
405 (eval-when-compile (require 'reporter)) ; no compilation gripes | 403 (eval-when-compile (require 'reporter)) ; no compilation gripes |
943 | 941 |
944 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 942 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
945 ;; Initialization. | 943 ;; Initialization. |
946 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 944 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
947 | 945 |
948 (and (not hilit-inhibit-rebinding) | 946 (define-minor-mode hilit-mode |
949 (progn | 947 "Obsolete minor mode. Use `global-font-lock-mode' instead." |
950 (substitute-key-definition 'yank 'hilit-yank | 948 :global t |
951 (current-global-map)) | 949 |
952 (substitute-key-definition 'yank-pop 'hilit-yank-pop | 950 (unless (and hilit-inhibit-rebinding hilit-mode) |
953 (current-global-map)) | 951 (substitute-key-definition |
954 (substitute-key-definition 'recenter 'hilit-recenter | 952 (if hilit-mode 'yank 'hilit-yank) |
955 (current-global-map)))) | 953 (if hilit-mode 'hilit-yank 'yank) |
956 | 954 (current-global-map)) |
957 (global-set-key [?\C-\S-l] 'hilit-repaint-command) | 955 (substitute-key-definition |
958 | 956 (if hilit-mode 'yank-pop 'hilit-yank-pop) |
959 (add-hook 'find-file-hook 'hilit-find-file-hook t) | 957 (if hilit-mode 'hilit-yank-pop 'yank-pop) |
958 (current-global-map)) | |
959 (substitute-key-definition | |
960 (if hilit-mode 'recenter 'hilit-recenter) | |
961 (if hilit-mode 'hilit-recenter 'recenter) | |
962 (current-global-map))) | |
963 | |
964 (if hilit-mode | |
965 (global-set-key [?\C-\S-l] 'hilit-repaint-command) | |
966 (global-unset-key [?\C-\S-l])) | |
967 | |
968 (if hilit-mode | |
969 (add-hook 'find-file-hook 'hilit-find-file-hook t) | |
970 (remove-hook 'find-file-hook 'hilit-find-file-hook)) | |
971 | |
972 (unless (and hilit-inhibit-hooks hilit-mode) | |
973 (condition-case c | |
974 (progn | |
975 | |
976 ;; BUFFER highlights... | |
977 (mapcar (lambda (hook) | |
978 (if hilit-mode | |
979 (add-hook hook 'hilit-rehighlight-buffer-quietly) | |
980 (remove-hook hook 'hilit-rehighlight-buffer-quietly))) | |
981 '( | |
982 Info-selection-hook | |
983 | |
984 ;; runs too early vm-summary-mode-hooks | |
985 vm-summary-pointer-hook | |
986 vm-preview-message-hook | |
987 vm-show-message-hook | |
988 | |
989 rmail-show-message-hook | |
990 mail-setup-hook | |
991 mh-show-mode-hook | |
992 | |
993 dired-after-readin-hook | |
994 )) | |
995 ) | |
996 (error (message "Error loading highlight hooks: %s" c) | |
997 (ding) (sit-for 1))))) | |
960 | 998 |
961 (eval-when-compile (require 'gnus)) ; no compilation gripes | 999 (eval-when-compile (require 'gnus)) ; no compilation gripes |
962 | |
963 (and (not hilit-inhibit-hooks) | |
964 (condition-case c | |
965 (progn | |
966 | |
967 ;; BUFFER highlights... | |
968 (mapcar (function | |
969 (lambda (hook) | |
970 (add-hook hook 'hilit-rehighlight-buffer-quietly))) | |
971 '( | |
972 Info-selection-hook | |
973 | |
974 ;; runs too early vm-summary-mode-hooks | |
975 vm-summary-pointer-hook | |
976 vm-preview-message-hook | |
977 vm-show-message-hook | |
978 | |
979 rmail-show-message-hook | |
980 mail-setup-hook | |
981 mh-show-mode-hook | |
982 | |
983 dired-after-readin-hook | |
984 )) | |
985 ) | |
986 (error (message "Error loading highlight hooks: %s" c) | |
987 (ding) (sit-for 1)))) | |
988 | 1000 |
989 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 1001 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
990 ;; Default patterns for various modes. | 1002 ;; Default patterns for various modes. |
991 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 1003 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
992 | 1004 |
1508 ;; highlight both constants in the same way. | 1520 ;; highlight both constants in the same way. |
1509 | 1521 |
1510 | 1522 |
1511 (provide 'hilit19) | 1523 (provide 'hilit19) |
1512 | 1524 |
1513 ;;; arch-tag: db99739a-4837-41ee-ad02-3baced8ae71d | 1525 ;; arch-tag: db99739a-4837-41ee-ad02-3baced8ae71d |
1514 ;;; hilit19.el ends here | 1526 ;;; hilit19.el ends here |