1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-16 09:50:25 +00:00
Commit Graph

322 Commits

Author SHA1 Message Date
David Kastrup
f3b5dd74da * help.el (describe-mode): For clicks on mode-line, use "@"
interactive argument to get the major mode of the click instead of
the current buffer.

* isearch.el (isearch-mouse-2): Use new semantics of `key-binding'
in order to better redirect mouse-2 clicks.  Also allow default
bindings to apply.
2006-10-03 14:03:46 +00:00
Richard M. Stallman
badf89eaea (describe-key, describe-key-briefly): Test last event for being a down-event. 2006-09-24 20:43:32 +00:00
Chong Yidong
98da283bf0 * help.el (describe-key-briefly, describe-key): Don't expect an
extra up event if a down-event is generated by a popup menu.
2006-09-23 19:34:38 +00:00
Kim F. Storm
24a2788281 (describe-key-briefly, describe-key): Simplify printing
of descriptions by using format and %S.  Fix "is undefined"
messages to say "at that spot" for mouse events.
2006-09-19 13:59:27 +00:00
Eli Zaretskii
0f10166354 (describe-prefix-bindings): Use let, not let*. 2006-09-16 10:45:38 +00:00
Kim F. Storm
05ca18a822 (describe-key): Handle C-h k in *Help* buffer; collect
all necessary information about the event before erasing *Help*.
2006-09-15 21:25:01 +00:00
David Kastrup
91a2acb229 * mouse-sel.el (mouse-sel-follow-link-p): Use event position
instead of buffer position for `mouse-on-link-p'.

* mouse.el (mouse-posn-property): New function looking up the
properties at a click position in overlays and text properties in
either buffer or strings.
(mouse-on-link-p): Use `mouse-posn-property' to streamline lookup
of both `follow-link' as well as `mouse-face' properties.
(mouse-drag-track): Check `mouse-on-link-p' on event position, not
buffer position.

* help.el (describe-key-briefly): When reading a down-event on
mode lines or scroll bar, swallow the following up event, too.
Use the new mouse sensitity of `key-binding' for lookup.
(describe-key): The same here.
2006-09-15 08:53:18 +00:00
David Kastrup
bcd8e1a907 * help.el (string-key-binding, describe-key-briefly)
(describe-key): Remove `string-key-binding' and its callers since
	`key-binding' already caters for the proper lookup now.

(string-key-binding, describe-key-briefly)
(describe-key): Remove `string-key-binding' and its callers since
`key-binding' already caters for the proper lookup now.
2006-09-11 09:47:43 +00:00
Richard M. Stallman
d8a869ea1f Whitespace change. 2006-08-08 20:53:10 +00:00
Richard M. Stallman
7172336736 (describe-mode): Make minor mode list more concise. 2006-08-06 04:31:58 +00:00
Kim F. Storm
8c9fc4be24 (view-emacs-news): Declare `res' in the right let* form. 2006-06-25 22:41:40 +00:00
Richard M. Stallman
f609f34556 (help-for-help-internal): Clean up help text. 2006-06-10 10:17:41 +00:00
Kim F. Storm
e38cc268e2 (view-emacs-news): Rewrite to support new NEWS,
NEWS.major, and NEWS.1-17 file naming.  Add more intelligense,
e.g. version 10 matches 1.10, and don't be confused by version 1.1
begin a prefix of 1.12 (etc).  A numeric prefix arg also works.
2006-06-04 01:14:15 +00:00
Richard M. Stallman
90e357ae45 (temp-buffer-max-height): Doc fix. 2006-05-30 02:35:56 +00:00
Eli Zaretskii
cb0b676650 (print-help-return-message): Suggest to use display-buffer instead of
switch-to-buffer-other-window to restore the previous window without
selecting it.
2006-03-25 10:11:09 +00:00
Juanma Barranquero
e5fe3a6cc9 (view-lossage): Remove trailing whitespace before inserting "\n". 2006-03-08 10:11:47 +00:00
Chong Yidong
46d91fa0df * help.el (describe-key-briefly): If KEY is a down event, read and
discard the up event.
2006-03-07 15:53:41 +00:00
Juanma Barranquero
a78914bca9 (describe-key): Remove leftover test code. 2006-03-07 09:53:30 +00:00
Chong Yidong
4dfb267845 * help.el (describe-key): Handle string and vector `follow-link' values. 2006-03-06 22:31:36 +00:00
Chong Yidong
aa38f98ed3 * help.el (describe-key): Properly handle the return value of
read-key-sequence when grabbing an up-event.  Cleanup mouse-1
	remaps.
