1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-14 09:39:42 +00:00
Commit Graph

148161 Commits

Author SHA1 Message Date
Eli Zaretskii
c36df52ff5 Fix infloop in lsp-mode
* src/indent.c (line_number_display_width): Make sure the selected
window's buffer is current before using display code on it:
redisplay assumes that the window's buffer is current at all
times.  Reported by Evgeny Kurnevsky via lsp-mode's issue 1621,
https://github.com/emacs-lsp/lsp-mode/issues/1621.
2021-05-04 20:37:33 +03:00
Glenn Morris
0c993ed1d3 Merge from origin/emacs-27
40228fffd7 (origin/emacs-27) Fix code for newline-and-indent in skele...
56c4c8ef32 * lisp/jka-compr.el (jka-compr-uninstall): Fix function re...
2021-05-04 07:50:28 -07:00
Glenn Morris
697fd3e919 ; Merge from origin/emacs-27
The following commits were skipped:

6a46d3d809 (emacs-27) ; Auto-commit of loaddefs files.
ccfd2e20a9 Fix GUD overlay arrows in M-x gdb when debugging over Tram...
e61688f87d Fix setting breakpoints in M-x gdb for remote files.  Don'...
2021-05-04 07:50:28 -07:00
Glenn Morris
6a030deb3d Merge from origin/emacs-27
101a049f55 Improve doc string of 'tab-width'.
43c154404e * lisp/emacs-lisp/elp.el: Doc fixes.
1984213f62 * lisp/emacs-lisp/pp.el: Doc fixes.
6486c9dc73 * admin/make-tarball.txt: Note to update more files on web...
2021-05-04 07:50:25 -07:00
Basil L. Contovounesios
b8f88d76ea Remove as of recently unused GDK macro
Its only use was removed in the recent change of 2021-04-27 "Major
rewrite of adjust_frame_size", announced in the following thread:
https://lists.gnu.org/r/emacs-devel/2021-04/msg01162.html

