1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-20 19:42:53 -08:00
Commit graph

157278 commits

Author SHA1 Message Date
Juri Linkov
175bc8e5a5 * lisp/replace.el (read-regexp): Use minibuffer-message in the minibuffer. 2022-06-14 19:35:02 +03:00
Robert Pluim
d8f9cf7772 Add more characters with macron in C-x 8 map and latin input methods
* lisp/international/iso-transl.el (iso-transl-char-map): Add
sequences for {AE,ae,G,g} with macron.
* lisp/leim/quail/latin-post.el ("latin-postfix"): Add missing entries
for {AE,ae,G,g} with macron.
* lisp/leim/quail/latin-pre.el ("latin-prefix"): Add entries for
'letter with macron' for {A,a,E,e,AE,ae,I,I,O,o,U,u,Y,y} with macron.

(Bug#55668)
2022-06-14 16:31:10 +02:00
Stephen Berman
b090dbdae8 Fix errors when aligning text in find-dired
* lisp/find-dired.el (find-dired-filter): Don't error out while
trying to align the text (by just removing that code) (bug#46218).
2022-06-14 15:37:53 +02:00
Lars Ingebrigtsen
9225599ca7 Make flymake-proc--delete-temp-directory slightly safer
* lisp/progmodes/flymake-proc.el
(flymake-proc--delete-temp-directory): Temp dir name may be
abbreviatated, so expand it first (bug#46203).
2022-06-14 15:24:19 +02:00
Lars Ingebrigtsen
03124c4201 Fix .dir-local.el caching for symlinks
* lisp/files.el (dir-locals-read-from-dir): We want the time stamp
of the actual file, not the time stamp of the symlink (if
.dir-locals.el is a symlink) (bug#46122).
2022-06-14 15:01:44 +02:00
Lars Ingebrigtsen
a02bb84c80 Leave the contents on the *Backtrace* buffer on `q'
* lisp/emacs-lisp/debug.el (debug): Don't clear the contents of
the buffer on `q' (bug#55863).
2022-06-14 14:38:05 +02:00
Lars Ingebrigtsen
bea90d8de2 Fix gud parsing of empty jdb classpaths
* lisp/progmodes/gud.el (gud-jdb-marker-filter): Parse empty
classpaths (like classpath: []) correctly (bug#55957).
2022-06-14 14:26:58 +02:00
Daniel Martín
3e74cf6516 Bind Cmd-t to menu-set-font on macOS
* lisp/term/ns-win.el (global-map): set-frame-font asks for a font
using the minibuffer, but the former ns-popup-font-panel always showed
the graphical font panel on macOS.  To preserve the same behavior,
bind it to menu-set-font, which is also called by Options, Set Default
Font (bug#55967).
2022-06-14 14:23:06 +02:00
Lars Ingebrigtsen
441f081a64 Allow using alists in ido completion and hitting TAB
* lisp/ido.el (ido-completion-help): Allow using an alist
COMPLETIONS (bug#46091).
2022-06-14 14:16:55 +02:00
Lars Ingebrigtsen
706ef0ae93 Mention how to only get syntactic font locking in the manual
* doc/lispref/modes.texi (Syntactic Font Lock): Note how to only
get syntactic font locking (bug#46039).
2022-06-14 13:53:20 +02:00
Po Lu
8fa1cdc1fa ; Improve doc of `x-dnd-native-test-function'
* src/xterm.c (syms_of_xterm): Improve doc.  Suggested by Eli
Zaretskii <eliz@gnu.org>.
2022-06-14 19:50:31 +08:00
Michael Albinus
fda5cccba8 Fix Tramp problem with non-essential
* lisp/net/tramp.el (tramp-run-real-handler):
Handle also functions which use a `tramp-file-name' for the file
name handler.  (Bug#55832)
(tramp-get-home-directory, tramp-get-remote-uid)
(tramp-get-remote-gid): VEC can also be nil.
2022-06-14 13:04:34 +02:00
Mattias Engdegård
9fb80aee17 ; * lisp/emacs-lisp/cconv.el: Fix outdated comments. 2022-06-14 12:14:47 +02:00
Po Lu
18a1c7de2e Fix mishandling of dnd-scroll-margin with scroll bar motion
* lisp/dnd.el (dnd-handle-movement): Ignore posns inside scroll
bars for now.
2022-06-14 17:43:36 +08:00
Juri Linkov
99cb3a7154 * lisp/minibuffer.el (minibuffer-complete-history): New command.
(minibuffer-complete-defaults): New command.
https://lists.gnu.org/archive/html/emacs-devel/2022-06/msg00498.html
2022-06-14 10:14:52 +03:00
Juri Linkov
e494222814 * lisp/simple.el (completion-auto-wrap): Rename from completion-wrap-movement.
(next-completion): Use completion-auto-wrap.
https://lists.gnu.org/archive/html/emacs-devel/2022-06/msg00139.html
2022-06-14 10:04:56 +03:00
Po Lu
42203acd60 Fix out of date parts in NS doc and keyboard bindings
* doc/emacs/macos.texi (Mac / GNUstep Events): Remove
`ns-drag-n-drop' which doesn't exist anymore.  Add events to
concept index and document `ns-show-prefs'.  (bug#55940)
* lisp/term/ns-win.el (global-map): Remove ns-popup-font-panel.
2022-06-14 14:06:59 +08:00
Po Lu
82ce218394 Handle coordinates of Motif drop start messages
* src/xterm.c (xm_read_drop_start_message): New function.
(xm_read_drag_motion_message): Check that the originator is
correct.
(x_coords_from_dnd_message): Read drop start messages as well.
2022-06-14 13:52:45 +08:00
Stefan Kangas
6fd33fbf6a Merge from origin/emacs-28
73400e4002 Clarify what a Calc registeri in in calc-insert-register
2022-06-14 06:30:43 +02:00
Po Lu
f5fb969cab Handle coordinate extraction for more event types
* src/xterm.c (xm_read_drag_motion_message): New function.
(x_coords_from_dnd_message): Handle XM_DRAG_REASON_DRAG_MOTION.
2022-06-14 10:12:48 +08:00
Po Lu
907f3a4f8d Use coordinates provided by DND messages if available
This avoids an extra sync, which matters when dropping onto
Emacs running over a slow connection.

* src/xselect.c (x_handle_dnd_message): New args
`root_window_coords', `root_x' and `root_y'.
* src/xterm.c (x_coords_from_dnd_message): New function.
(handle_one_xevent): Pass root window coordinates to
x_handle_dnd_message.
* src/xterm.h: Update prototypes.
2022-06-14 09:41:59 +08:00
Dmitry Gutov
915b34d280 project--git-submodules: Parse more strictly
* lisp/progmodes/project.el (project--git-submodules):
Don't mistake 'load-path' for 'path' (bug#55396).
2022-06-14 04:00:22 +03:00
Paul Eggert
5678829a62 Default decoded-time dst slot to -1
* lisp/simple.el (decoded-time): Default dst slot to -1.
Improve related doc strings.
2022-06-13 14:27:28 -07:00
Paul Eggert
24b2cc177a Pacify GCC 12.1.1 -Wanalyzer-use-of-uninitialized-value
* src/xfont.c (xfont_list_pattern): Initialize a local.
Although I’m not sure this is needed, it doesn’t change
behavior (except possibly to make undefined behavior defined).
2022-06-13 13:39:48 -07:00
Paul Eggert
de6601e62e Pacify GCC 12.1.1 in default developer build
* src/pdumper.c (pdumper_load): Use explicit memset to work around
GCC bug <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105961>.
2022-06-13 13:39:48 -07:00
Juri Linkov
7fdb53ddaf * lisp/progmodes/grep.el (grep-read-files): Combine files with aliases.
Use completion-table-merge to combine completions of files from
read-file-name-internal with a list of defaults from grep-files-aliases
(bug#55800).
2022-06-13 20:19:32 +03:00
Lars Ingebrigtsen
abe75e5520 Mention \`M-x ...' in the lispref manual
* doc/lispref/help.texi (Keys in Documentation): Note \`M-x ...'
syntax.
2022-06-13 17:30:36 +02:00
Lars Ingebrigtsen
73400e4002 Clarify what a Calc registeri in in calc-insert-register
* lisp/calc/calc-yank.el (calc-insert-register): Note that these
aren't normal registers (bug#55943).
2022-06-13 17:14:17 +02:00
Lars Ingebrigtsen
f188b0185e Allow saying \\=`M-x ...' in a doc string
* lisp/help.el (substitute-command-keys): Allow saying \\=`M-x
foo' in doc strings (and have it be fontified as a key binding).
2022-06-13 17:02:55 +02:00
Lars Ingebrigtsen
5faa0bfdda Massage In-Reply-To data in message-mail
* lisp/gnus/message.el (message-mail): Fix up Message-IDs from
Firefox (bug#55926).
2022-06-13 16:46:14 +02:00
Lassi Kortela
5f5617727d Match complete words in dns-mode
* lisp/textmodes/dns-mode.el (dns-mode-font-lock-keywords): Match
complete words like SOA and not all words that contain the string
SOA (bug#55944).

Copyright-paperwork-exempt: yes
2022-06-13 16:32:45 +02:00
Lars Ingebrigtsen
57cd069f73 Allow `query-replace' to do exact replacement of the current item
* doc/emacs/search.texi (Query Replace): Document it.

* lisp/replace.el (query-replace-help): Amend help text.
(query-replace-map): Bind `E' to the exact case replacement.
(perform-replace): Allow editing a replacement with exact case
(bug#8504).
2022-06-13 16:17:40 +02:00
Lars Ingebrigtsen
288ffb25ed Add to mode cedilla characters to iso-transl-char-map
* lisp/international/iso-transl.el (iso-transl-char-map): Add some
more cedilla characters.
2022-06-13 15:57:35 +02:00
समीर सिंह Sameer Singh
5381a1e6dd Add support for the Meetei Mayek script
* lisp/language/indian.el ("Meetei Mayek"): New language environment.
Add composition rules for Meetei Mayek. Add sample text and input method.
* lisp/international/fontset.el (script-representative-chars)
(setup-default-fontset): Support Meetei Mayek.
* lisp/leim/quail/indian.el ("meetei-mayek"): New input method.

* etc/HELLO: Add a Meetei Mayek greeting.
* etc/NEWS: Announce the new language environment.
2022-06-13 16:55:20 +03:00
Lars Ingebrigtsen
27600ad673 Make the ediff control panel mode line prettier
* lisp/vc/ediff-wind.el (ediff-refresh-mode-lines): Don't include
"Quick Help" in the mode line in the plain version (bug#12840).
(ediff-make-wide-control-buffer-id): Make the informative part of
the mode line bold.  (Code from Michael Heerdegen.)
2022-06-13 15:50:53 +02:00
Eli Zaretskii
18f5984c65 ; * etc/NEWS: Fix wording. 2022-06-13 16:46:45 +03:00
Eli Zaretskii
df081b9f9c ; * doc/lispref/minibuf.texi (Text from Minibuffer): Fix indexing. 2022-06-13 16:45:05 +03:00
Lars Ingebrigtsen
e418e91091 Allow rgrep users to indicate case folding easier
* lisp/progmodes/grep.el (rgrep): Allow the user to toggle case
sensitivity interactively (bug#16913).
2022-06-13 15:33:12 +02:00
Lars Ingebrigtsen
027fecb24b Add a M-c' command to read-regexp'
* doc/lispref/minibuf.texi (Text from Minibuffer): Document it.

* lisp/replace.el (read-regexp): Add a `M-c' command to indicate
case folding (bug#16913).
2022-06-13 15:33:12 +02:00
Richard Hansen
86325f960a bindat (strz): Error on null byte if packing variable-length string
* lisp/emacs-lisp/bindat.el (strz): Signal an error if a null byte is
encountered while packing a string to a variable-length strz field.
* test/lisp/emacs-lisp/bindat-tests.el (strz): Add tests (bug#55938).
2022-06-13 15:33:12 +02:00
Stefan Monnier
86f30c972b * files.el (auto-mode-alist): Add entry to .eld files 2022-06-13 08:58:09 -04:00
Lars Ingebrigtsen
0fdd37c7fb Make `/ a' in *Package* filter by name
* lisp/emacs-lisp/package.el (package-menu-filter-by-archive):
Filter by package name instead of by regexp, so that if the user
types "gnu", they won't get "nongnu", too (bug#55919).
2022-06-13 14:20:22 +02:00
Visuwesh
f8ac290945 * lisp/find-dired.el (find-dired): Make directory clickable.
* lisp/find-dired.el (find-dired): Make the directory line
clickable (bug#55906).
2022-06-13 12:29:17 +02:00
Po Lu
a1a435b3f6 Respect test function when performing local drag-and-drop
* lisp/x-dnd.el (x-dnd-test-function): Fix doc string to
describe what is actually accepted.
(x-dnd-known-types, x-dnd-targets-list): Fix coding style.
(x-dnd-handle-native-drop): New function.

* src/xselect.c (x_atom_to_symbol): Export.

* src/xterm.c (x_dnd_note_self_drop): Call new variable to
determine what action to return.
(x_clear_dnd_action): New function.
(x_dnd_begin_drag_and_drop): Respect new variable.
(syms_of_xterm): New defvar `x-dnd-native-test-function'.
* src/xterm.h: Update prototypes.
2022-06-13 15:02:41 +08:00
Stefan Kangas
7cd1f432c6 Merge from origin/emacs-28
d6f080d3de ; * doc/man/etags.1: Bump man page date.
2022-06-13 06:55:57 +02:00
Po Lu
16df1f4fae Improve DND tooltip updating
* src/xterm.c (x_dnd_update_tooltip_now): Add missing part of
last change.
(x_monitors_changed_cb, handle_one_xevent): Only update if a
change in monitor configuration really happened.
2022-06-13 12:49:12 +08:00
Po Lu
1ce0d8d9ef Keep tooltip position in sync with monitor changes
* src/xterm.c (x_dnd_update_tooltip_now): New function.
(x_monitors_changed_cb):
(handle_one_xevent): Call that function on monitor change.
2022-06-13 09:42:12 +08:00
Po Lu
79f50e913d Fix special DND event coordinates
* src/xterm.c (x_dnd_note_self_drop): Set DND action to
XdndActionPrivate.
(x_dnd_begin_drag_and_drop): Don't return XdndPrivate specially
here.
(handle_one_xevent): Fix order of arguments to
x_dnd_note_self_drop.
2022-06-13 09:11:08 +08:00
Juri Linkov
72e0ef74d0 * lisp/icomplete.el: Consider a list in minibuffer-default (bug#55800)
* lisp/icomplete.el (icomplete--sorted-completions): Handle a string value
in the first element of the list of default values in minibuffer-default.
2022-06-12 21:24:01 +03:00
Eli Zaretskii
2745fc70cf ; * lisp/isearch.el (isearch-search-fun-in-text-property): Doc fix. 2022-06-12 20:43:24 +03:00