1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-13 11:12:19 -08:00
Commit graph

151382 commits

Author SHA1 Message Date
Stefan Kangas
6c1c3204e4 Add new help command 'describe-command'
* lisp/help-fns.el (describe-command): New command.
(help-fns--describe-function-or-command-prompt): New helper
function to prompt for a function or function.  (Bug#46627)
(describe-function): Use above new helper function.

* lisp/help.el (help-map): Bind above new command to `C-h x'.
(help-for-help): Add this new command to the help summary.
* lisp/menu-bar.el (menu-bar-describe-menu): Add the new command to
the help menu.

* doc/emacs/help.texi (Help Summary, Name Help): Document
'describe-command', and update documentation on 'describe-function'.
* etc/tutorials/TUTORIAL: Change reference from 'describe-function' to
'describe-command'.
2021-05-02 15:04:00 +02:00
Stefan Monnier
c842399ef0 * lisp/apropos.el (apropos-value, apropos-local-value): Tweak for lexbind
Don't skip symbols for the nowadays lexically scoped local vars.
2021-05-02 08:40:28 -04:00
Basil L. Contovounesios
4e17c5e8c3 ; Fix last change in lisp/replace.el. 2021-05-02 12:59:19 +01:00
Alan Third
609d814fdf Fix crash when resizing GNUstep builds
The toolkit can send far too many resize notifications, so be more
careful when we take action after receiving one.

* src/nsfns.m (ns_set_tool_bar_lines): Remove unneeded NSTRACE.
* src/nsterm.m ([EmacsView viewDidResize:]): Don't report resizes to
Emacs when the same change has already been reported and delayed.
2021-05-02 11:52:45 +01:00
Stefan Kangas
d0d95d1614 * lisp/help-macro.el: Doc fix. 2021-05-02 12:22:34 +02:00
Stefan Kangas
fb44f897d9 Bind S-SPC to scroll-down in help-for-help
* lisp/help-macro.el (make-help-screen): Bind S-SPC to
scroll-down.  Thanks to Dmitry Gutov <dgutov@yandex.ru>.
2021-05-02 12:22:34 +02:00
Stefan Kangas
0fe250c637 Minor doc fixes in simple.el
* lisp/simple.el (next-error-move-function)
(next-error-found-function, next-error-found)
(previous-error-no-select, eval-expression-get-print-arguments)
(undo-adjust-elt, undo-adjust-beg-end): Minor doc fixes.
2021-05-02 12:22:34 +02:00
Nikolay Kudryavtsev
65fe1777e6 Don't use pdumper-stats with unexec
* lisp/emacs-lisp/bytecomp.el (byte-compile-refresh-preloaded): Check if
pdumper-stats is bound before using it.
2021-05-02 13:15:50 +03:00
Lars Ingebrigtsen
e5b93f6c14 Inhibit lines in doc-view-mode
* lisp/doc-view.el (doc-view-mode): Inhibit line number modes
(bug#47974).  Change suggested by Gregory Heytings.
2021-05-02 11:28:30 +02:00
Eric Skoglund
ede24f8f97 Add newline and tab matching documentation to query-replace-regexp
* lisp/replace.el: Add \n and \t matching information to
query-replace-regexp docstring (bug#47981).
2021-05-02 11:13:45 +02:00
Lars Ingebrigtsen
51a9ed843f Tweak filtering some more
This should get the ./temacs continuation lines right.
2021-05-02 10:41:56 +02:00
Martin Rudalics
8a4081c396 Make adjust_frame_size set up frame's new_width/_height too (Bug#17120)
The purpose of this change is to have implied frame size changes
pick up sizes requested by previous explicit size changes not
only after they have been confirmed by the WM but already when
they are initially passed to adjust_frame_size (Bug#17120).

* src/dispextern.h (delayed_size_change): Remove extern.
* src/dispnew.c (delayed_size_change): Make static again.
(do_pending_window_change): Call change_frame_size only if F's
new_size_p flag is set.
(change_frame_size_1): Set/reset F's new_size_p flag
* src/frame.c (adjust_frame_size): Remove extra
inhibit_horizontal/_vertical checks.  Improve the implied
resizes check with INHIBIT equals 2.  Set F's new_width and
new_height and reset F's new_size_p flag when we run
set_window_size_hook with INHIBIT 0 or 1.
* src/frame.h (struct frame): New bit slot new_size_p.
* src/gtkutil.c (xg_frame_resized): Use F's new_size_p flag
instead of delayed_size_change to decide whether to call
change_frame_size.
(xg_frame_set_char_size): Call frame_size_history_extra before
waiting for the ConfigureNotify event.
* src/xterm.c (handle_one_xevent): Use F's new_size_p flag
instead of delayed_size_change to decide whether to call
change_frame_size.
2021-05-02 10:33:22 +02:00
Boruch Baum
eda4888e54 Suppress false positives in apropos-value
* lisp/apropos.el (apropos-value): Skip more apropos-internal
variables (bug#48063).
(apropos-value-internal): Skip the first value in the history
values, which always contains the match.
2021-05-02 10:22:21 +02:00
Philipp Stephani
56c4c8ef32 * lisp/jka-compr.el (jka-compr-uninstall): Fix function reference. 2021-05-02 01:02:00 +02:00
Stefan Monnier
f1adb6b77a * lisp/simple.el (newline): Make the hook function remove itself
(copy-region-as-kill, kill-ring-save): Simplify interactive spec.
2021-05-01 15:51:52 -04:00
Stefan Monnier
0ce2f591ff * lisp/minibuffer.el (completing-read-default): Fix bug#45474
Set `minibuffer-completion-*` variables buffer-locally instead of using
a global let-binding.  This should also help make completion work
correctly when multiple minibuffers are simultaneously active.
2021-05-01 15:30:57 -04:00
Alan Third
6b2d017ead Fix infinite loop on GNUstep when toolbar updated
* src/nsterm.m ([EmacsView viewDidResize:]): Use Emacs's existing
knowledge of the frame size to decide whether to resize or not.
2021-05-01 19:13:07 +01:00
Alan Third
a65eb23f5c Fix NS build warnings
* src/nsfns.m (Fx_create_frame): Remove unused variables.
2021-05-01 19:13:07 +01:00
Glenn Morris
d53ee1cb3e ; Auto-commit of loaddefs files. 2021-05-01 06:29:15 -07:00
Glenn Morris
6a46d3d809 ; Auto-commit of loaddefs files. 2021-05-01 06:11:33 -07:00
Jim Porter
019c70e731 Fix GUD overlay arrows in gdb-mi when debugging over Tramp
* lisp/progmodes/gdb-mi.el (gdb-frame-handler): Use local part of
file name when setting `gud-last-frame'.
2021-05-01 12:09:36 +02:00
Jim Porter
ccfd2e20a9 Fix GUD overlay arrows in M-x gdb when debugging over Tramp. Don't merge
* lisp/progmodes/gdb-mi.el (gdb-frame-handler): Use local part of
file name when setting `gud-last-frame'.
2021-05-01 12:05:37 +02:00
Jim Porter
e61688f87d Fix setting breakpoints in M-x gdb for remote files. Don't merge
* lisp/progmodes/gdb-mi.el (gdb-jsonify-buffer): Fix modification
of GDB/MI "fullname" property for remote files
2021-05-01 11:56:19 +02:00
Stefan Kangas
04266a2cac Advertise PgUp/PgDn instead of SPC/DEL in help-for-help
* lisp/help-macro.el (make-help-screen):
* lisp/help.el (help-for-help): Advertise PgUp/PgDn instead of
SPC/DEL.
2021-04-30 19:30:28 +02:00
Mattias Engdegård
1167253f75 Don't signal scan-error in interactive sexp-based commands
This takes care of unfinished business from df0f32f048 (bug#43489).

* lisp/emacs-lisp/lisp.el (end-of-defun, mark-defun):
* lisp/reposition.el (reposition-window):
* lisp/simple.el (transpose-sexps): Convert nasty-looking scan-error
into a human-readable message.
2021-04-30 17:31:20 +02:00
Eli Zaretskii
ab7a61e0ef Fix the unexec build on MS-Windows
* src/buffer.c (init_buffer) [USE_MMAP_FOR_BUFFERS]: If dumped
with unexec, be sure to map new memory also for the " prin1"
buffer.  For the reasons and discussion, see
https://lists.gnu.org/archive/html/emacs-devel/2021-04/msg01401.html.
2021-04-30 14:22:29 +03:00
Eli Zaretskii
101a049f55 Improve doc string of 'tab-width'.
* src/buffer.c (syms_of_buffer) <tab-width>: Clarify doc string.
(Bug#48058)
2021-04-30 13:48:13 +03:00
Lars Ingebrigtsen
8e083440e1 Alter `gnus-article-show-images' to re-display with images installed
* lisp/gnus/gnus-art.el (gnus-article-show-images): Reselect to
display HTML images.
2021-04-30 10:41:22 +02:00
Eli Zaretskii
2a38a2c875 Improve support for 'display-line-numbers-width-start'
* lisp/display-line-numbers.el (display-line-numbers-width-start):
Allow the value to be a number.  (Bug#48095)
(display-line-numbers-mode): Handle
'display-line-numbers-width-start' whose value is a number.
2021-04-30 10:28:50 +03:00
Stefan Monnier
7c901d90e6 * src/doc.c (Fsnarf_documentation): Fix bug#48019
Don't presume that `custom-delayed-init-variables` holds a list.
2021-04-29 18:11:04 -04:00
Stefan Monnier
1cf03f290b * lisp/mail/supercite.el (sc-select-attribution): Fix lexical conversion
Mark `citation` and `attribution` as dynamically scoped around
`sc-attribs-postselect-hook`, as documented in the function's docstring.
2021-04-29 18:03:51 -04:00
Andrea Corallo
39ebc2689b * Improve `comp-normalize-valset' reproducibility (bug#48021)
* lisp/emacs-lisp/comp-cstr.el (comp-normalize-valset): Make
	it more reproducible.
2021-04-29 21:07:07 +02:00
Glenn Morris
68bf917896 Automatically generate texinfo.el internal autoloads
* lisp/textmodes/texinfo.el: Replace manual autoloads.
* lisp/textmodes/makeinfo.el (makeinfo-region, makeinfo-buffer)
(makeinfo-recenter-compilation-buffer):
* lisp/textmodes/texnfo-upd.el (texinfo-make-menu)
(texinfo-all-menus-update, texinfo-start-menu-description)
(texinfo-indent-menu-description, texinfo-master-menu)
(texinfo-update-node, texinfo-every-node-update)
(texinfo-sequential-node-update, texinfo-insert-node-lines)
(texinfo-multiple-files-update):
Add autoload cookies, and set generated-autoload-file.
2021-04-29 11:42:03 -07:00
Stefan Kangas
43c154404e * lisp/emacs-lisp/elp.el: Doc fixes. 2021-04-29 17:18:09 +02:00
Michael Albinus
a8aa217bff Some Tramp corrections, Bug#48067
* doc/misc/tramp.texi (Frequently Asked Questions): Rephrase GNU
ELPA warnings.

* lisp/net/tramp-sh.el (tramp-sh-gio-monitor-process-filter):
Improve handling of gio warning.  (Bug#48067)
2021-04-29 15:04:51 +02:00
Stefan Kangas
1984213f62 * lisp/emacs-lisp/pp.el: Doc fixes. 2021-04-29 13:45:18 +02:00
Stefan Kangas
086e29d213 * lisp/emacs-lisp/shortdoc.el: Doc fixes. 2021-04-29 13:32:24 +02:00
Dmitry Gutov
1054525ae3 * lisp/progmodes/project.el: Also bump version. 2021-04-29 05:02:13 +03:00
Dmitry Gutov
a3c77dda95 * lisp/progmodes/xref.el: Bump version. 2021-04-29 05:02:13 +03:00
Juri Linkov
0e8c862885 * lisp/window.el (window--state-put-2): Set next/prev-buffers even to nil.
When next-buffers or prev-buffers are nil, still use set-window-next-buffers
or set-window-prev-buffers to set next/prev-buffers to nil.  (Bug#46904)
2021-04-28 23:25:08 +03:00
Andrea Corallo
f32ff81020 * Add a note related to native compilation and Dynamic Binding
* doc/lispref/variables.texi (Dynamic Binding): Add a note
	related to native compilation.
2021-04-28 22:08:29 +02:00
Michael Albinus
cccdea7e23 Tramp code cleanup
* lisp/net/tramp-archive.el (tramp-archive-handle-insert-file-contents):
Code cleanup.

* lisp/net/tramp.el: Reload `tramp-compat' when we reload
`tramp-autoloads'.
(with-tramp-file-property, with-tramp-connection-property):
Use `tramp-cache-undefined'.
(tramp-autoload-file-name-handler): Do not load tramp-compat.el.
(tramp-handle-insert-file-contents): Code cleanup.
2021-04-28 22:00:55 +02:00
Michael Albinus
0c7f1e2e42 Fix gio warning in Tramp
* lisp/net/tramp-sh.el (tramp-sh-gio-monitor-process-filter):
Improve handling of gio warning.  (Bug#48067)
2021-04-28 19:29:36 +02:00
Eli Zaretskii
2feeebe40a Doc fixes in avl-tree.el
* lisp/emacs-lisp/avl-tree.el (avl-tree--root)
(avl-tree--dir-to-sign, avl-tree--sign-to-dir)
(avl-tree--del-balance, avl-tree--enter-balance)
(avl-tree--do-copy, avl-tree--stack-repopulate, avl-tree-empty)
(avl-tree-delete, avl-tree-member, avl-tree-member-p)
(avl-tree-map, avl-tree-mapc, avl-tree-mapf, avl-tree-mapcar)
(avl-tree-copy, avl-tree-clear, avl-tree-stack)
(avl-tree-stack-first): Fix doc strings to be less verbose and to
have the first line a complete sentence.
2021-04-28 19:36:42 +03:00
Stefan Kangas
4fc6afb913 * lisp/emacs-lisp/avl-tree.el: Minor doc fixes. 2021-04-28 16:02:42 +02:00
Stefan Kangas
6486c9dc73 * admin/make-tarball.txt: Note to update more files on web page. 2021-04-28 15:23:43 +02:00
Michael Albinus
244499292e Improve add-log-current-defun-header-regexp
* lisp/vc/add-log.el (add-log-current-defun-header-regexp):
Allow digits.  Require at least one letter.  (Bug#48037)
2021-04-28 10:05:53 +02:00
Peter Oliver
a9fc30e6c2 Add tests
* test/lisp/progmodes/ruby-mode-tests.el (ruby-with-temp-file): New helper.
(ruby--set-encoding-when-ascii, ruby--set-encoding-when-utf8)
(ruby--set-encoding-when-latin-15): Tests for the previous commit (bug#48043).
2021-04-28 05:18:40 +03:00
Dmitry Gutov
6a078097c9 Don't add magic comment to Ruby files for utf-8 encoding
* lisp/progmodes/ruby-mode.el (ruby-encoding-map):
Add entry for utf-8 (bug#48043).
(ruby--detect-encoding): Don't convert to string too early, so
that returning nil is meaningful.
(ruby-mode-set-encoding): Convert to string here.
2021-04-28 05:11:36 +03:00
Andrea Corallo
c62262736c * Clean-up temporary eln test-suite directory when exiting (bug#48060)
* lisp/startup.el (normal-top-level): Remove eln test-suite temp
	dir when exiting.
2021-04-27 23:34:14 +02:00