* src/gtkutil.c [USE_GTK && !HAVE_GTK3] (gdk_window_get_geometry):
Remove unused macro to pacify -Wunused-macros build warning.
2021-05-04 15:19:29 +01:00
Basil L. Contovounesios
7d0067f297 ; Fix and simplify last change in bookmark.el. 2021-05-04 10:54:24 +01:00
Lars Ingebrigtsen
e634130607 Fix inconsistent behaviour in find-file-noselect when using nowarn
* lisp/files.el (after-find-file): Behave the same in when
warning/not warning (bug#47850).  This fixes this test case:
(switch-to-buffer (find-file-noselect "non-existing-dir/test.el" t))
which would leave the buffer read-only.
2021-05-04 11:48:27 +02:00
Lars Ingebrigtsen
ed42afd403 Allow TAB to go to a key in EPA key buffers
* lisp/epa.el (epa--insert-keys): Allow TAB to go to the keys
(bug#47876).
2021-05-04 11:25:33 +02:00
Lars Ingebrigtsen
60ff12a7d9 Fix doc marker for previous bookmark NEWS change 2021-05-04 11:04:38 +02:00
Boruch Baum
ab6cb65cb2 Fontify lines when setting a bookmark
* lisp/bookmark.el (bookmark-fontify): New user option (bug#48179).
(bookmark-face): New face.
(bookmark--fontify, bookmark--unfontify): New functions.
(bookmark-set-internal, bookmark--jump-via, bookmark-delete): Use
them.
2021-05-04 10:58:52 +02:00
Lars Ingebrigtsen
4ba9024d44 Ensure updating the animated image in all windows
* lisp/image.el (image-show-frame): Simplify the window update --
pass in the buffer, which is a noop if the buffer isn't displayed.
2021-05-04 09:57:30 +02:00
Martin Rudalics
8a4bb6b056 Fix a problem with x_set_tab_bar_lines (Bug#46827)
* src/xfns.c (x_set_tab_bar_lines): Call
x_change_tab_bar_height only if the number of tab bar lines
changed from or to zero (Bug#46827).
* src/xterm.c (x_make_frame_visible): Make frame_size_history
update less noisy by doing it only if the frame wasn't visible
before.
2021-05-04 09:17:11 +02:00
Stefan Kangas
131e874d14 ; * etc/NEWS: Fix typo. 2021-05-04 00:59:22 +02:00
Philip K
3c4619edeb project--buffer-list: Avoid Tramp buffers when possible
* project.el (project--buffer-list): Add file-remote-p check.
2021-05-04 00:36:00 +03:00
Michael Albinus
824d1a57ec Fix unquoting of file names in subprocesses (Bug#48177)
* lisp/files.el (file-name-non-special):
Improve handling of inhibit-file-name-handlers.

* src/callproc.c (Fcall_process, call_process): Unquote infile,
error_file and output_file.  (Bug#48177)

* test/lisp/files-tests.el (files-tests-file-name-non-special--subprocess)
(files-tests-file-name-non-special-file-name-all-completions)
(files-tests-file-name-non-special-file-name-completion): Adapt tests.
2021-05-03 16:52:18 +02:00
Mauro Aranda
46b7ce0e9c ; * etc/tutorials/TUTORIAL.es: Fix grammar in recent change 2021-05-03 10:57:00 -03:00
Alan Third
4fdebc016c Fix incorrect resizing behaviour on macOS (bug#48157, bug#48162)
* src/nsterm.m ([EmacsView viewDidResize:]): The drawing buffer can be
resized independently of Emacs's idea of the frame size.

Co-authored-by: martin rudalics <rudalics@gmx.at>
2021-05-03 13:51:55 +01:00
Lars Ingebrigtsen
1dafab8936 ediff shouldn't alter the kill ring when copying a diff
* lisp/vc/ediff-util.el (ediff-copy-diff, ediff-pop-diff): Don't
alter the kill ring (bug#47881).
2021-05-03 12:21:11 +02:00
Lars Ingebrigtsen
1fa1f3184a Speed up animation of non-displayed buffers
* lisp/image.el (image-show-frame): Don't force an update if the
buffer with the animation isn't in a window (bug#47895).  Also
just update the window in question.
2021-05-03 11:51:53 +02:00
Lars Ingebrigtsen
4aa4a8f952 Speed up animation of non-displayed images
* lisp/image.el (image-animate): Only compute the animation data
once -- this avoids recomputing the image on every iteration when
the image is not displayed (bug#47895).
2021-05-03 11:45:22 +02:00
Lars Ingebrigtsen
eddb00c5bf Note that function symbols are preferred in `add-hook'
* lisp/subr.el (add-hook): Note that FUNCTION should preferably be
a symbol (bug#47992).
2021-05-03 10:45:30 +02:00
Steve Purcell
81fc95bf22 ruby-mode.el: puts and printf do not require args
* lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): puts and
printf can be called without arguments, so the font locking of
"bare" calls to either is incorrect.  The fix is to font-lock them
as for other kernel methods which accepts zero or more arguments
(bug#48180).
2021-05-03 09:41:44 +02:00
Lele Gaifax
73513c36a9 Align TUTORIAL.it to the English version
* etc/tutorials/TUTORIAL.it: Reference 'describe-command' to replicate
recent change.  Add also a space before '<Invio>' in several places,
mimicking the usage of <Return> in the English version (bug#48183).
2021-05-03 09:38:06 +02:00
Philipp Stephani
40228fffd7 Fix code for newline-and-indent in skeleton language.
The code for this is the symbol 'n', which is usually spelled as '\n'
here, not the character ?\n.

* doc/misc/autotype.texi (Skeleton Language): Fix item for
newline-and-indent.
2021-05-02 20:57:38 +02:00
Martin Rudalics
30d974bf5c Add two changes announced but not included in previous commit
* src/frame.c (adjust_frame_size): Remove extra
inhibit_horizontal/_vertical checks.  Improve the implied
resize check when INHIBIT equals 2.
2021-05-02 17:44:01 +02:00
Stefan Kangas
21f2fbb648 * etc/tutorials/TUTORIAL.sv: Adjust to latest change in TUTORIAL. 2021-05-02 17:37:45 +02:00
Stefan Kangas
10a7d44f19 * etc/tutorials/TUTORIAL.es: Adjust to latest change in TUTORIAL. 2021-05-02 17:37:45 +02:00
Alan Mackenzie
84a2a4715b * lisp/progmodes/cc-defs (c-save-buffer-state): Amend debug spec, t to let*
This should solve part of bug #48100.
2021-05-02 15:25:14 +00:00
Eli Zaretskii
013aee1ad3 * etc/tutorials/TUTORIAL.he: Adjust to latest change in TUTORIAL. 2021-05-02 18:17:16 +03:00
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