2006-03-06 20:27:06 +00:00
Juanma Barranquero
172892e397 (help): Revert last part of 2006-02-23 change (deletion of the `provide' call). 2006-02-23 23:14:01 +00:00
Stefan Monnier
4e6d317052 (describe-mode): Pass `mode-name' to format-mode-line. 2006-02-23 16:39:24 +00:00
Richard M. Stallman
774a814f60 (describe-key-briefly): Compute interactive args
in same was as before previous change.
2006-02-21 19:51:37 +00:00
Juanma Barranquero
a5f435502d (where-is): Fix displaying of remappings. 2006-02-14 08:14:01 +00:00
Richard M. Stallman
2c8ed53856 (describe-key-briefly, describe-key):
Do all arg-reading inside `interactive' spec.
(describe-key-briefly-internal, describe-key-internal):
Functions merged back into their callers.
2006-02-13 16:18:46 +00:00
Eli Zaretskii
8ee320fc76 (describe-key-briefly, describe-key): Populate yank-menu if empty. 2006-02-11 16:03:14 +00:00
Eli Zaretskii
6527c98307 (describe-key-briefly): Now a wrapper for describe-key-briefly-internal.
Bind enable-disabled-menus-and-buttons to t.
(describe-key-briefly-internal): Renamed from describe-key-briefly.
(describe-key): Now a wrapper for describe-key-internal.  Bind
enable-disabled-menus-and-buttons to t.
(describe-key-internal): Renamed from describe-key.
2006-02-11 13:55:42 +00:00
Thien-Thi Nguyen
aaef169dc6 Update years in copyright notice; nfc. 2006-02-06 15:23:23 +00:00
Richard M. Stallman
c6f20f15d9 (help-for-help-internal): Simplify entry for `a'. 2005-12-12 05:16:39 +00:00
Romain Francoise
d50d22f1f4 (help-for-help-internal): Add `r' in doc string. 2005-12-10 17:20:10 +00:00
Eli Zaretskii
7b057a3d57 (print-help-return-message): If pop-up-frames is non-nil, don't display
message about scrolling the help window.
2005-12-03 12:07:03 +00:00
Eli Zaretskii
a8e7142cdd (print-help-return-message): If pop-up-frames is non-nil, set up
help-return-method to delete the help window and, possibly, its frame as well.  Doc fix.
(help-return-method): Doc fix.
2005-12-03 11:52:23 +00:00
Stefan Monnier
604aa5f0f9 (help-map): Move initialization into declaration. 2005-11-30 16:09:58 +00:00
Chong Yidong
2c30b4506a * help.el (describe-key-briefly, describe-key): Recognize default
bindings.
2005-11-29 15:42:42 +00:00
Chong Yidong
c6a257fc2b Typo. 2005-11-29 03:13:06 +00:00
Richard M. Stallman
7e1b6c2c59 (help-for-help-internal): Improve doc of C-h a. 2005-11-14 04:47:05 +00:00
Kim F. Storm
ccf849afd3 (help-for-help-internal): Fix a' entry. Add d' entry. 2005-11-13 21:25:13 +00:00
Kim F. Storm
e27f7c139a (help-map): Bind C-h d to apropos-documentation. 2005-11-12 00:57:38 +00:00
Thien-Thi Nguyen
0d30b33766 Update years in copyright notice; nfc. 2005-08-06 22:13:43 +00:00
Lute Kamstra
086add1519 Update FSF's address. 2005-07-04 23:32:44 +00:00
Richard M. Stallman
1b12fa9dc4 (describe-key): Move print-help-return-message call out of conditional. 2005-05-22 15:52:51 +00:00
Richard M. Stallman
ab3fdfd634 (describe-key): No error when UNTRANSLATED is nil. 2005-05-04 14:31:45 +00:00
Lute Kamstra
59d922a4da (describe-key-briefly): UNTRANSLATED can be nil when called from lisp. 2005-04-13 09:16:02 +00:00
Richard M. Stallman
36178ae8fb (describe-key-briefly, describe-key): Replace
strings as event types with "(any string)".
2005-04-10 01:47:43 +00:00
Richard M. Stallman
740b479c63 (where-is): Don't mention aliases with no key bindings. 2005-03-21 17:41:41 +00:00
Stefan Monnier
af5f448385 (describe-mode): Allow minor mode toggles to use a different
symbol than the minor mode variable.
2005-03-16 13:08:15 +00:00
Stefan Monnier
dd39c336a9 (describe-mode): Properly handle non-trivial lighters.
Don't ignore minor modes that are not listed in minor-mode-list.
2005-03-10 21:43:16 +00:00
Richard M. Stallman
a4bdcdf378 (help-for-help-internal): Renamed from help-for-help.
(help-for-help): Define with defalias.
2005-02-10 06:46:42 +00:00
Eli Zaretskii
3ee341ecad (help-for-help): Doc fix. 2005-02-05 12:45:44 +00:00
Kim F. Storm
72b64ad5ba (describe-key): Report effective and original binding
for mouse-1 when clicked on a link.
(describe-mode): Add follow-link property to "minor-mode" button.
2004-12-17 15:16:46 +00:00