1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-17 21:51:00 -08:00
Commit graph

155589 commits

Author SHA1 Message Date
Stefan Monnier
58e271fc5e * lisp/xdg.el (xdg--dir-home): Make it a function 2021-11-08 14:11:07 -05:00
Juri Linkov
818211ed89 * doc/emacs/search.texi (Isearch Yank): Add isearch-forward-thing-at-point.
; * etc/NEWS: Add +++ for isearch-forward-thing-at-point, reorder (bug#51444).
2021-11-08 19:36:57 +02:00
Campbell Barton
5861b8d027 * lisp/subr.el (with-undo-amalgamate): New macro
This allows commands to be made without adding undo-barriers, e.g.
kmacro-exec-ring-item.
2021-11-08 08:34:52 -05:00
Stefan Monnier
4f365eec10 * lisp/emacs-lisp/cl-generic.el: Add reference to inspiration 2021-11-08 08:20:43 -05:00
Lars Ingebrigtsen
41b1fa05c7 Switch yank-media--get-selection back to the backend function
* lisp/yank-media.el (yank-media--get-selection): Switch back to
gui-backend-get-selection until gui-get-selection is re-fixed.
2021-11-08 12:27:01 +01:00
Lars Ingebrigtsen
10b4cbb2fc Revert "Fix charset issues when yanking non-plain-text elements"
This reverts commit 5e66c75e0b.

This apparently led to problems on Windows.  The issues have to
be examined first before attempting a new fix.
2021-11-08 12:22:56 +01:00
Stefan Kangas
990aad47bd * admin/automerge: Die if changing directory fails. 2021-11-08 09:55:22 +01:00
Stefan Kangas
2b7a0397e1 Merge from origin/emacs-28
fe91f4438c ; * etc/PROBLEMS: Move librsvg-related item to better loca...
2021-11-08 09:30:18 +01:00
Lars Ingebrigtsen
846ff29420 Remove code what would always maximize xwidgets on Macos
* src/xwidget.c (x_draw_xwidget_glyph_string): Remove code that
would always maximize the widget on Macos (bug#51674).  This code
was probably added to work around a resizing bug that has since
been fixed.
2021-11-08 08:01:07 +01:00
akater
ca9fb109f7 lisp/emacs-lisp/lisp-mode.el: Fix parser state corruption.
* lisp/emacs-lisp/lisp-mode.el (lisp--local-defform-body-p): Preserve
the point.
* test/lisp/progmodes/elisp-mode-resources/flet.erts: Add corresponding
test example (bug#9622).
2021-11-08 07:38:41 +01:00
Po Lu
51aa6cee2c Fix resize of xwidgets on GTK
* src/xwidget.c (Fxwidget_resize): Queue widget for re-allocation
after setting its size request (bug#51679).
2021-11-08 07:38:41 +01:00
Stefan Kangas
cc093b03e0 ; * lisp/image-dired.el: Add some basic sections.
This file is currently rather hard to follow due to things just being
thrown in at random by many different contributors, with seemingly no
overall plan or idea.  This is the first step towards giving it some
kind of organization.
2021-11-08 07:37:48 +01:00
Po Lu
553e4b74f7 Fix hang when displaying xwidget script dialog
* src/xwidget.c (webkit_script_dialog_cb): New function.
(Fmake_xwidget): Attach script callback signal (bug#51674).
2021-11-08 06:25:02 +01:00
Stefan Kangas
a1e11502d6 image-dired: Set window-resize-pixelwise to t
* lisp/image-dired.el (image-dired-thumbnail-mode): Set
'window-resize-pixelwise' to t.
2021-11-08 06:21:57 +01:00
Lars Ingebrigtsen
60d205d201 Mention yank-media-types in the manual
* doc/lispref/frames.texi (Yanking Media): Mention yank-media-types.
2021-11-08 06:08:33 +01:00
Lars Ingebrigtsen
a460f3d378 Make html-mode--html-yank-handler more resilient
* lisp/textmodes/sgml-mode.el (html-mode--html-yank-handler): The
HTML may not be valid, so suppress errors.
2021-11-08 06:04:11 +01:00
Lars Ingebrigtsen
19f37afe27 Fix yank-media--get-selection thinko in previous change
* lisp/yank-media.el (yank-media--get-selection): Fix thinko after
previous change.
2021-11-08 06:03:41 +01:00
Lars Ingebrigtsen
0022b02d16 Clean up the yank-media data massaging
* lisp/yank-media.el (yank-media--get-selection): Put the
nul-massaging code...
(yank-media-types--format): ... here instead, and decode utf-16
better.
2021-11-08 05:54:10 +01:00
Lars Ingebrigtsen
4287e94c30 Add a new debugging/exploration command `yank-media-types'
* lisp/yank-media.el (yank-media-types): New command.
(yank-media-types--format): Helper command.
2021-11-08 05:44:10 +01:00
Stefan Kangas
fe91f4438c ; * etc/PROBLEMS: Move librsvg-related item to better location.
Reported by Mike Kupfer <mkupfer@alum.berkeley.edu>.
2021-11-08 04:53:20 +01:00
Lars Ingebrigtsen
5e66c75e0b Fix charset issues when yanking non-plain-text elements
* lisp/select.el (gui-get-selection): Make (gui-get-selection
'CLIPBOARD 'text/html) get decoded correctly (bug#31149).
2021-11-08 02:04:40 +01:00
Lars Ingebrigtsen
cddd927d36 Rename 'register-yank-media-handler'
* lisp/textmodes/sgml-mode.el (html-mode):
* lisp/gnus/message.el (message-mode):
* doc/lispref/frames.texi (Yanking Media): Adjust.
* lisp/yank-media.el (yank-media): Adjust doc string.
(yank-media-handler): Rename from `register-' because that may
cause confusion with register.el functions.
2021-11-08 01:40:58 +01:00
Stefan Kangas
cdd7589330 Prefer ert-with-temp-(directory|file) in most remaining tests
* test/lisp/auth-source-tests.el (auth-source-test-searches):
* test/lisp/autorevert-tests.el (auto-revert-test00-auto-revert-mode)
(auto-revert-test01-auto-revert-several-files)
(auto-revert-test02-auto-revert-deleted-file)
(auto-revert-test03-auto-revert-tail-mode)
(auto-revert-test04-auto-revert-mode-dired)
(auto-revert-test05-global-notify)
(auto-revert-test06-write-file)
(auto-revert-test07-auto-revert-several-buffers):
* test/lisp/calendar/icalendar-tests.el (icalendar-tests--do-test-cycle):
* test/lisp/custom-tests.el (custom-theme--load-path):
* test/lisp/dired-aux-tests.el (dired-test-bug27496)
(with-dired-bug28834-test):
* test/lisp/emacs-lisp/bytecomp-tests.el (test-byte-comp-compile-and-load)
(bytecomp-tests--dest-mountpoint)
(bytecomp-tests--target-file-no-directory):
* test/lisp/emacs-lisp/gv-tests.el (gv-tests--in-temp-dir):
* test/lisp/eshell/eshell-tests.el (with-temp-eshell)
(eshell-test-command-result):
* test/lisp/info-xref-tests.el (info-xref-test-makeinfo):
* test/lisp/vc/vc-tests.el (vc-test--create-repo)
(vc-test--register, vc-test--state, vc-test--working-revision)
(vc-test--checkout-model, vc-test--rename-file)
(vc-test--version-diff):
* test/src/buffer-tests.el (test-kill-buffer-auto-save-delete):
* test/src/comp-tests.el (comp-tests-bootstrap):
* test/src/process-tests.el (process-test-quoted-batfile): Prefer
'ert-with-temp-(directory|file)' to using 'make-temp-file' directly.
2021-11-08 01:33:16 +01:00
Po Lu
6fa5f0cbbc Set clipping when dumping stretch glyphs in some cases
* src/nsterm.m (ns_draw_glyph_string): Always focus even when dumping
stretch glyphs in s->next (bug#51653).
2021-11-08 01:16:29 +01:00
Lars Ingebrigtsen
3dae236eb2 Fix charset issues in text/html yanking
* lisp/yank-media.el (yank-media--get-selection): Use
gui-backend-get-selection instead of the higher-level function
which guesses wrong on the charset on many types.
(yank-media): Fix the case where there's only one match.
2021-11-08 01:15:06 +01:00
Stefan Kangas
aca235cb94 ; Fix duplicate temporary file creation
* test/lisp/files-tests.el (files-tests-executable-find): Fix creating
duplicate temporary file after recent change.
2021-11-08 00:47:09 +01:00
Lars Ingebrigtsen
52379a44cb Suppress a compilation warning about vc-switch-backend
* lisp/vc/vc-hooks.el (vc-prefix-map): Suppress a warning about an
obsolete command.
2021-11-08 00:26:32 +01:00
Miha Rihtaršič
4268d9a2b6 Improve undoing of RET in comint and eshell
* lisp/comint.el (comint-send-input):
(comint-accumulate):
* lisp/eshell/esh-mode.el (eshell-send-input): Before sending input to
the process, delete it and reinsert it again.  Undoing this
insertion with 'C-/' will delete the region, moving the process mark
back to its original position (bug#49484).
2021-11-08 00:10:03 +01:00
Lars Ingebrigtsen
5f70682d7b Allow 'C-x n d' to work in texinfo-mode
* lisp/textmodes/texinfo.el (texinfo-mode): Set
beginning/end-of-defun functions to allow narrowing to the current
node.
(texinfo--beginning-of-defun, texinfo--end-of-defun): New functions.
2021-11-07 23:57:04 +01:00
Lars Ingebrigtsen
dde591571a Make paragraph/filling functions in texinfo-mode work better
* lisp/textmodes/texinfo.el (texinfo-mode): Make paragraph
definitions more traditional.  This makes (forward-paragraph 1)
behave better.
(texinfo-mode): Set a new filling function.
(texinfo--fill-paragraph): New filling function.
(texinfo-fillable-commands): New variable (bug#49558).
2021-11-07 23:47:47 +01:00
Lars Ingebrigtsen
67276f3403 Make debugging ert--erts-specifications easier
* lisp/emacs-lisp/ert.el (ert--erts-specifications): Strip text
properties from specs to make debugging easier.
2021-11-07 23:45:14 +01:00
Alan Mackenzie
9e34efb29a Merge from origin/emacs-28
0c51db6bb1 Amend Follow Mode to handle header lines and tab lines cor...
261367781b * lisp/files.el (user-emacs-directory-warning): Clarify do...
8d9b55330d * doc/emacs/frames.texi (Tab Bars): Add text about mouse a...
d9b0b730e8 * doc/emacs/frames.texi (Tab Bars): Describe tab-last.
2021-11-07 20:53:21 +00:00
Alan Mackenzie
78afcea0bb ; Merge from origin/emacs-28
The following commit was skipped:

ffe40045dc ; * etc/PROBLEMS: Minor clarification of a recent entry.
2021-11-07 20:53:21 +00:00
Alan Mackenzie
0c51db6bb1 Amend Follow Mode to handle header lines and tab lines correctly
This fixes bug #51590.

list/follow.el (follow-scroll-down): Incorporate the height of the tab line
into the calculation of the window height.
(follow-calc-win-end): Incorporate the pixel heights of the header line and
the tab line the calculation of the buffer position of the bottom screen line.
2021-11-07 20:44:46 +00:00
Lars Ingebrigtsen
14bbebcf1d Match password prompts from new OpenSSH
* lisp/comint.el (comint-password-prompt-regexp): Add support for
the openssh-8.6p1 "(user@host) Password:" format (bug#51666).
2021-11-07 21:34:41 +01:00
Jim Porter
86fc154317 Fix intermittent electric test failures
* test/lisp/electric-tests.el
(whitespace-chomping-dont-cross-comments): Move
'c-toggle-comment-style' to here.: (bug#51665).
2021-11-07 21:20:15 +01:00
Stefan Kangas
261367781b * lisp/files.el (user-emacs-directory-warning): Clarify docstring. 2021-11-07 19:48:45 +01:00
Juri Linkov
764341919f Simplify c8acc5fd92
* lisp/isearch.el (isearch-filter-visible): Add check if there are
no properties 'inhibit-isearch' in the search range,
instead of code of c8acc5fd92.
2021-11-07 20:13:01 +02:00
Juri Linkov
8d9b55330d * doc/emacs/frames.texi (Tab Bars): Add text about mouse and tab-bar-format
Briefly describe mouse commands on the tab bar and tab-bar-format (bug#51444)
2021-11-07 20:00:56 +02:00
Juri Linkov
d9b0b730e8 * doc/emacs/frames.texi (Tab Bars): Describe tab-last.
'C-9' and 'M-9' already had kindex, so describe them in the text as well
(bug#51444).
2021-11-07 19:56:28 +02:00
Stefan Kangas
ffe40045dc ; * etc/PROBLEMS: Minor clarification of a recent entry.
This was accidentally committed to master instead of emacs-28.

(cherry picked from commit a95520d3df)
2021-11-07 18:43:17 +01:00
Stefan Kangas
a95520d3df ; * etc/PROBLEMS: Minor clarification of a recent entry. 2021-11-07 18:32:28 +01:00
Michael Albinus
54fd811eec Merge from origin/emacs-28
7fdb2ae412 Add some unit tests for 'abbreviate-file-name'
21de5e7b2e Fix compilation MinGW warnings
54b726c815 ; * etc/PROBLEMS: More specific recipe for WebKit-related ...
d85cf33e49 Escape '%' in filenames to fix flymake warnings
6243a43ac2 Fix search string generation in nnimap-make-thread-query
f05b8a939b Update to Org 9.5-68-g77e2ec
2021-11-07 18:06:24 +01:00
Jim Porter
7fdb2ae412 Add some unit tests for 'abbreviate-file-name'
* test/lisp/files-tests.el (files-tests-abbreviate-file-name-homedir)
(files-tests-abbreviate-file-name-directory-abbrev-alist): New tests.
2021-11-07 18:03:23 +01:00
Lars Ingebrigtsen
5012124707 Make `C-x 8 e e' work better in the terminal
* lisp/international/emoji.el (emoji--adjust-displayable-1): Make
something rudimentary work on non-graphical Emacsen for `C-x 8 e e'.
2021-11-07 16:59:22 +01:00
Lars Ingebrigtsen
3886c95d7e Make emoji-describe really describe only the glyph under point
* lisp/international/emoji.el (emoji-describe): Only look at the
compositions under point (bug#51659).
2021-11-07 16:04:22 +01:00
Eli Zaretskii
93ee666c09 Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs 2021-11-07 17:03:33 +02:00
Eli Zaretskii
21de5e7b2e Fix compilation MinGW warnings
* src/w32.h (prepare_standard_handles, reset_standard_handles):
Fix prototypes.  Reported by Andy Moreton
<andrewjmoreton@gmail.com> in
https://lists.gnu.org/archive/html/emacs-devel/2021-11/msg00597.html.
2021-11-07 17:02:46 +02:00
Lars Ingebrigtsen
42fd5f2789 Don't inhibit compilation of emoji.elc
* lisp/international/emoji.el (emoji--generate-file): Further
obfuscate to not inhibit byte compilation.
2021-11-07 15:31:40 +01:00
Eli Zaretskii
4fdbd72025 'yank-media' is not universally supported
* doc/emacs/killing.texi (Clipboard):
* etc/NEWS: Say that 'yank-media' is not universally supported.
2021-11-07 16:31:29 +02:00