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

149612 commits

Author SHA1 Message Date
Jim Porter
2b2a103db0 Add support for "bright" ANSI colors in term-mode
* list/term.el (ansi-term-color-vector): Add new faces.
(term-color-white): Tweak colors.
(term-color-bright-black, term-color-bright-red, term-color-bright-green)
(term-color-bright-yellow, term-color-bright-blue)
(term-color-bright-magenta, term-color-bright-cyan)
(term-color-bright-white): New faces.
(term--maybe-brighten-color): New function.
(term-handle-colors-array): Handle bright colors.
* test/lisp/term-tests.el (term-colors, term-colors-bold-is-bright):
New functions.
2021-08-25 13:57:25 +02:00
Jim Porter
c8e3347ec0 Add support for "bright" ANSI colors in ansi-color
* lisp/ansi-color.el (ansi-bright-color-names-vector): New defcustom.
(ansi-color-bold-is-bright): New defcustom.
(ansi-color--find-face): Sort ANSI codes and check
'ansi-color-bold-is-bright'.
(ansi-color-apply-sequence): Support bright ANSI colors.
(ansi-color--fill-color-map): New function.
(ansi-color-make-color-map): Add bright ANSI colors.
(ansi-color-get-face-1): Add BRIGHT parameter.
* test/lisp/ansi-color-tests.el
(ansi-color-apply-on-region-bold-is-bright-test): New function.
2021-08-25 13:57:07 +02:00
Shitikanth Kashyap
f09ee98e68 tabulated-list-print delete excess lines
* lisp/emacs-lisp/tabulated-list.el (tabulated-list-print): Ensure
that we delete remaining lines if the list has gotten shorter
(bug#50194).

Copyright-paperwork-exempt: yes
2021-08-25 13:34:45 +02:00
Augusto Stoffel
630a13ac46 Add support for OSC escape codes in comint
* doc/emacs/misc.texi (Shell Mode): Document it.

* lisp/comint.el (comint-osc-handlers, comint-osc--marker): New
variables.
(comint-osc-process-output): New function.
(comint-osc-hyperlink-map): New map.
(comint-osc-hyperlink-handler): New function.
2021-08-25 12:29:22 +02:00
Lars Ingebrigtsen
64b4c85637 Fix up deleting auto-save/killing buffer wrt. `auto-save-visited-mode'
* src/buffer.c (Fkill_buffer): Respect `auto-save-visited-mode'.
2021-08-25 11:58:27 +02:00
Lars Ingebrigtsen
de64510973 Further checks for kill-buffer-delete-auto-save-files
* src/buffer.c (Fkill_buffer): Check that the auto-save file
exists before asking whether to delete it.
2021-08-25 11:49:52 +02:00
Lars Ingebrigtsen
7782ccd6de Fix up previous conf-mode/tex-mode redirection hacks
* lisp/textmodes/conf-mode.el (conf-mode):
* lisp/textmodes/tex-mode.el (tex--redirect-to-submode): The
previous hack to these redirections would disable all local
variables.  Try to work around this a bit more.
2021-08-25 11:41:38 +02:00
Michael Albinus
efaed29f3d Some precisements in Tramp's connection type handling
* doc/misc/tramp.texi (Remote processes): Precise connection type
handling.

* lisp/net/tramp-adb.el (tramp-adb-handle-make-process):
* lisp/net/tramp-sh.el (tramp-sh-handle-make-process):
* lisp/net/tramp.el (tramp-handle-make-process):
Fix :connection-type handling.
(tramp-action-show-and-confirm-message): Pacify byte compiler.

* lisp/net/tramp-compat.el (tramp-compat-ignore-error): New defmacro.

* test/lisp/net/tramp-tests.el (tramp-test29-start-file-process)
(tramp-test30-make-process): Extend tests.
2021-08-24 21:42:42 +02:00
Ergus
b8704b52fd * lisp/mouse.el (context-menu-mode-map): Bind [menu] to context-menu-open.
https://lists.gnu.org/archive/html/emacs-devel/2021-08/msg01004.html
2021-08-24 21:08:54 +03:00
Juri Linkov
9e0d507c37 * lisp/mouse.el (context-menu-buffers): New function (bug#50067).
(context-menu-functions): Add context-menu-buffers to the choice list.
2021-08-24 20:23:02 +03:00
Paul Eggert
2c8657f4f6 Doc that dired-do-chmod no longer follows symlinks
* doc/emacs/dired.texi (Operating on Files):
* etc/NEWS: Document this security precaution.
2021-08-24 10:16:20 -07:00
Mattias Engdegård
8620512361 ; * lisp/repeat.el (repeat-echo-message): Use string-search. 2021-08-24 15:57:38 +02:00
Gabriel do Nascimento Ribeiro
0c640b82f0 Fix to clear echo-area after repeat-exit-timeout.
* lisp/repeat.el (repeat-echo-message): Use 'string-match-p'
to handle cases where echo-area contains other messages (bug#50176).
2021-08-24 09:44:05 +03:00
Stephen Gildea
ca3e4b3072 ; * lisp/time-stamp.el: Improve doc strings.
Thanks to VEB for her help with the clarity of the documentation.
2021-08-23 20:05:08 -07:00
Stephen Gildea
120b2bb67b ; migrate MH-E to mail-parse library
Move MH-E from low-level libraries to the high-level mail-parse library.

* lisp/mh-e/mh-comp.el: replace ietf-drums-parse-address with
mail-header-parse-address.
* lisp/mh-e/mh-junk.el: replace ietf-drums-parse-address with
mail-header-parse-address; remove mh-funcall-if-exists wrapper.
* lisp/mh-e/mh-xface.el: replace ietf-drums-parse-address with
mail-header-parse-address; remove fboundp wrapper.
* lisp/mh-e/mh-mime.el: replace rfc2047-decode-region with
mail-decode-encoded-word-region.
2021-08-23 19:59:39 -07:00
Eli Zaretskii
a849b56410 Document 'jit-lock-bounds'
* doc/lispref/modes.texi (Other Font Lock Variables):
* lisp/jit-lock.el (jit-lock-functions, jit-lock-register):
Document the return value of the fontification functions.
2021-08-23 23:14:00 +03:00
Eli Zaretskii
8f43180f0d Improve documentation of 'inhibit-mouse-event-check'
* etc/NEWS:
* src/callint.c (syms_of_callint): Fix wording of the
documentation of 'inhibit-mouse-event-check'.
2021-08-23 22:14:03 +03:00
Mattias Engdegård
4281e5b34d Add example of advanced user-defined Rx form to manual
* doc/lispref/searching.texi (Extending Rx): Add example illustrating
how to define a user-defined Rx form that performs computation,
from a discussion with Michael Herdeegen (bug#50136).
* lisp/emacs-lisp/rx.el (rx): Clarify evaluation time for `eval`.
2021-08-23 19:57:17 +02:00
Juri Linkov
976594d905 * lisp/mouse.el (context-menu-open): New command bound to [S-f10].
* doc/emacs/frames.texi (Menu Mouse Clicks): Mention S-F10
to pop up the context menu.

* src/callint.c (Fcall_interactively):
Use inhibit_mouse_event_check for the case 'e'.
(inhibit-mouse-event-check): New variable.

https://lists.gnu.org/archive/html/emacs-devel/2021-08/msg00733.html
2021-08-23 20:42:16 +03:00
Glenn Morris
c1c2266a1c Fix recently added cperl test
* test/lisp/progmodes/cperl-mode-tests.el
(cperl-test-here-doc-missing-end): Fix quote regexp.
2021-08-23 10:36:57 -07:00
Eli Zaretskii
00edc8329a ; * doc/emacs/files.texi (Auto Save Files): Fix a typo. 2021-08-23 19:19:13 +03:00
Eli Zaretskii
efddcc9fbe Improve recently-changed docs
* src/frame.c (Fnext_frame):
* doc/lispref/frames.texi (Finding All Frames): Improve wording
and style of the 'next-frame's documentation.
2021-08-23 19:11:49 +03:00
Eli Zaretskii
9936e1478f Fix doc strings in recent changes.
* lisp/progmodes/cperl-mode.el (cperl-commentify)
(cperl-here-doc-functions, cperl-is-here-doc-p)
(cperl-find-pods-heres): Fix wording, style, and punctuation of
doc strings.
2021-08-23 19:01:09 +03:00
Harald Jörg
975939df21 ; cperl-mode: bugfix / rework fontification of here-docs
* lisp/progmodes/cperl-mode.el (cperl-mode): Use
`cperl-font-lock-syntactic-face-function'.
(cperl-commentify): Add a docstring, eliminate unused formal
parameter `noface'.
(cperl-is-here-doc-p): New function to detect whether "<<" starts
a here-document, factored out from `cperl-find-pods-heres'.
(cperl-here-doc-functions): New variable: List of functions which
allow here-documents as parameters, for use in
`cperl-is-here-doc-p'.
(cperl-process-here-doc): New function, factored out from
`cperl-find-pods-heres'.  Fixed to keep correct fontification
after non-interactive (elisp) changes (Bug#14343, Bug#28962).
(cperl-find-pods-heres): Extend the doc-string to describe all
parameters.  Don't remove text properties in recursive calls on
the same line.  Call `cperl-process-here-doc' when appropriate.
(cperl-font-lock-syntactic-face-function): New function to
highlight c-style comments as here-documents (adapted from
perl-mode.el).

* test/lisp/progmodes/cperl-mode-tests.el
(cperl-test-identify-heredoc): New test for the new function
`cperl-is-here-doc-p'.
(cperl-test-identify-no-heredoc): New test for the new function
`cperl-is-here-doc-p', testing constructs which start with "<<"
but are no here-documents.
(cperl-test-here-doc-missing-end): New test to verify correct
detection of a missing here-document delimiter.
(cperl-test-bug-14343): New test to verify that inserting text
into a here-document with elisp does not break fontification.
2021-08-23 16:40:45 +02:00
Lars Ingebrigtsen
4167d4b4b2 Clarify the documentation of `next-frame'
* doc/lispref/frames.texi (Finding All Frames): Clarify what it
means to "consider".
* src/frame.c (Fnext_frame): Rewrite doc string to say what the
parameters actually mean (bug#13339).
2021-08-23 16:32:33 +02:00
Lars Ingebrigtsen
591b8bd87a Add new variable 'kill-buffer/delete-auto-save-files'
* doc/emacs/files.texi (Auto Save Files): Document it.
* lisp/cus-start.el (standard): Add customize form.

* lisp/files.el (delete-auto-save-files): Move definition to C
(since it's used in the C layer).

* src/buffer.c (Fkill_buffer): Use the new variable (and remove
the old code that apparently didn't trigger for
kill-buffer/delete-auto-save-files.
(syms_of_buffer): Add new variable
kill-buffer-delete-auto-save-files and move definition of
delete-auto-save-files here (bug#21612).
2021-08-23 15:56:54 +02:00
Michael Albinus
f00af4be3d Complete implementation of `copy-directory-create-symlink' in Tramp
* lisp/net/tramp-sh.el (tramp-sh-handle-copy-directory): Fix the case
NEWNAME is a directory name with a trailing slash.

* lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory):
Implement `copy-directory-create-symlink'.  (Bug#10897)

* test/lisp/net/tramp-tests.el
(tramp--test-ignore-make-symbolic-link-error): Move up.
(tramp-test15-copy-directory): Extend test.
2021-08-23 15:47:19 +02:00
Eli Zaretskii
6430c8419c ; * doc/lispref/variables.texi (Local Variables): Fix indexing. 2021-08-23 14:50:24 +03:00
Eli Zaretskii
d8e1cca6e5 ; * etc/NEWS: Fix wording of a recent change. 2021-08-23 14:43:35 +03:00
Juri Linkov
dcf84bce25 * lisp/mouse.el (context-menu-toolbar): New function.
(context-menu-functions): Add context-menu-toolbar to choice.
(context-menu-region): Bind "Paste" to mouse-yank-at-click
instead of mouse-yank-primary.
https://lists.gnu.org/archive/html/emacs-devel/2021-08/msg00735.html
2021-08-23 10:33:36 +03:00
Lars Ingebrigtsen
8c62871829 Clarify :stderr in the make-process doc string
* src/process.c (Fmake_process): Elaborate upon what :stderr does
(bug#50166).
2021-08-23 03:53:41 +02:00
Lars Ingebrigtsen
fb65b14b32 Update NEWS tagging for modules and parse-time-string 2021-08-23 02:25:49 +02:00
Lars Ingebrigtsen
cc2c150636 Document `dlet'
* doc/lispref/variables.texi (Local Variables): Document `dlet'.
2021-08-23 02:13:40 +02:00
Lars Ingebrigtsen
4015fb6e69 Improve byte-compile-warnings doc string
* lisp/emacs-lisp/bytecomp.el (byte-compile-warnings): Mention
'byte-compile-docstring-max-column'.
2021-08-23 02:04:55 +02:00
Lars Ingebrigtsen
5d32630f79 Do command mode markup in xwidget.el 2021-08-23 01:52:16 +02:00
Lars Ingebrigtsen
98e1752f9d Make xwidget-webkit-enable-plugins a defcustom
* lisp/xwidget.el (xwidget-webkit-enable-plugins): Make into
defcustom.
2021-08-23 01:45:10 +02:00
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