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

148415 commits

Author SHA1 Message Date
Dmitry Gutov
76ba00a161 Add :company-kind support to css-mode completion
* lisp/textmodes/css-mode.el (css--complete-pseudo-element-or-class)
(css--complete-property-value, css-completion-at-point)
(css--complete-at-rule): Add :company-kind properties, to annotate
completions with kinds returned in each case.
2021-05-15 03:28:28 +03:00
Lars Ingebrigtsen
efc24f1e0b Make the M-x obsoletion check more robust
* lisp/simple.el (read-extended-command): Make the obsoletion
check more robust.
2021-05-14 18:50:24 +02:00
Alan Mackenzie
780b1db126 Various detailed fixes to minibuf.c, etc., to fix bug #48337
Also fix some unsafe coding.

* lisp/window.el (push-window-buffer-onto-prev): New function, extracted from
(record-window-buffer): Refactor by extracting the above, and removing the now
redundant parameter DO-MINIBUF.

* src/minibuf.c (zip_minibuffer_stacks, read_minibuf): Replace calls to
get_minibuffer (0) by nth_minibuffer (0).  Replace calls to
Qrecord_window_buffer by calls to Qpush_window_buffer_onto_prev.
(Factive_minibuffer_window, read_minibuf_unwind): Call abort_emacs should an
"impossible" null value be returned by nth_minibuffer.
(read_minibuf): Move the get_minibuffer_call to just after the incrementation
of minibuf_level as a precaution against a missing buffer in
Vminibuffer_list.
(nth_minibuffer): Replace XCAR by Fcar, to allow (car nil) to work.
(init_minibuf_once): Create the inactive buffer  *Minibuf-0*.
(syms_of_minibuf): New DEFSYM, Qpush_window_buffer_onto_prev.

* src/window.c (restore_window_configuration): Replace some XCARs and XCDRs
by Fcar_safe and Fcdr_safe.
2021-05-14 15:52:21 +00:00
Eli Zaretskii
43701a8436 ; * doc/misc/calc.texi (Date Arithmetic): Fix order in @menu. 2021-05-13 19:58:30 +03:00
Glenn Morris
5cfb9a507d * doc/misc/calc.texi: Remove most hand-written node pointers.
The complex, conditional node layout makes this one of the very
few cases that can't be done entirely automatically.
2021-05-13 09:26:47 -07:00
Glenn Morris
fa33870e9f Remove more hand-written node pointers in doc/misc
* doc/misc/ede.texi, doc/misc/mh-e.texi, doc/misc/reftex.texi:
* doc/misc/todo-mode.texi: Remove hand-written node pointers.
2021-05-13 09:08:40 -07:00
Glenn Morris
9533eacec8 * doc/misc/epa.texi: Remove hand-written node pointers. 2021-05-13 08:21:10 -07:00
Glenn Morris
3061409de2 Merge from origin/emacs-27
bcd92b5708 (origin/emacs-27) Improve documentation of Hexl mode
c233f4eccd ; * etc/NEWS: Fix decoded-time-set-defaults typo.
4c3abb3dd1 Fix compilation errors with latest w32 API headers
127f1f330b Improve doc strings in log-edit.el
e36183ff46 ; * etc/TODO (etc/DOC): Update the todo entries.

# Conflicts:
#	etc/NEWS
2021-05-13 08:11:03 -07:00
Glenn Morris
ff8bf8c8df * doc/misc/epa.texi: Fix @nodes in previous change. 2021-05-13 08:07:57 -07:00
Michael Albinus
c9773379c1 Improve Tramp traces
* lisp/net/tramp-cmds.el (tramp-list-tramp-buffers):
List also trace buffers.

* lisp/net/tramp.el (tramp-buffer-name):
Add `tramp-suppress-trace' property.
(tramp-get-debug-file-name): Fix docstring.
(tramp-trace-buffer-name): New defun.
(tramp-trace-functions): New defvar.
(tramp-debug-message): Obey also `tramp-trace-functions'.

