Commit graph

365 commits

Author SHA1 Message Date
Glenn Morris
aa02a29f61 * lisp/help.el (finder-by-keyword): Remove unnecessary autoload. 2010-10-22 19:36:28 -07:00
Chong Yidong
bd78fa1d54 Add "Package:" file headers to denote built-in packages. 2010-08-29 12:17:13 -04:00
Chong Yidong
cb6c4991ef Improvements to describe-package buffer.
* lisp/help.el (help-map): Bind `C-h P' to describe-package.

* lisp/menu-bar.el (menu-bar-describe-menu): Add describe-package.

* lisp/emacs-lisp/package.el (package-refresh-contents): Catch errors
when downloading archives.
(describe-package-1): Add package commentary.
(package-install-button-action): New function.
(package-menu-mode-map): Bind ? to package-menu-describe-package.
(package-menu-view-commentary): Function removed.
(package-list-packages-internal): Hide the `package' package too.
2010-08-25 23:31:34 -04:00
Chong Yidong
2ec1b5ee34 Merge changes from emacs-23 branch. 2010-07-10 14:52:53 -04:00
Chong Yidong
e8579ebc15 Minor fix to describe-key, and a docstring.
* help.el (describe-key): Print up-event using key-description.

* mouse.el (mouse-appearance-menu): Add docstring.
2010-07-06 15:42:46 -04:00
Stefan Monnier
6e104790e7 Merge from emacs-23 2010-04-19 11:07:52 -04:00
Juanma Barranquero
6460e5342c lisp/help.el: Turn ChangeLog comment into source comment. 2010-04-05 22:05:47 +02:00
Juanma Barranquero
309d5b43a7 * help.el (describe-mode): Return nil (for IELM's sake). 2010-04-05 12:36:45 +02:00
Chong Yidong
6baa27a2b2 * help.el (help-window-setup-finish): Doc fix (Bug#5830).
Reported by monkey@sandpframing.com.
2010-04-03 19:40:20 -04:00
Glenn Morris
114f9c9679 Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
Stefan Monnier
6f06a17190 (describe-bindings-internal): Remove `interactive'. 2009-11-27 04:24:47 +00:00
Glenn Morris
e7e2b26cc6 Markus Rost <rost at math.uni-bielefeld.de>
(describe-no-warranty): Place point in a slightly better position in
the GPLv3 text.
2009-10-07 02:52:37 +00:00
Juanma Barranquero
32226619c5 Use called-interactively-p' instead of interactive-p'. 2009-10-02 03:48:36 +00:00
Stefan Monnier
ce9a0ccb72 * help.el (help-for-help-internal): Don't purecopy the text (bug#4560).
* isearch.el (isearch-help-for-help-internal): Purecopy the second arg.
* help-macro.el (make-help-screen): Avoid using an ambiguous function
definition where the docstring could be taken for the return value.
2009-09-27 00:27:21 +00:00
Dan Nicolaescu
9cd39affaa * bindings.el (mode-line-mode-menu): Add purecopy calls for :help.
* help.el (help-for-help-internal): Add purecopy calls for text.
2009-09-14 23:28:40 +00:00
Stefan Monnier
b3d8e4a025 (help-print-return-message): Rename from print-help-return-message. 2009-08-19 18:07:07 +00:00
Juri Linkov
3ffb948c26 (view-help-file): Use goto-address-mode instead of goto-address. 2009-01-14 23:10:54 +00:00
Glenn Morris
ae940284fa Add 2009 to copyright years. 2009-01-05 03:18:22 +00:00
Martin Rudalics
90ad354160 (help-for-help-internal): Fix entry for "l". 2008-12-25 13:49:52 +00:00
Romain Francoise
6b8d1c7243 * help.el (view-lossage): Fix docstring, lossage is now 300 keys.
* kmacro.el (kmacro-edit-lossage): Ditto.
* edmacro.el (edit-kbd-macro): Ditto.
2008-10-11 18:43:38 +00:00
Martin Rudalics
eff2642489 (with-help-window): Return last value in BODY. 2008-08-14 05:51:24 +00:00
Stefan Monnier
2e6750c8f8 * help.el (function-called-at-point):
* help-fns.el (variable-at-point): Use emacs-lisp-mode-syntax-table
even when calling find-tag-default.
2008-06-06 20:02:42 +00:00
Glenn Morris
eb3fa2cfcf Switch to recommended form of GPLv3 permissions notice. 2008-05-06 08:06:51 +00:00
Juri Linkov
de5ab37dc9 (describe-project): Remove defaliases for view-todo and
describe-project that are now unnecessary after the merge from
emacs--rel--22 that added define-obsolete-function-alias.
2008-03-12 21:55:02 +00:00
Miles Bader
56388398e7 Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1095
2008-03-10 00:49:47 +00:00
Kim F. Storm
4e44f5ceeb (view-emacs-todo): Rename from view-todo. Change users.
(describe-gnu-project): Rename from describe-project. Change users.
Define obsolete function aliases for the old names.
2008-03-06 00:07:41 +00:00
Kim F. Storm
7b01c8d79e (view-emacs-todo): Rename from view-todo.
(describe-gnu-project): Rename from describe-project.  Users changed.
(view-help-file): New helper function.
(describe-distribution, describe-copying, describe-gnu-project)
(view-todo, view-order-manuals, view-emacs-problems): Use it.
(view-emacs-debugging, view-external-packages): New commands.
(help-map): Move describe-distribution to C-h C-o (ordering).
Move view-emacs-problems to C-h C-p (problems).
Bind view-emacs-debugging to C-h C-d (debugging).
Bind view-external-packages to C-h C-e (extras).
(help-for-help-internal): Cleanup and align descriptions.
Remove command names to reduce clutter.
2008-02-29 23:37:38 +00:00
Bastien Guerry
b96817c387 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.
2008-02-12 07:10:49 +00:00
Stefan Monnier
145fe412ba (describe-mode): Pass the right buffer to format-mode-line. 2008-01-16 15:55:15 +00:00
Miles Bader
59ce725a3b Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-987
2008-01-08 20:46:54 +00:00
Glenn Morris
409cc4a3ea Add 2008 to copyright years. 2008-01-07 02:45:14 +00:00
Deepak Goel
f6e7ec0248 Fix possibly buggy calls to `message'. 2007-12-06 00:17:56 +00:00
Juri Linkov
c766ffaa57 (help-map, help-for-help-internal): Add `C-h C-a'. 2007-11-10 21:19:54 +00:00
Martin Rudalics
cde5612198 (help-window, help-window-point-marker): New variables.
(help-window-select): New option.
(with-help-window): New macro for displaying help windows.
(help-window-display-message, help-window-setup-finish)
(help-window-setup): New functions used for setting up help windows.
(print-help-return-message): Reset help-window to nil.
(view-lossage): Use with-help-window instead of
with-output-to-temp-buffer and move help-window-point-marker after
inserted text.
(describe-bindings, describe-key, describe-mode): Use
with-help-window instead of with-output-to-temp-buffer.
2007-11-10 09:53:22 +00:00
Juanma Barranquero
cc6650afd6 (view-emacs-news): Use mapc' rather than mapcar'. 2007-09-25 11:07:06 +00:00
Juri Linkov
d4a183328c (help-map): Bind C-h C-a to about-emacs.
(help-for-help-internal): Add C-a description to C-h help text.
2007-09-22 15:42:12 +00:00
Martin Rudalics
2a5f11a2b0 (resize-temp-buffer-window): Use window-full-width-p
instead of comparing frame-width and window-width.
2007-08-06 06:51:13 +00:00
Glenn Morris
b4aa60262c Switch license to GPLv3 or later. 2007-07-25 04:50:21 +00:00
Chong Yidong
c3f82997d7 Fix typo in comment. 2007-03-21 16:15:45 +00:00
Juanma Barranquero
463d75acd9 (where-is): Fail gracefully when not passed a command. 2007-02-28 12:50:43 +00:00
Glenn Morris
d7a0267c8d Add 2007 to copyright years. 2007-01-21 03:53:13 +00:00
Juanma Barranquero
94318c8a1f (describe-minor-mode-completion-table-for-indicator,
lookup-minor-mode-from-indicator): "?\ " -> "?\s".
2006-11-27 13:52:27 +00:00
Juanma Barranquero
e08b54f227 (view-emacs-news): Fix typo in error message. 2006-11-06 02:46:23 +00:00
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