emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/help.el


From: Kim F . Storm
Subject: [Emacs-diffs] Changes to emacs/lisp/help.el
Date: Fri, 17 Dec 2004 10:43:33 -0500

Index: emacs/lisp/help.el
diff -c emacs/lisp/help.el:1.272 emacs/lisp/help.el:1.273
*** emacs/lisp/help.el:1.272    Thu Dec 16 13:05:37 2004
--- emacs/lisp/help.el  Fri Dec 17 15:16:46 2004
***************
*** 614,630 ****
            (princ "\n   which is ")
            (describe-function-1 defn)
            (when up-event
!             (let ((defn (or (string-key-binding up-event) (key-binding 
up-event))))
                (unless (or (null defn) (integerp defn) (equal defn 'undefined))
!                 (princ "\n\n-------------- up event ---------------\n\n")
!                 (princ (key-description up-event))
                  (if (windowp window)
                      (princ " at that spot"))
                  (princ " runs the command ")
                  (prin1 defn)
                  (princ "\n   which is ")
!                 (describe-function-1 defn))))
!           (print-help-return-message)))))))
  
  
  (defun describe-mode (&optional buffer)
--- 614,671 ----
            (princ "\n   which is ")
            (describe-function-1 defn)
            (when up-event
!             (let ((ev (aref up-event 0))
!                   (descr (key-description up-event))
!                   (hdr "\n\n-------------- up event ---------------\n\n")
!                   defn
!                   mouse-1-tricky mouse-1-remapped)
!               (when (and (consp ev)
!                          (eq (car ev) 'mouse-1)
!                          (windowp window)
!                          mouse-1-click-follows-link
!                          (not (eq mouse-1-click-follows-link 'double))
!                          (with-current-buffer (window-buffer window)
!                            (mouse-on-link-p (posn-point (event-start ev)))))
!                 (setq mouse-1-tricky (integerp mouse-1-click-follows-link)
!                       mouse-1-remapped (or (not mouse-1-tricky)
!                                            (> mouse-1-click-follows-link 0)))
!                 (if mouse-1-remapped
!                     (setcar ev 'mouse-2)))
!               (setq defn (or (string-key-binding up-event) (key-binding 
up-event)))
                (unless (or (null defn) (integerp defn) (equal defn 'undefined))
!                 (princ (if mouse-1-tricky
!                            "\n\n----------------- up-event (short click) 
----------------\n\n"
!                          hdr))
!                 (setq hdr nil)
!                 (princ descr)
                  (if (windowp window)
                      (princ " at that spot"))
+                 (if mouse-1-remapped
+                     (princ " is remapped to <mouse-2>\n  which" ))
                  (princ " runs the command ")
                  (prin1 defn)
                  (princ "\n   which is ")
!                 (describe-function-1 defn))
!               (when mouse-1-tricky
!                 (setcar ev
!                         (if (> mouse-1-click-follows-link 0) 'mouse-1 
'mouse-2))
!                 (setq defn (or (string-key-binding up-event) (key-binding 
up-event)))
!                 (unless (or (null defn) (integerp defn) (equal defn 
'undefined))
!                   (princ (or hdr
!                              "\n\n----------------- up-event (long click) 
----------------\n\n"))
!                   (princ "Pressing ")
!                   (princ descr)
!                   (if (windowp window)
!                       (princ " at that spot"))
!                   (princ (format " for longer than %d milli-seconds\n"
!                                  (abs mouse-1-click-follows-link)))
!                   (if (not mouse-1-remapped)
!                       (princ " remaps it to <mouse-2> which" ))
!                   (princ " runs the command ")
!                   (prin1 defn)
!                   (princ "\n   which is ")
!                   (describe-function-1 defn))))
!           (print-help-return-message))))))))
  
  
  (defun describe-mode (&optional buffer)
***************
*** 697,702 ****
--- 738,744 ----
                (princ "  ")
                (insert-button pretty-minor-mode
                               'action (car help-button-cache)
+                              'follow-link t
                               'help-echo "mouse-2, RET: show full information")
                (princ (format " minor mode (%s):\n"
                               (if indicator




reply via email to

[Prev in Thread] Current Thread [Next in Thread]