* test/lisp/net/tramp-tests.el (tramp--test-instrument-test-case):
Handle trace buffer accordingly.
2021-05-13 16:46:17 +02:00
dickmao
5be26b43f4 Process sentinels need to work under X and commandline
* src/process.c (add_non_keyboard_read_fd): Make this a public function.
(add_process_read_fd): Fold old, static add_non_keyboard_read_fd guts
into here.
* src/xsmfns.c (ice_conn_watch_CB): Call add_non_keyboard_read_fd
(bug#43834).
2021-05-13 15:22:01 +02:00
Eli Zaretskii
1aaceec931 Fix vertical cursor motion across tall text or small images
'line-move-partial' should in general leave it to the display
engine to scroll or recenter the window due to vertical motion of
the cursor.  The only purpose of this function is to produce
vscroll suitable for scrolling across large (relatively to the
window's height) images, where moving by display lines is not
appropriate.

* src/xdisp.c (Fdisplay__line_is_continued_p): New primitive.

* lisp/simple.el (line-move-partial): Call
'display--line-is-continued-p' to decide whether to leave it to
redisplay to scroll the window as appropriate.  (Bug#48170)
2021-05-13 16:12:10 +03:00
Michael Albinus
1b919004f6 Fix bug#48349 in file-name-non-special
* lisp/files.el (file-name-non-special): Use Tramp file name
handler only in case of	`copy-file', 'rename-file' and
`copy-directory'.  (Bug#48349)
2021-05-13 13:57:46 +02:00
Stefan Kangas
218001e484 Document `package-quickstart' in the user manual
* doc/emacs/package.texi (Package Installation): Document
`package-quickstart' (bug#44748).
2021-05-13 13:45:04 +02:00
Nicolás Bértolo
0e69c85d7d Make searching for files faster under Windows
* src/lread.c (openp): Use faccessat to check that a file exists
before opening it on Windows (bug#41646).  This speeds up
searching for files.
2021-05-13 13:30:29 +02:00
Stefan Kangas
1af91d271e Don't consider obsolete commands for completion in some cases
* lisp/simple.el (read-extended-command): Exclude obsolete commands
that are either lacking a 'current-name' or were obsoleted in a
previous major version (bug#43300).

(There's been some back and forth here.  Obsolete commands used to be
treated normally for completion, and then they were removed.  Then
they were put back again, but annotated with what they were
obsoleting.  There was some pushback on this change, so this latest
changes is a compromise between the last two states.)
2021-05-13 12:17:53 +02:00
Radon Rosborough
adbdf85e23 Use an explicit line width of 1 on hollow cursors under X
* src/xterm.c (x_draw_hollow_cursor): Specify a line width of
1 explicitly to avoid problems on some X implementations (bug#42452).
2021-05-13 11:44:36 +02:00
Eli Zaretskii
cd0e7d51ab ; * src/image.c (xpm_format, xpm_valid_color_symbols_p): Fix last change. 2021-05-13 12:33:08 +03:00
Eli Zaretskii
3547e01d96 * src/image.c (xpm_image_p): Avoid another compiler warning. 2021-05-13 12:23:19 +03:00
Eli Zaretskii
0b0ab33f2d * src/image.c: Avoid compiler warnings in Cairo builds without XPM. 2021-05-13 12:17:44 +03:00
Tom Gillespie
ec574a72f7 Fix evaluation order for hack-local-variables
* lisp/files.el (hack-local-variables): Fix the ordering which
local variables are evaluated by `hack-local-variables' so that
prop-line local variables are evaluated first. There is a hidden
nreverse lurking in `hack-local-variables-apply' which means that
the prop line variables must come second in order to be evaluated
before the end of file variables.
2021-05-12 23:31:23 +02:00
Philip K
0d55a8ad28 Don't mark interactive commands as internal functions
* lisp/epa-ks.el (epa-ks-search-mode-map): Rename commands from
"--" to "-" throughout.
2021-05-12 20:02:46 +02:00
Michael Albinus
f1b98d39f0 ; Rearrange EasyPG entry in etc/NEWS 2021-05-12 19:50:01 +02:00
Eli Zaretskii
e27ccea298 Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs 2021-05-12 20:03:32 +03:00
Eli Zaretskii
4aadbab5be Improve doc strings and prompt in epa-ks.el
* lisp/epa-ks.el (epa-ks--mark-key-to-fetch, epa-ks--fetch-key)
(epa-search-keys): Doc fixes.
(epa-ks-do-key-to-fetch): Better wording for the fetch prompt.
2021-05-12 20:02:28 +03:00
Lars Ingebrigtsen
43da7f838f Even further `text-property-search-forward' clarifications
* lisp/emacs-lisp/text-property-search.el
(text-property-search-forward): Further doc string clarifications.
2021-05-12 19:01:53 +02:00
Lars Ingebrigtsen
fb93afa100 Update email address in epa-ks.el 2021-05-12 18:57:07 +02:00
Philip K
6ca599f291 All a GPG key server client
* lisp/epa-ks.el (epa-keyserver): New file (bug#39886).
* doc/misc/epa.texi (Quick start): Mention it.
(Querying a key server): Document it.
2021-05-12 18:45:28 +02:00
Glenn Morris
11a9d8fce6 ; Comment fix 2021-05-12 09:38:57 -07:00
Lars Ingebrigtsen
417d53db2b Fix `uniquify-managed' unbounded growth
* lisp/uniquify.el (uniquify-rationalize-file-buffer-names):
Protect against exponential `uniquify-managed' growth when
reverting several (more than two) buffers that have the same file
name (bug#36877).
2021-05-12 17:36:24 +02:00
Lars Ingebrigtsen
bc1a01172e Further corrections for the text-property-search doc strings
* lisp/emacs-lisp/text-property-search.el
(text-property-search-forward): Correct doc string.
(text-property-search-backward): Ditto.
2021-05-12 16:17:55 +02:00
Lars Ingebrigtsen
1b0dc15a0a Tweak indentation of #foo in js-mode
* lisp/progmodes/js.el (js--proper-indentation): Indent #define
(etc) to column 0, but otherwise indent #foo normally (bug#47488).
2021-05-12 16:17:55 +02:00
Lars Ingebrigtsen
df2a237775 Remove unused variable in rmail.el
* lisp/mail/rmail.el (rmail-reply): Remove unused lexical variable
introduced in previous patch.
2021-05-12 16:17:55 +02:00
Eli Zaretskii
98e5639c3c Fix the tests for 'string-limit'
* test/lisp/emacs-lisp/subr-x-tests.el (subr-string-limit-coding):
Fix the expected results of string-limit when encoding with
UTF-16.  Add tests for UTF-8 with BOM.  (Bug#48324)

* lisp/emacs-lisp/subr-x.el (string-limit): Add FIXME comment
about the current implementation, which is faulty by design.
2021-05-12 16:41:03 +03:00
Jim Porter
d2034296a9 Abbreviate rgrep command on MS Windows (bug#48302)
* lisp/progmodes/grep.el (grep-mode-font-lock-keywords):
Adapt regexp to match MS Windows-style shell-quoting.

* test/lisp/progmodes/grep-tests.el: New file.
2021-05-12 10:47:07 +02:00
Martin Rudalics
b41f39d22c Handle Bug#24526 without breaking Emacs on tiling WMs (Bug#48268)
Since tiling window managers may react allergically to resize
requests immediately following MapNotify events on X, make sure
that such requests are issued only when a new frame should not
become visible and a size has been explicitly requested for it.

* lisp/faces.el (x-create-frame-with-faces): Mark frame as
'was-invisible' if it should be initially invisible or iconified
and has its size specified explicitly.
* src/frame.c (make_frame): Initialize new frame's was_invisible
flag.
(Fframe__set_was_invisible): New internal function.
* src/frame.h (struct frame): Specify size of new_size_p slot.
New flag was_invisible.
* src/w32fns.c (Fx_create_frame)
* src/nsfns.m (Fx_create_frame)
* src/xfns.c (Fx_create_frame): Set new frame's was_invisible
flag.
* src/xterm.c (handle_one_xevent): Call xg_frame_set_char_size
after a PropertyNotify or MapNotify event only if F's
was_invisible flag was set.
2021-05-12 09:44:02 +02:00
Richard Stallman
47070ed39e Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
What choice do I have?
2021-05-11 23:08:42 -04:00
Richard Stallman
67722ab62f Avoid querying in a noninteractive Emacs.
* lisp/mail/sendmail.el (mail-send): In noninteractive Emacs,
don't ask about combining header fields.
2021-05-11 22:59:12 -04:00
Richard Stallman
ff6727dbbd Handle empty string as mail-header-separator
* lisp/mail/sendmail.el (mail-mode):
(mail-sendmail-undelimit-header): Handle mail-header-separator empty.
(mail-send): Search for mail-header-separator as entire contents of line.
2021-05-11 22:56:54 -04:00
Richard Stallman
ec8aff1608 Handle multi-line FROM.
* lisp/mail/rmailsum.el (rmail-header-summary): Handle multi-line FROM.
2021-05-11 22:41:17 -04:00
Richard Stallman
42596bdf4b Little improvements in rmail.el. Recognize encryped override headers.
* lisp/mail/rmail.el (rmail-simplified-subject): Delete `[External] :'.
(rmail-reply): In encrypted message, search for other header fields
        inside the encrypted part, and use them instead of the real header.
(rmail-epa-decrypt): Don't set MIME unless it's Rmail mode.
2021-05-11 22:38:21 -04:00
Richard Stallman
19d0cf5484 Use rfc822-goto-eoh rather that mail-header-separator.
* lisp/epa-mail.el (epa-mail-sign)
(epa-mail-default-recipients, epa-mail-encrypt):
Use rfc822-goto-eoh, not mail-header-separator.
(epa-mail-default-recipients): Assume epa-mail-aliases
elements are lower case, search case-independently.
2021-05-11 22:19:00 -04:00
Eli Zaretskii
5784b421ee Move the Text Properties menu back to Edit
* lisp/textmodes/enriched.el (enriched-mode): Don't add "Text
Properties" sub-menu to Text mode menu.
* lisp/facemenu.el (menu-bar-edit-menu): Add "Text Properties"
sub-menu back to the Edit menu.
2021-05-11 23:18:01 +03:00
Lars Ingebrigtsen
5b3ce3a25b Remove purecopy throughout facemenu.el (since it's not preloaded) 2021-05-11 21:12:12 +02:00
Lars Ingebrigtsen
aa14424b6b Move facemenu to enriched mode
* lisp/menu-bar.el (menu-bar-edit-menu): Move from here...

* lisp/textmodes/enriched.el (enriched-mode): ... to here.
2021-05-11 21:12:12 +02:00
Tassilo Horn
4e175604b5 Fix dired confirm message asking to kill buffers of deleted dir (bug#48301)
* lisp/dired.el (dired-clean-up-after-deletion): Fix dired
confirmation message asking to kill buffers of deleted dir in the case
where `dired-listing-switches' contain -p (bug#48301).
2021-05-11 21:10:28 +02:00
Stefan Monnier
fa9f61e0f6 * lisp/font-lock.el: Fix font-lock-comment-end-skip fallback (bug#34088)
(font-lock-fontify-syntactically-region): Use `comment-end-skip` as
fallback for `font-lock-comment-end-skip`, as is done for
`font-lock-comment-start-skip` (and as the name suggests).

* lisp/progmodes/opascal.el (opascal-mode): Revert last change,
made unnecessary.
2021-05-11 13:19:50 -04:00
Eli Zaretskii
bcd92b5708 Improve documentation of Hexl mode
* doc/emacs/misc.texi (Editing Binary Files): Explain that Hexl can
also be used for editing text, including non-ASCII text.
2021-05-11 20:06:02 +03:00
Andrea Corallo
63df3372be Rename comp-deferred-compilation
* lisp/progmodes/elisp-mode.el
	(emacs-lisp-native-compile-and-load): Rename
	comp-deferred-compilation -> native-comp-deferred-compilation.
	* src/comp.c (maybe_defer_native_compilation, syms_of_comp):
	Likewise.
2021-05-11 18:31:45 +02:00
Andrea Corallo
8bc91a6a3f * Rename comp-deferred-compilation-deny-list
* lisp/emacs-lisp/comp.el (native-comp-deferred-compilation-deny-list)
(native-compile-async-skip-p): Rename
comp-deferred-compilation-deny-list ->
native-comp-deferred-compilation-deny-list.
2021-05-11 18:31:45 +02:00