aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2005-09-13 15:00:21 +0000
committerJuanma Barranquero2005-09-13 15:00:21 +0000
commit7a650da0af33822248aacfa229f889044a4043a6 (patch)
treeef2eb42b2c2f11c84e4d0508b0e3f7166984078a
parent9dc08dc9a38e10171442265941fd04e2f8c1070d (diff)
downloademacs-7a650da0af33822248aacfa229f889044a4043a6.tar.gz
emacs-7a650da0af33822248aacfa229f889044a4043a6.zip
(describe-categories): "?\ " -> "?\s".
(help-do-arg-highlight): Recognize also ARG-n, as in `move-to-left-margin' (ARG+n is already recognized). Simplify.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/help-fns.el32
2 files changed, 19 insertions, 17 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index dffbcdecabf..31b7bb49bf1 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,9 @@
12005-09-13 Juanma Barranquero <lekktu@gmail.com> 12005-09-13 Juanma Barranquero <lekktu@gmail.com>
2 2
3 * help-fns.el (describe-categories): "?\ " -> "?\s".
4 (help-do-arg-highlight): Recognize also ARG-n, as in
5 `move-to-left-margin' (ARG+n is already recognized). Simplify.
6
3 * international/codepage.el (dos-unsupported-char-glyph): 7 * international/codepage.el (dos-unsupported-char-glyph):
4 * net/newsticker.el (tool-bar-map, w3-mode-map) 8 * net/newsticker.el (tool-bar-map, w3-mode-map)
5 (w3m-minor-mode-map): 9 (w3m-minor-mode-map):
diff --git a/lisp/help-fns.el b/lisp/help-fns.el
index 2974e65bf88..b7820b778d2 100644
--- a/lisp/help-fns.el
+++ b/lisp/help-fns.el
@@ -269,22 +269,20 @@ face (according to `face-differs-from-default-p')."
269(defun help-do-arg-highlight (doc args) 269(defun help-do-arg-highlight (doc args)
270 (with-syntax-table (make-syntax-table emacs-lisp-mode-syntax-table) 270 (with-syntax-table (make-syntax-table emacs-lisp-mode-syntax-table)
271 (modify-syntax-entry ?\- "w") 271 (modify-syntax-entry ?\- "w")
272 (while args 272 (dolist (arg args doc)
273 (let ((arg (prog1 (car args) (setq args (cdr args))))) 273 (setq doc (replace-regexp-in-string
274 (setq doc (replace-regexp-in-string 274 ;; This is heuristic, but covers all common cases
275 ;; This is heuristic, but covers all common cases 275 ;; except ARG1-ARG2
276 ;; except ARG1-ARG2 276 (concat "\\<" ; beginning of word
277 (concat "\\<" ; beginning of word 277 "\\(?:[a-z-]*-\\)?" ; for xxx-ARG
278 "\\(?:[a-z-]*-\\)?" ; for xxx-ARG 278 "\\("
279 "\\(" 279 (regexp-quote arg)
280 (regexp-quote arg) 280 "\\)"
281 "\\)" 281 "\\(?:es\\|s\\|th\\)?" ; for ARGth, ARGs
282 "\\(?:es\\|s\\|th\\)?" ; for ARGth, ARGs 282 "\\(?:-[a-z0-9-]+\\)?" ; for ARG-xxx, ARG-n
283 "\\(?:-[a-z-]+\\)?" ; for ARG-xxx 283 "\\>") ; end of word
284 "\\>") ; end of word 284 (help-default-arg-highlight arg)
285 (help-default-arg-highlight arg) 285 doc t t 1)))))
286 doc t t 1))))
287 doc))
288 286
289(defun help-highlight-arguments (usage doc &rest args) 287(defun help-highlight-arguments (usage doc &rest args)
290 (when usage 288 (when usage
@@ -712,7 +710,7 @@ BUFFER should be a buffer or a buffer name."
712 (dotimes (i 95) 710 (dotimes (i 95)
713 (let ((elt (aref docs i))) 711 (let ((elt (aref docs i)))
714 (when elt 712 (when elt
715 (insert (+ i ?\ ) ": " elt "\n")))) 713 (insert (+ i ?\s) ": " elt "\n"))))
716 (while (setq table (char-table-parent table)) 714 (while (setq table (char-table-parent table))
717 (insert "\nThe parent category table is:") 715 (insert "\nThe parent category table is:")
718 (describe-vector table 'help-describe-category-set)))))))) 716 (describe-vector table 'help-describe-category-set))))))))