Mercurial > hg > xemacs-beta
diff lisp/hyper-apropos.el @ 239:41f2f0e326e9 r20-5b18
Import from CVS: tag r20-5b18
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:15:48 +0200 |
parents | 262b8bb4a523 |
children | 677f6a0ee643 |
line wrap: on
line diff
--- a/lisp/hyper-apropos.el Mon Aug 13 10:15:04 2007 +0200 +++ b/lisp/hyper-apropos.el Mon Aug 13 10:15:48 2007 +0200 @@ -574,14 +574,14 @@ end 'limit) (let ((e (make-extent (match-beginning 1) (match-end 1)))) (set-extent-face e 'hyper-apropos-hyperlink) - (set-extent-property e 'mouse-face 'highlight)) + (set-extent-property e 'mouse-face 'highlight))) (goto-char beg) (while (re-search-forward "M-x \\([-a-zA-Z0-9_][-a-zA-Z0-9_][-a-zA-Z0-9_.]+\\)" end 'limit) (let ((e (make-extent (match-beginning 1) (match-end 1)))) (set-extent-face e 'hyper-apropos-hyperlink) - (set-extent-property e 'mouse-face 'highlight)))))) + (set-extent-property e 'mouse-face 'highlight))))) (defun hyper-apropos-insert-keybinding (keys string) (if keys @@ -711,9 +711,11 @@ (autoload . "autoloaded Lisp ") (lambda . "Lisp ")))) desc - (if (eq symtype 'autoload) - (format ", (autoloaded from \"%s\")" - (nth 1 newsym)))) + (case symtype + ((autoload) (format ", (autoloaded from \"%s\")" + (nth 1 newsym))) + ((bytecode) (format ", (loaded from \"%s\")" + (symbol-file symbol))))) local (current-local-map) global (current-global-map) obsolete (get symbol 'byte-obsolete-info) @@ -996,29 +998,10 @@ major-mode 'hyper-apropos-help-mode mode-name "Hyper-Help") (set-syntax-table emacs-lisp-mode-syntax-table) - (hyper-apropos-highlightify) (use-local-map hyper-apropos-help-map)) ;; ---------------------------------------------------------------------- ;; -(defun hyper-apropos-highlightify () - (save-excursion - (goto-char (point-min)) - (let ((st (point-min)) - sym) - (while (not (eobp)) - (if (zerop (skip-syntax-forward "w_")) - (forward-char 1) - (and (> (- (point) st) 3) - (setq sym (intern-soft (buffer-substring st (point)))) - (or (boundp sym) - (fboundp sym)) - (set-extent-property (make-extent st (point)) - 'mouse-face 'highlight))) - (setq st (point)))))) - -;; ---------------------------------------------------------------------- ;; - (defun hyper-apropos-scroll-up () "Scroll up the \"*Hyper Help*\" buffer if it's visible. Otherwise, scroll the selected window up."