1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-02 08:22:22 +00:00
Commit Graph

498 Commits

Author SHA1 Message Date
Glenn Morris
6ba6a3e51f Fix more custom :versions
* lisp/help.el (temp-buffer-max-height):
* lisp/window.el (fit-frame-to-buffer, fit-frame-to-buffer-bottom-margin):
Fix :version.
2012-11-10 16:43:54 -08:00
Martin Rudalics
8c7727c335 Fix bug#12731 in mouse-drag-line.
* mouse.el (mouse-drag-line): Move last form into preceding when
clause (Bug#12731).

* help.el (resize-temp-buffer-window): Fix doc-string.
2012-10-26 11:11:24 +02:00
Martin Rudalics
5938d5196d Handle window-height and window-width alist entries in `display-buffer'.
In buffer display functions handle window-height/window-width
alist entries.  Suggested by Juri Linkov as fix for Bug#1806.
* window.el (window--display-buffer): New argument ALIST.  Obey
window-height and window-width alist entries.
(window--try-to-split-window): New argument ALIST.  Bind
window-combination-limit to t when the window's size shall be
changed and window-combination-limit equals `window-size'.
(display-buffer-in-atom-window)
(display-buffer-in-major-side-window)
(display-buffer-in-side-window, display-buffer-same-window)
(display-buffer-reuse-window, display-buffer-pop-up-frame)
(display-buffer-pop-up-window, display-buffer-below-selected)
(display-buffer-at-bottom, display-buffer-in-previous-window)
(display-buffer-use-some-window): Adjust all callers of
window--display-buffer and window--try-to-split-window.
(fit-frame-to-buffer): New option.
(fit-window-to-buffer): Can resize frames if fit-frame-to-buffer
is non-nil.
(display-buffer-in-major-side-window): Evaluate window-height /
window-width alist entries.

* help.el (temp-buffer-resize-frames)
(temp-buffer-resize-regexps): Remove options.
(temp-buffer-resize-mode): Adjust doc-string.
(resize-temp-buffer-window): Don't consult
temp-buffer-resize-regexps.  Use fit-frame-to-buffer instead of
temp-buffer-resize-frames.

* dired.el (dired-mark-pop-up): Call
display-buffer-below-selected with a fit-window-to-buffer alist
entry.

* window.c (Vwindow_combination_limit): New default value.
(Qwindow_size): New symbol replacing Qtemp_buffer_resize.
2012-09-30 11:10:59 +02:00
Martin Rudalics
8e17c9ba14 Make Temp Buffer Resize Mode less intrusive (Bug#1806).
* window.c (Fsplit_window_internal): Handle only Qt value of
Vwindow_combination_limit separately.
(Qtemp_buffer_resize): New symbol.
(Vwindow_combination_limit): New default value.  Rewrite
doc-string.
* cus-start.el (window-combination-limit): Add new optional
values.
* window.el (temp-buffer-window-show)
(window--try-to-split-window): Obey new values of
window-combination-limit.
(split-window): Test window-combination-limit for t instead of
non-nil.
(display-buffer-at-bottom): New buffer display action function.
* help.el (temp-buffer-resize-regexps): New option.
(temp-buffer-resize-mode): Rewrite doc-string.
(resize-temp-buffer-window): Obey temp-buffer-resize-regexps.
Don't resize reused window.  Suggested by Glen Morris.
2012-09-22 14:56:08 +02:00
Chong Yidong
74c582e64c Fix for invoking C-h c from the minibuffer.
* help.el (describe-key-briefly): Allow the message to be seen
when invoked from the minibuffer.

Fixes: debbugs:7014
2012-09-07 13:00:32 +08:00
Martin Rudalics
ef6544601a Provide support for fitting frames to buffers.
* help.el (temp-buffer-max-height): New default value.
(temp-buffer-resize-frames): New option.
(resize-temp-buffer-window): Optionally resize frame.

* window.el (fit-frame-to-buffer-bottom-margin): New option.
(fit-frame-to-buffer): New function.
2012-09-05 11:22:20 +02:00
Martin Rudalics
c5e28e3927 New macro with-temp-buffer-window and related fixes.
* buffer.c (Fdelete_all_overlays): New function.

* window.el (temp-buffer-window-setup-hook)
(temp-buffer-window-show-hook): New hooks.
(temp-buffer-window-setup, temp-buffer-window-show)
(with-temp-buffer-window): New functions.
(fit-window-to-buffer): Remove unused optional argument
OVERRIDE.
(special-display-popup-frame): Make sure the window used shows
BUFFER.

* help.el (temp-buffer-resize-mode): Fix doc-string.
(resize-temp-buffer-window): New optional argument WINDOW.

* files.el (recover-file, save-buffers-kill-emacs):
* dired.el (dired-mark-pop-up): Use with-temp-buffer-window.
2012-09-03 10:54:25 +02:00
Chong Yidong
77f1f99cb0 Make special-display-* and display-buffer-reuse-frames obsolete.
* lisp/window.el (special-display-regexps, special-display-frame-alist)
(special-display-buffer-names, special-display-function)
(display-buffer-reuse-frames): Mark as obsolete.

* lisp/progmodes/compile.el: Don't use display-buffer-reuse-frames.

* help.el (help-print-return-message): Don't treat
display-buffer-reuse-frames specially.
2012-08-26 21:42:18 +08:00
Glenn Morris
2a1e24765b Replace version 24.2 with 24.3 where appropriate (hopefully) 2012-08-15 09:29:11 -07:00
Chong Yidong
c89926a5f1 Let C-h f do autoloading, and report if a function was previously autoloaded.
* lisp/help-fns.el (help-fns--autoloaded-p): New function.
(describe-function-1): Refer to a function as "autoloaded" if it
was autoloaded at any time in the past.  Perform autoloading if
help-enable-auto-load is non-nil.

* lisp/help.el (help-enable-auto-load): New variable.

* src/doc.c (Fsubstitute_command_keys): Fix punctuation.
2012-06-27 13:47:14 +08:00
Chong Yidong
3726946669 Remove incorrect uses of "modeline".
* ansi-color.el (ansi-color-faces-vector): Change default faces.

* cus-edit.el (mode-line):
* dframe.el (dframe-mouse-hscroll):
* emacs-lisp/re-builder.el:
* emacs-lisp/easy-mmode.el (define-minor-mode):
* frame.el (set-frame-name):
* help.el (lookup-minor-mode-from-indicator):
* net/rcirc.el (rcirc-activity-string, rcirc-short-buffer-name):
* progmodes/cc-cmds.el (c-toggle-auto-newline)
(c-toggle-hungry-state):
* progmodes/antlr-mode.el (antlr-language-alist):
* progmodes/idlw-shell.el (idlwave-shell-electric-stop-line-face):
* progmodes/vhdl-mode.el (vhdl-mode):
* progmodes/which-func.el (which-func, which-func-cleanup-function):
* term/ns-win.el (ns-face-at-pos):
* term/sup-mouse.el (sup-mouse-report):
* textmodes/flyspell.el (flyspell-mode-line-string):
* textmodes/ispell.el (ispell-highlight-face):
* textmodes/reftex-global.el:
* vc/vc-arch.el (vc-arch-mode-line-string):
* vc/vc-cvs.el (vc-cvs-mode-line-string):
* vc/vc-git.el (vc-git-mode-line-string):
* vc/vc-hooks.el (vc-display-status)
(vc-default-mode-line-string):
* vc/vc-mtn.el (vc-mtn-mode-line-string): Doc fixes.

* dired.el (dired-sort-set-mode-line): Rename from
dired-sort-set-modeline.  All callers changed.

* foldout.el (foldout-mode-line-string): Rename from
foldout-modeline-string.  All callers changed.
(foldout-update-mode-line): Rename from foldout-update-modeline.

* strokes.el (strokes-lighter): Rename from
strokes-modeline-string.

* subr.el (redraw-modeline): Make into obsolete alias.

* calendar/timeclock.el (timeclock-mode-line-display): Rename from
timeclock-modeline-display.  Make old name an alias.
(timeclock-update-mode-line): Likewise.  All callers changed.
(timeclock-mode-line-display): No need to check before using
add-hook.
(timeclock-relative, timeclock-day-over-hook)
(timeclock-use-elapsed, timeclock-mode-string)
(timeclock-mode-line-display): Doc fix, "modeline" -> "mode line".

* emulation/crisp.el (crisp-mode-mode-line-string): Rename from
crisp-mode-modeline-string.

* erc-track.el (erc-track, erc-track-faces-priority-list)
(erc-track-faces-normal-list, erc-track-find-face)
(erc-track-modified-channels): Fix modeline -> mode line in docs.

* eshell/esh-mode.el (eshell-status-in-mode-line): Rename from
eshell-status-in-modeline.

* org-clock.el (org-clock-string-limit)
(org-clock-modeline-total, org-clock-task-overrun-text)
(org-clock-mode-line-entry): Doc fix, "modeline" -> "mode line".

* play/solitaire.el (solitaire-build-mode-line): Rename from
solitaire-build-modeline.  All callers changed.

* play/zone.el (zone-hiding-mode-line): Rename from
zone-hiding-modeline.  All callers changed.
(zone): Remove unusued `modeline-hidden-level' property.

* progmodes/xscheme.el (xscheme-mode-line-initialize): Rename from
xscheme-modeline-initialize.  All callers changed.

* textmodes/sgml-mode.el (html-face-tag-alist)
(html-tag-face-alist): Use mode-line face instead of obsolete
alias modeline.

Fixes: debbugs:10329
2012-06-02 18:56:09 +08:00
Chong Yidong
27d1f87a35 Misc docfixes.
Suggested by Martin Rudalics.

* doc/lispref/display.texi (Face Functions): Fix define-obsolete-face-alias.

* doc/lispref/functions.texi (Obsolete Functions): Fix doc for
set-advertised-calling-convention.

* doc/lispref/modes.texi (Mode Help): Fix describe-mode.

* doc/lispref/variables.texi (Variable Aliases): Fix make-obsolete-variable.

* lisp/help.el (describe-mode): Doc fix.
2012-05-15 23:43:06 +08:00
Glenn Morris
44e97401cd Standardize possessive apostrophe usage in manuals, docs, and comments
Ref: http://lists.gnu.org/archive/html/emacs-devel/2012-02/msg00649.html
2012-02-28 00:17:21 -08:00
Glenn Morris
acaf905b11 Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
Paul Eggert
e4920bc99d Spelling fixes. 2011-11-24 23:14:48 -08:00
Martin Rudalics
4ee8844078 Remove unused variable temp-buffer-show-specifiers.
* window.c (temp_output_buffer_show): Don't use
Vtemp_buffer_show_specifiers.
(Vtemp_buffer_show_specifiers): Remove unused variable.
* help.el (with-help-window): Don't reference
temp-buffer-show-specifiers in doc-string.
2011-11-01 17:21:41 +01:00
Martin Rudalics
3d8daefefa Remove "iso-" infix from window combination functions.
* window.el (window-iso-combination-p, window-iso-combined-p)
(window-iso-combinations): Remove "iso-" infix.  Suggested by
Chong Yidong.
(window-min-size-1, window-size-fixed-1, window-min-delta-1)
(window-max-delta-1, window-resize, window--resize-siblings)
(window--resize-this-window, adjust-window-trailing-edge)
(split-window, balance-windows-1)
(shrink-window-if-larger-than-buffer):
* calendar/calendar.el (calendar-generate-window):
* help.el (resize-temp-buffer-window): Adjust callers
accordingly.
* windows.texi (Windows and Frames): Remove "iso-" infix from
documentation of window-iso-combined-p.
2011-10-30 09:29:56 +01:00
Chong Yidong
06e21633a4 Fix minor mode docstrings for the new meaning of a nil ARG.
* abbrev.el (abbrev-mode):
* allout.el (allout-mode):
* autoinsert.el (auto-insert-mode):
* autoarg.el (autoarg-mode, autoarg-kp-mode):
* autorevert.el (auto-revert-mode, auto-revert-tail-mode)
(global-auto-revert-mode):
* battery.el (display-battery-mode):
* composite.el (global-auto-composition-mode)
(auto-composition-mode):
* delsel.el (delete-selection-mode):
* desktop.el (desktop-save-mode):
* dired-x.el (dired-omit-mode):
* dirtrack.el (dirtrack-mode):
* doc-view.el (doc-view-minor-mode):
* double.el (double-mode):
* electric.el (electric-indent-mode, electric-pair-mode):
* emacs-lock.el (emacs-lock-mode):
* epa-hook.el (auto-encryption-mode):
* follow.el (follow-mode):
* font-core.el (font-lock-mode):
* frame.el (auto-raise-mode, auto-lower-mode, blink-cursor-mode):
* help.el (temp-buffer-resize-mode):
* hilit-chg.el (highlight-changes-mode)
(highlight-changes-visible-mode):
* hi-lock.el (hi-lock-mode):
* hl-line.el (hl-line-mode, global-hl-line-mode):
* icomplete.el (icomplete-mode):
* ido.el (ido-everywhere):
* image-file.el (auto-image-file-mode):
* image-mode.el (image-minor-mode):
* iswitchb.el (iswitchb-mode):
* jka-cmpr-hook.el (auto-compression-mode):
* linum.el (linum-mode):
* longlines.el (longlines-mode):
* master.el (master-mode):
* mb-depth.el (minibuffer-depth-indicate-mode):
* menu-bar.el (menu-bar-mode):
* minibuf-eldef.el (minibuffer-electric-default-mode):
* mouse-sel.el (mouse-sel-mode):
* msb.el (msb-mode):
* mwheel.el (mouse-wheel-mode):
* outline.el (outline-minor-mode):
* paren.el (show-paren-mode):
* recentf.el (recentf-mode):
* reveal.el (reveal-mode, global-reveal-mode):
* rfn-eshadow.el (file-name-shadow-mode):
* ruler-mode.el (ruler-mode):
* savehist.el (savehist-mode):
* scroll-all.el (scroll-all-mode):
* scroll-bar.el (scroll-bar-mode):
* server.el (server-mode):
* shell.el (shell-dirtrack-mode):
* simple.el (auto-fill-mode, transient-mark-mode)
(visual-line-mode, overwrite-mode, binary-overwrite-mode)
(line-number-mode, column-number-mode, size-indication-mode)
(auto-save-mode, normal-erase-is-backspace-mode, visible-mode):
* strokes.el (strokes-mode):
* time.el (display-time-mode):
* t-mouse.el (gpm-mouse-mode):
* tool-bar.el (tool-bar-mode):
* tooltip.el (tooltip-mode):
* type-break.el (type-break-mode-line-message-mode)
(type-break-query-mode):
* view.el (view-mode):
* whitespace.el (whitespace-mode, whitespace-newline-mode)
(global-whitespace-mode, global-whitespace-newline-mode):
* xt-mouse.el (xterm-mouse-mode): Doc fix.

* emacs-lisp/easy-mmode.el (define-globalized-minor-mode): Fix
autogenerated docstring.
2011-10-19 08:54:24 -04:00
Martin Rudalics
b5516bbd83 In command-line-1 insert initial-scratch-message before markers (Bug#9605).
* startup.el (command-line-1): Use insert-before-markers when
inserting initial-scratch-message.  (Bug#9605)
* help.el (help-window): Remove variable.
2011-09-29 10:16:15 +02:00
Martin Rudalics
cf4eacfdca Rewrite code quitting windows and restoring the previous buffer.
* window.el (set-window-buffer-start-and-point): Call
set-window-start with NOFORCE argument t.  Suggested by Thierry
Volpiatto <thierry.volpiatto@gmail.com>.
(quit-window): Reword doc-string.  Handle new format of
quit-restore parameter.  Don't delete window if it has a
previous buffer we can show instead of the present one.
(display-buffer-record-window): Rewrite using a new format for
the quit-restore window parameter
(special-display-popup-frame, display-buffer-same-window)
(display-buffer-reuse-window, display-buffer-pop-up-frame)
(display-buffer-pop-up-window, display-buffer-use-some-window):
Adapt symbol passed to display-buffer-record-window.
* help.el (help-window-setup): Handle new format of quit-restore
parameter.
2011-09-21 10:20:21 +02:00
Martin Rudalics
f678e0b6a2 Replace display-buffer-window by help-setup window parameter.
* window.el (display-buffer-window): Remove.
(display-buffer-record-window): Use help-setup window parameter
instead of variable display-buffer-window.
(display-buffer-function, special-display-buffer-names)
(special-display-function): Mention help-setup parameter instead
of display-buffer-window in doc-string.
* help.el (help-window-setup): New argument help-window.  Use
help-window-setup parameter instead of display-buffer-window.
Reword some messages.
(with-help-window): Pass window used for displaying the buffer
to help-window-setup.  Don't set display-buffer-window.
2011-09-14 11:17:30 +02:00
Glenn Morris
b2cba41ecd * lisp/help.el (describe-key-briefly): Copy previous standard-output change. 2011-09-13 00:22:05 -07:00
PJ Weisberg
e3ce671f37 * lisp/help.el (where-is): Respect non-standard standard-output. (tiny change)
Fixes: debbugs:9030
2011-09-13 00:18:13 -07:00
Christoph Scholtes
f3ada0eeb5 * help.el (help-return-method): Doc fix. 2011-09-03 11:16:57 -06:00
Martin Rudalics
3bbf23bc31 Fix message in help-window-setup (Bug#9341).
* help.el (help-window-setup): Fix message displayed when other
window is reused.  (Bug#9341)
2011-08-23 11:31:54 +02:00
Martin Rudalics
357f93d245 Make help and view-mode work with new buffer display facilities.
* help.el (help-window): Remove variable.
(help-window-point-marker, temp-buffer-max-height)
(temp-buffer-resize-mode, help-window-select): Rewrite doc-strings.
(help-print-return-message): Don't set help-window.
(resize-temp-buffer-window): Rewrite cod eand doc-string.
(help-window-setup-finish): Remove.
(help-window-display-message, help-window-setup)
(with-help-window): Major rewrite based on new
display-buffer-window variable.

* help-mode.el (help-mode-finish): Remove help-window related
code.

* view.el (view-exits-all-viewing-windows): Remove reference to
view-return-to-alist in doc-string.
(view-return-to-alist): Make obsolete.
(view-buffer): Call pop-to-buffer-same-window and remove
undo-window code.
(view-buffer-other-window): Call pop-to-buffer-other-window and
simplify code.  Ignore second argument.
(view-buffer-other-frame): Call pop-to-buffer-other-frame and
simplify code.  Ignore second argument.
(view-return-to-alist-update): Make obsolete.
(view-mode-enter): Rename second argument to QUIT-RESTORE.
Rewrite using quit-restore window parameters.
(view-mode-exit): Rename second argument to EXIT-ONLY.  Rewrite
using quit-restore-window.
(View-exit, View-exit-and-edit, View-leave, View-quit)
(View-quit-all, View-kill-and-leave): Call view-mode-exit with
appropriate arguments.
(view-end-message): Use quit-restore window parameter.
2011-06-13 15:14:42 +02:00
Juanma Barranquero
06b605171f lisp/*.el: Lexical-binding cleanup. 2011-04-19 15:44:55 +02:00
Chong Yidong
cbb5934231 Remove internal_with_output_to_temp_buffer, replacing sole user with Lisp.
* lisp/help.el (help-form-show): New function, to be called from C.
Put help-form output in a buffer named differently than *Help*.

* src/keyboard.c (read_char): Call Lisp function help-form-show,
instead of using internal_with_output_to_temp_buffer.
(Qhelp_form_show): New var.

* src/lisp.h (internal_with_output_to_temp_buffer): Remove prototype.

* src/print.c (internal_with_output_to_temp_buffer): Function deleted.
2011-04-08 11:37:15 -04:00
Juanma Barranquero
9d05d1ba20 lisp/help.el (describe-mode): Link to the mode's definition.
Fixes: debbugs:8185
2011-03-13 02:57:40 +01:00
Glenn Morris
73b0cd5003 Convert consecutive FSF copyright years to ranges. 2011-01-24 20:08:28 -08:00
Glenn Morris
e9bffc61f2 Refill some copyright headers. 2011-01-15 18:21:30 -08:00
Stefan Monnier
77ab81d054 Merge from emacs-23 2011-01-14 12:18:41 -05:00
Glenn Morris
5df4f04cd3 Add 2011 to FSF/AIST copyright years. 2011-01-02 15:50:46 -08:00
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
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
Juri Linkov
918f2e56d9 * help.el (function-called-at-point):
As a last resort try striping non-word prefixes and suffixes.
2004-12-16 13:05:37 +00:00
Juri Linkov
d6288299d3 (function-called-at-point): read -> intern. 2004-10-30 01:08:00 +00:00
Kim F. Storm
4cf9f027a1 (describe-key): Describe both down-event and up-event
for a mouse click.
2004-10-26 12:59:44 +00:00
Kim F. Storm
b0915a3104 Clean whitespace. 2004-10-24 21:07:38 +00:00
Kim F. Storm
d1eb6c47fa (describe-mode): Fix 2004-10-13 change.
Copy pure "Auto Fill" string so it can be propertized later
without causing a read-only error.
2004-10-24 20:35:12 +00:00
Daniel Pfeiffer
e25e90b4b1 (describe-mode): Use marker buttons to make minor mode list into hyperlinks. 2004-10-13 19:01:01 +00:00
Juri Linkov
542e904c45 (function-called-at-point): Try `find-tag-default' when other methods failed. 2004-09-02 16:37:01 +00:00
Luc Teirlinck
abca4ad75a (describe-bindings): Doc fix. 2004-08-09 18:50:28 +00:00
Juri Linkov
598ea453d3 (view-emacs-news): With argument, display info for the
selected version by finding it among different NEWS files, and
narrowing the buffer to the selected version.
2004-04-27 06:35:25 +00:00
John Paul Wallington
efde809a83 (describe-mode): Doc fix. 2004-04-12 10:25:33 +00:00
Luc Teirlinck
7ada28ac7e (help-map): Bind display-local-help' to C-h .'.
(help-for-help): Add `C-h .' to the listed Help options.
Remove trailing whitespace.
2003-11-30 17:50:54 +00:00
Richard M. Stallman
f6c57ef690 (describe-mode): Start with a brief list of minor modes.
Find them thru minor-mode-list so as to find them all.
Show them in alphabetical order.
2003-09-30 12:50:44 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Masatake YAMATO
335028c3be * help.el (describe-minor-mode): New function implementation.
Accept both minor mode string and minor mode indicator.
(describe-minor-mode-completion-table-for-indicator)
(describe-minor-mode-completion-table-for-symbol): New functions.
minor-mode-list is used here.
(describe-minor-mode-from-symbol): renamed
from (old) describe-minor-mode. Use
describe-minor-mode-completion-table-for-symbol.
Don't use eval. Just use symbol-name.
(describe-minor-mode-from-indicator): Document is updated.
Use `format-mode-line'. Use
describe-minor-mode-from-symbol instead of
describe-minor-mode.
Use describe-minor-mode-completion-table-for-indicator.
(expand-minor-mode-indicator-object): removed.
(lookup-minor-mode-from-indicator): remove the fist white
space from both indicator and anindicator before comparing them.

* bindings.el (mode-line-major-mode-keymap)
(mode-line-minor-mode-keymap): defined keys for the maps
here in `defvar'.
2003-04-12 17:28:24 +00:00
Juanma Barranquero
8e86406878 (describe-minor-mode, describe-minor-mode-from-indicator,
lookup-minor-mode-from-indicator): New functions.
2003-03-31 20:22:58 +00:00
Kim F. Storm
023b93f6b0 Renamed remap-command to command-remapping. All uses changed. 2003-02-12 23:13:43 +00:00
Juanma Barranquero
71296446d3 Trailing whitespace deleted. 2003-02-04 11:26:42 +00:00
Richard M. Stallman
d92c27571f (where-is): Catch errors in indirect-function. 2003-01-13 08:04:46 +00:00
Stefan Monnier
3829bcc589 (where-is): Rename map to defs (a list of syms is not a map).
Test fboundp first, to speed things up.  Use push.
2002-11-07 18:28:09 +00:00
Juanma Barranquero
7a698dc1c5 (where-is): Repport also aliases of the passed command. 2002-11-07 16:46:11 +00:00
Stefan Monnier
ae1bb8acec (help-key-description): Show the untranslated keys
when they start with ESC and the ESC was not translated.
2002-07-16 16:08:44 +00:00
Richard M. Stallman
d009b6e905 (help-map): Add binding for info-emacs-manual.
(print-help-return-message): Doc fix.
2002-07-12 22:57:11 +00:00
Richard M. Stallman
1ebc1f01bf (view-todo): New function.
(help-map): Bind C-h C-t to view-todo.
(help-for-help): Change the text.
2002-05-01 16:41:52 +00:00
Gerd Moellmann
f03b7c7d8a (string-key-binding): Deal with margin events. 2002-04-12 09:40:56 +00:00