aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorBastien Guerry2008-02-12 07:10:49 +0000
committerBastien Guerry2008-02-12 07:10:49 +0000
commitb96817c3877534f85536d9228d057b860efd5f6d (patch)
tree341d35de8aefe4150066a18883f4bb7bce23bacd /lisp
parentdd728672b2b464e55cbed45683e81df52d63fe42 (diff)
downloademacs-b96817c3877534f85536d9228d057b860efd5f6d.tar.gz
emacs-b96817c3877534f85536d9228d057b860efd5f6d.zip
2008-02-11 Drew Adams <drew.adams@oracle.com>
* help.el (describe-key): Joined some split lines to facilitate filling. * help-fns.el (describe-function-1): Fill text of overlong lines.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog8
-rw-r--r--lisp/help-fns.el15
-rw-r--r--lisp/help.el11
-rw-r--r--lisp/mail/rmail.el32
4 files changed, 46 insertions, 20 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index e990acb5460..a751d1b3dfc 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12008-02-11 Drew Adams <drew.adams@oracle.com>
2
3 * help.el (describe-key): Joined some split lines to facilitate
4 filling.
5 * help-fns.el (describe-function-1): Fill text of overlong lines.
6
12008-02-12 Kenichi Handa <handa@ni.aist.go.jp> 72008-02-12 Kenichi Handa <handa@ni.aist.go.jp>
2 8
3 * Makefile.in (AUTOGENEL): Remove charprop.el and uni-*.el. 9 * Makefile.in (AUTOGENEL): Remove charprop.el and uni-*.el.
@@ -25,6 +31,8 @@
25 31
262008-02-11 Drew Adams <drew.adams@oracle.com> 322008-02-11 Drew Adams <drew.adams@oracle.com>
27 33
34 * isearch.el:
35 (isearch-fail): New face.
28 * isearch.el (isearch-fail): New face. 36 * isearch.el (isearch-fail): New face.
29 (isearch-message): Highlight failure part of input. 37 (isearch-message): Highlight failure part of input.
30 38
diff --git a/lisp/help-fns.el b/lisp/help-fns.el
index 97591deb81b..d7886215880 100644
--- a/lisp/help-fns.el
+++ b/lisp/help-fns.el
@@ -267,7 +267,8 @@ face (according to `face-differs-from-default-p')."
267 (symbol-function real-function) 267 (symbol-function real-function)
268 function)) 268 function))
269 file-name string 269 file-name string
270 (beg (if (commandp def) "an interactive " "a "))) 270 (beg (if (commandp def) "an interactive " "a "))
271 (pt1 (with-current-buffer (help-buffer) (point))))
271 (setq string 272 (setq string
272 (cond ((or (stringp def) 273 (cond ((or (stringp def)
273 (vectorp def)) 274 (vectorp def))
@@ -348,8 +349,12 @@ face (according to `face-differs-from-default-p')."
348 (re-search-backward "`\\([^`']+\\)'" nil t) 349 (re-search-backward "`\\([^`']+\\)'" nil t)
349 (help-xref-button 1 'help-function-def real-function file-name)))) 350 (help-xref-button 1 'help-function-def real-function file-name))))
350 (princ ".") 351 (princ ".")
351 (terpri) 352 (with-current-buffer (help-buffer)
353 (fill-region-as-paragraph (save-excursion (goto-char pt1) (forward-line 0) (point))
354 (point)))
355 (terpri)(terpri)
352 (when (commandp function) 356 (when (commandp function)
357 (let ((pt2 (with-current-buffer (help-buffer) (point))))
353 (if (and (eq function 'self-insert-command) 358 (if (and (eq function 'self-insert-command)
354 (eq (key-binding "a") 'self-insert-command) 359 (eq (key-binding "a") 'self-insert-command)
355 (eq (key-binding "b") 'self-insert-command) 360 (eq (key-binding "b") 'self-insert-command)
@@ -369,7 +374,7 @@ face (according to `face-differs-from-default-p')."
369 (princ "'")) 374 (princ "'"))
370 375
371 (when keys 376 (when keys
372 (princ (if remapped " which is bound to " "It is bound to ")) 377 (princ (if remapped ", which is bound to " "It is bound to "))
373 ;; If lots of ordinary text characters run this command, 378 ;; If lots of ordinary text characters run this command,
374 ;; don't mention them one by one. 379 ;; don't mention them one by one.
375 (if (< (length non-modified-keys) 10) 380 (if (< (length non-modified-keys) 10)
@@ -383,7 +388,9 @@ face (according to `face-differs-from-default-p')."
383 (princ "many ordinary text characters")))) 388 (princ "many ordinary text characters"))))
384 (when (or remapped keys non-modified-keys) 389 (when (or remapped keys non-modified-keys)
385 (princ ".") 390 (princ ".")
386 (terpri))))) 391 (terpri))))
392 (with-current-buffer (help-buffer) (fill-region-as-paragraph pt2 (point)))
393 (terpri)))
387 (let* ((arglist (help-function-arglist def)) 394 (let* ((arglist (help-function-arglist def))
388 (doc (documentation function)) 395 (doc (documentation function))
389 (usage (help-split-fundoc doc function))) 396 (usage (help-split-fundoc doc function)))
diff --git a/lisp/help.el b/lisp/help.el
index 24f1e74d71a..5260ffc9279 100644
--- a/lisp/help.el
+++ b/lisp/help.el
@@ -745,8 +745,7 @@ temporarily enables it to allow getting help on disabled items and buttons."
745 (with-help-window (help-buffer) 745 (with-help-window (help-buffer)
746 (princ (help-key-description key untranslated)) 746 (princ (help-key-description key untranslated))
747 (princ (format "\ 747 (princ (format "\
748%s runs the command %S 748%s runs the command %S, which is "
749 which is "
750 mouse-msg defn)) 749 mouse-msg defn))
751 (describe-function-1 defn) 750 (describe-function-1 defn)
752 (when up-event 751 (when up-event
@@ -757,12 +756,11 @@ temporarily enables it to allow getting help on disabled items and buttons."
757 756
758----------------- up-event %s---------------- 757----------------- up-event %s----------------
759 758
760<%S>%s%s runs the command %S 759<%S>%s%s runs the command %S, which is "
761 which is "
762 (if mouse-1-tricky "(short click) " "") 760 (if mouse-1-tricky "(short click) " "")
763 ev-type mouse-msg 761 ev-type mouse-msg
764 (if mouse-1-remapped 762 (if mouse-1-remapped
765 " is remapped to <mouse-2>\nwhich" "") 763 " is remapped to <mouse-2>, which" "")
766 defn-up)) 764 defn-up))
767 (describe-function-1 defn-up)) 765 (describe-function-1 defn-up))
768 (unless (or (null defn-up-tricky) 766 (unless (or (null defn-up-tricky)
@@ -773,8 +771,7 @@ temporarily enables it to allow getting help on disabled items and buttons."
773----------------- up-event (long click) ---------------- 771----------------- up-event (long click) ----------------
774 772
775Pressing <%S>%s for longer than %d milli-seconds 773Pressing <%S>%s for longer than %d milli-seconds
776runs the command %S 774runs the command %S, which is "
777 which is "
778 ev-type mouse-msg 775 ev-type mouse-msg
779 mouse-1-click-follows-link 776 mouse-1-click-follows-link
780 defn-up-tricky)) 777 defn-up-tricky))
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index ed434ad75cb..9570ab3b4ea 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -345,6 +345,19 @@ See also `rmail-highlight-face'."
345 face) 345 face)
346 :group 'rmail-headers) 346 :group 'rmail-headers)
347 347
348(defface rmail-header-name
349 '((t (:inherit font-lock-function-name-face)))
350 "Face to use for highlighting the header names."
351 :group 'rmail-headers
352 :version "23.1")
353
354;;;###autoload
355(defcustom rmail-header-name-face 'rmail-header-name "\
356*Face to use for highlighting the header names."
357 :type '(choice (const :tag "Default" nil)
358 face)
359 :group 'rmail-headers)
360
348;;;###autoload 361;;;###autoload
349(defcustom rmail-delete-after-output nil "\ 362(defcustom rmail-delete-after-output nil "\
350*Non-nil means automatically delete a message that is copied to a file." 363*Non-nil means automatically delete a message that is copied to a file."
@@ -698,19 +711,19 @@ The first parenthesized expression should match the MIME-charset name.")
698 "\n")) 711 "\n"))
699 nil) 712 nil)
700 713
701(defvar rmail-font-lock-keywords 714(setq rmail-font-lock-keywords
702 ;; These are all matched case-insensitively. 715 ;; These are all matched case-insensitively.
703 (eval-when-compile 716 ;;(eval-when-compile
704 (let* ((cite-chars "[>|}]") 717 (let* ((cite-chars "[>|}]")
705 (cite-prefix "a-z") 718 (cite-prefix "a-z")
706 (cite-suffix (concat cite-prefix "0-9_.@-`'\""))) 719 (cite-suffix (concat cite-prefix "0-9_.@-`'\"")))
707 (list '("^\\(From\\|Sender\\|Resent-From\\):" 720 (list '("^\\(From\\|Sender\\|Resent-From\\):"
708 . font-lock-function-name-face) 721 . 'rmail-header-name)
709 '("^Reply-To:.*$" . font-lock-function-name-face) 722 '("^Reply-To:.*$" . 'rmail-header-name)
710 '("^Subject:" . font-lock-comment-face) 723 '("^Subject:" . 'rmail-header-name)
711 '("^X-Spam-Status:" . font-lock-keyword-face) 724 '("^X-Spam-Status:" . 'rmail-header-name)
712 '("^\\(To\\|Apparently-To\\|Cc\\|Newsgroups\\):" 725 '("^\\(To\\|Apparently-To\\|Cc\\|Newsgroups\\):"
713 . font-lock-keyword-face) 726 . 'rmail-header-name)
714 ;; Use MATCH-ANCHORED to effectively anchor the regexp left side. 727 ;; Use MATCH-ANCHORED to effectively anchor the regexp left side.
715 `(,cite-chars 728 `(,cite-chars
716 (,(concat "\\=[ \t]*" 729 (,(concat "\\=[ \t]*"
@@ -721,8 +734,9 @@ The first parenthesized expression should match the MIME-charset name.")
721 (1 font-lock-comment-delimiter-face nil t) 734 (1 font-lock-comment-delimiter-face nil t)
722 (5 font-lock-comment-face nil t))) 735 (5 font-lock-comment-face nil t)))
723 '("^\\(X-[a-z0-9-]+\\|In-reply-to\\|Date\\):.*\\(\n[ \t]+.*\\)*$" 736 '("^\\(X-[a-z0-9-]+\\|In-reply-to\\|Date\\):.*\\(\n[ \t]+.*\\)*$"
724 . font-lock-string-face)))) 737 . 'rmail-header-name))))
725 "Additional expressions to highlight in Rmail mode.") 738;;)
739;; "Additional expressions to highlight in Rmail mode.")
726 740
727;; Perform BODY in the summary buffer 741;; Perform BODY in the summary buffer
728;; in such a way that its cursor is properly updated in its own window. 742;; in such a way that its cursor is properly updated in its own window.