1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-28 07:50:48 -08:00
Commit graph

149576 commits

Author SHA1 Message Date
Basil L. Contovounesios
ff2124d297 Fix recent parse-partial-sexp argument validation
* src/syntax.c (parse-partial-sexp): Also handle markers as
arguments (bug#49944).  Tweak error message to follow conventions in
"(elisp) Signaling Errors".
2021-08-22 23:52:23 +01:00
Andrea Corallo
6c007668b3 Set a unique ID for eln files on macOS (bug#45934)
* src/comp.c (Fcomp__compile_ctxt_to_file): Set gcc's -install_name
parameter to the real filename.
2021-08-22 22:15:29 +01:00
Masahiro Nakamura
48d4969453 Set label for NSToolbarItem (bug#50159)
* src/nsmenu.m (update_frame_tool_bar): Get label text and pass it to ...
([EmacsToolbar addDisplayItemWithImage:idx:tag:labelText:helpText:enabled:]):
... this that sets label for NSToolbarItem.
* src/nsterm.h
([EmacsToolbar addDisplayItemWithImage:idx:tag:labelText:helpText:enabled:]):
Add labelText argument.
2021-08-22 20:58:26 +01:00
Michael Albinus
f405756811 Implement `copy-directory-create-symlink' for remote files
* lisp/net/tramp-sh.el (tramp-sh-handle-copy-directory):
Implement `copy-directory-create-symlink'.  (Bug#10897)

* test/lisp/net/tramp-tests.el (tramp-test15-copy-directory):
Extend test.
2021-08-22 20:44:54 +02:00
João Távora
1afe59f7f8 Double check completions-group customization variable in Icomplete
bug#48545

* lisp/icomplete.el (icomplete--augment): Double check completions-group.
2021-08-22 16:36:26 +01:00
João Távora
ba852512f2 Don't mess up grouping in completion-all-sorted-completions
The default sorting order will mess up the naturally grouped order of
the candidates in the table that specified the group-function.

As seen in xref.el when

   (setq xref-show-definitions-function
         'xref-show-definitions-completing-read)
   (setq completions-group t)
   M-x fido-mode

Also partially seen with C-x 8 RET (M-x insert-char) with

   (setq read-char-by-name-sort 'code)

bug#48545

* lisp/minibuffer.el (completion-all-sorted-completions): Don't
use default sort if there's a group-function in the table.
2021-08-22 16:11:40 +01:00
Lars Ingebrigtsen
06c3a321e3 Revert "Fix dired switch (that contain quotes and spaces) parsing"
This reverts commit 04f723dec9.

The dired switches are documented to not follow shell syntax, but instead
uses a lisp-in-string-form kind of quoting.
2021-08-22 16:58:19 +02:00
Colin Woodbury
16bb524a5e Don't echo empty string in file-name-with-extension
* lisp/files.el (file-name-with-extension): Avoid echoing a filename
string known to be empty (bug#50149).
2021-08-22 16:27:12 +02:00
Omar Polo
5b55659bae Avoid using %n in emacsclient
* lib-src/emacsclient.c (local_sockname): Avoid using %n (bug#50155).
2021-08-22 16:23:54 +02:00
Michael Albinus
e8e78809ba Some adaptions for Tramp's security key detection.
* lisp/net/tramp.el (tramp-security-key-timeout-regexp): New defcustom.
(tramp-action-show-and-confirm-message): Don't use timeout, check
for the timeout message of the ssh command.
2021-08-22 14:50:19 +02:00
Mattias Engdegård
7f5f99f2a0 Make Qhide declaration non-target-specific
* src/xfns.c (syms_of_xfns): Move DEFSYM from here...
* src/menu.c (syms_of_menu): ... to here.
This fixes the NS build after dd7d966eb4.
2021-08-22 10:59:17 +02:00
Ergus
6984eea510 * lisp/mouse.el (context-menu-mode-map): New variable.
(context-menu--saved-bindings, context-menu--bind-mouse)
(context-menu--restore-bindings): Remove.
(context-menu-mode): Don't use removed functions.
2021-08-22 11:56:01 +03:00
Juri Linkov
dd7d966eb4 Don't show menu titles with the text property 'hide' (bug#50067)
* lisp/mouse.el (context-menu-map): Add menu title "Context Menu"
propertized with the text property 'hide'.

* src/menu.c (x_popup_menu_1): Don't show the title with the non-nil
text property 'hide' on GTK and NS.
2021-08-22 11:46:08 +03:00
Eli Zaretskii
654e096b09 ; * lisp/emacs-lisp/comp.el (native-comp-async-cu-done-functions): Doc fix. 2021-08-22 11:42:05 +03:00
Eli Zaretskii
316cc9152f Improve documentation of 'set-keyboard-coding-system'
* doc/lispref/nonascii.texi (Terminal I/O Encoding):
* doc/emacs/mule.texi (Terminal Coding):
* lisp/international/mule.el (set-keyboard-coding-system):
Document that 'set-keyboard-coding-system' has no effect on modern
MS-Windows systems.  (Bug#15289)
2021-08-22 11:32:26 +03:00
Glenn Morris
8fe536f90d * test/lisp/international/ucs-normalize-tests.el: Save 30m on hydra. 2021-08-21 18:28:38 -07:00
Stephen Gildea
aa27c42cf9 mh-x-image-url-sane-p: accept "https" URLs
* lisp/mh-e/mh-xface.el (mh-x-image-url-sane-p): Accept https URLs.
* test/lisp/mh-e/mh-xface.el: New file, to test mh-x-image-url-sane-p.
2021-08-21 17:25:46 -07:00
Stephen Gildea
5f1ee1f8e6 ; MH-E doc: SourceForge repo is no longer current
* doc/misc/mh-e.texi, lisp/mh-e/mh-e.el: Update references to
SourceForge with current URLs and a note that MH-E development
no longer occurs in that repository.
2021-08-21 14:37:54 -07:00
Glenn Morris
bf61ddec3a * test/Makefile.in: Turn off hydra verbose logging for electric-tests. 2021-08-21 12:17:39 -07:00
Glenn Morris
4f1184271d * test/lisp/net/tramp-tests.el: Reduce hydra run time by 1 hour.
It's just too slow to run these after every commit.
2021-08-21 11:46:40 -07:00
Mattias Engdegård
c28d4c995e ; Load xref when needed (not all functions are autoloaded) 2021-08-21 20:27:28 +02:00
Glenn Morris
9715feaed4 * test/lisp/electric-tests.el: Un-skip c-mode tests on hydra. 2021-08-21 09:41:16 -07:00
Lars Ingebrigtsen
efe30626e6 Fix failures in recent files tests
* test/lisp/files-tests.el (files-tests-buffer-offer-save)
(files-tests-save-buffers-kill-emacs--asks-to-save-buffers):
`read-event' is called with arguments.
2021-08-21 17:45:24 +02:00
Lars Ingebrigtsen
a0023661a4 Clarify cl-defstruct doc string and manual entry somewhat
* doc/misc/cl.texi (Structures): Rename the slot "name" in the
examples to "first-name", since we're talking about the names of
slots a lot here, and having a slot with the name "name" makes the
examples somewhat confusing.
* lisp/emacs-lisp/cl-macs.el (cl-defstruct): Clarify certain
things about slots (bug#14278).
2021-08-21 16:50:20 +02:00
Eli Zaretskii
69637fe7a6 ; * lisp/dired.el (dired-jump): Doc fix. 2021-08-21 17:38:27 +03:00
Lars Ingebrigtsen
690d1bcc61 Fix perldb doc string
* lisp/progmodes/gud.el (perldb): Fix doc string (bug#14588).
2021-08-21 16:28:51 +02:00
Lars Ingebrigtsen
7ee5d36008 Clarify dired-jump doc string
* lisp/dired.el (dired-jump): Make the doc string say what happens
in buffers not visiting files (bug#14733).
2021-08-21 16:20:59 +02:00
Eli Zaretskii
28019ccf0c ; Fix Texinfo markup of a recent change
* doc/lispintro/emacs-lisp-intro.texi (count-words-in-defun): Fix
last change.
2021-08-21 17:15:43 +03:00
Eli Zaretskii
964151570b ; * src/syntax.c: Remove a stray comment. 2021-08-21 17:13:46 +03:00
Lars Ingebrigtsen
5da7103443 Tweak the comment-start-skip example in the manual
* doc/emacs/programs.texi (Options for Comments): Tweak the
example regexp for comment-start-skip (bug#15006).
2021-08-21 16:08:36 +02:00
Lars Ingebrigtsen
a6240c8233 Clarify how to do the `count-words-in-defun' recipe
* doc/lispintro/emacs-lisp-intro.texi (count-words-in-defun):
Clarify the recipe (bug#15069).
2021-08-21 16:08:36 +02:00
Eli Zaretskii
fda6e6e26f ; * etc/NEWS: Fix last change. 2021-08-21 16:38:24 +03:00
Lars Ingebrigtsen
cabd22f5c6 Make parse-partial-sexp signal an error if TO is smaller than FROM
* src/syntax.c (Fparse_partial_sexp): Signal an error if TO is
smaller than FROM (bug#49944).
2021-08-21 15:24:15 +02:00
Lars Ingebrigtsen
3de577ad00 Mention problems with synthetic fonts on macOS
* etc/PROBLEMS: Mention synthetic fonts (bug#18818).
2021-08-21 15:03:27 +02:00
Alan Third
2837e25caf Fix display bug on macOS (bug#50112)
* src/nsterm.m ([EmacsLayer initWithColorSpace:]): Use the colorspace
setter.
([EmacsLayer setColorSpace:]): Sometimes we seem to get null
colorspaces, so set a default in this case.
([EmacsLayer getContext]): Check whether there's been a surface or
graphics context allocation failure and log it.
2021-08-21 13:12:56 +01:00
Alan Third
5eab7c3f70 * configure.ac: Make homebrew check for libgccjit match macports. 2021-08-21 13:12:56 +01:00
Mattias Engdegård
f4159568a1 Remove default "Select" title from NS popup menus (bug#50067)
* src/menu.c (x_popup_menu_1): Remove default "Select" title.
* src/nsmenu.m (ns_menu_show): Allow title to be absent.
2021-08-21 12:41:54 +02:00
Mattias Engdegård
d6ad208b2c Use overlay arrow to indicate current *xref* selection
* lisp/progmodes/xref.el (xref--set-arrow): New function.
(xref-show-location-at-point, xref-goto-xref)
(xref--next-error-function): Call it.
(xref--show-common-initialize): Remove arrow.
2021-08-21 12:41:54 +02:00
Mattias Engdegård
6993d45e51 Add "Find References" to context menu (bug#50067)
The new entry appears next to "Find Definition" and like it only
appears when the context menu was invoked on an identifier.

* lisp/progmodes/prog-mode.el (prog-context-menu): New menu entry.
* lisp/progmodes/xref.el (xref-find-references-at-mouse): New
function, analogous to `xref-find-definitions-at-mouse`.
2021-08-21 12:41:54 +02:00
Mattias Engdegård
b4830907ed Indicate progress while searching for references in xref
* lisp/progmodes/xref.el (xref-backend-references): Add messages to
show the user that something is happening instead of silently freezing
during the frequently long synchronous searches for references.
2021-08-21 12:41:54 +02:00
Mattias Engdegård
4d6e770031 Re-type the :location slot in xref-match-item to xref-location
* lisp/progmodes/xref.el (xref-match-item): Change type for
:location from `xref-file-location`, which was likely a mistake,
to `xref-location`. This allows `xref-make-match` to take
arguments of any subtype of `xref-location` (bug#50067).
2021-08-21 12:41:54 +02:00
Mattias Engdegård
49435be616 Add xref operations to context menu unconditionally
* lisp/progmodes/prog-mode.el (prog-context-menu):
Add xref operations to the context menu even if xref hasn't been
loaded yet; the functions involved are autoloaded (bug#50067).
2021-08-21 12:41:53 +02:00
Alan Mackenzie
20e32f3c3f CC Mode: Move a macro to before its first use in a file.
* lisp/progmodes/cc-defs.el (c-benign-error): Move earlier in the file for the
benefit of c-tnt-chng-cleanup.
2021-08-21 09:41:26 +00:00
Basil L. Contovounesios
2dfc2bb9bd ; * etc/TODO: Fix typo. 2021-08-21 10:37:26 +01:00
Eli Zaretskii
72e688eacd Improve documentation of context menus
* doc/lispref/modes.texi (Major Mode Conventions): Add conventions
of setting menu-bar menus and context menus for a major mode.
* doc/emacs/frames.texi (Menu Mouse Clicks): Fix description of
context menu functionality.
2021-08-21 11:49:56 +03:00
Eli Zaretskii
f658b955cc Improve doc string of 'M-.'
* lisp/progmodes/xref.el (xref-find-definitions): Mention 'M-,' in
the doc string.
2021-08-21 11:17:09 +03:00
Eli Zaretskii
9ea9d21d57 ; * lisp/simple.el (execute-extended-command): Fix comment wording. 2021-08-21 11:05:04 +03:00
Eli Zaretskii
2ed73a722f ; * etc/NEWS: State the default behavior when copying symlinks. 2021-08-21 11:01:44 +03:00
Eli Zaretskii
beb54dc1b2 Improve documentation of 'file-preserve-symlinks-on-save'
* lisp/files.el (file-precious-flag): Mention
'file-preserve-symlinks-on-save' in the doc string.

* doc/lispref/files.texi (Saving Buffers): Move the description of
'file-preserve-symlinks-on-save' from here...
* doc/emacs/files.texi (Customize Save): ...to here.  Improve
wording.

* etc/NEWS: Fix wording of 'file-preserve-symlinks-on-save' entry.
2021-08-21 10:58:24 +03:00
Eli Zaretskii
4b03998458 ; * doc/emacs/custom.texi (Minibuffer Maps): Fix wording. 2021-08-21 10:37:23 +03:00