Stefan Monnier [Thu, 24 Jun 2021 21:34:57 +0000 (17:34 -0400)]
* lisp/bindings.el (bindings--sort-menu-keymap): Add "menu" in its name
(bindings--menu-item-string): Use `pcase`.
Stefan Monnier [Thu, 24 Jun 2021 21:32:20 +0000 (17:32 -0400)]
* lisp/emacs-lisp/cl-preloaded.el: Fix the format of props in slot-descs
(cl--plist-remove): Remove.
(cl--plist-to-alist): New function.
(cl-struct-define): Use it to convert slots's properties to the
format expected by `cl-slot-descriptor`.
* lisp/emacs-lisp/cl-extra.el (cl--describe-class-slots): Revert last
changes, not needed any more.
Mattias Engdegård [Thu, 24 Jun 2021 18:48:41 +0000 (20:48 +0200)]
Don't call ERT explainer on error
* lisp/emacs-lisp/ert.el (ert--expand-should-1): If the predicate form
signals an error, don't call an explainer because the arguments passed
(the error and error argument, respectively) do not make any sense to
the explainer at all.
Lars Ingebrigtsen [Thu, 24 Jun 2021 18:24:43 +0000 (20:24 +0200)]
Attempt to make defclass documentation more legible
* lisp/emacs-lisp/cl-extra.el (cl--print-table): Attempt to make
defclass documentation more readable (bug#30998).
(cl--describe-class-slots): Ditto.
Lars Ingebrigtsen [Thu, 24 Jun 2021 18:13:08 +0000 (20:13 +0200)]
Fix printing of defclass documentation slots again
* lisp/emacs-lisp/cl-extra.el (cl--describe-class-slots): Fix
printing defclass slots, and retain printing of defstruct slots
(bug#30998 and bug#46662).
Lars Ingebrigtsen [Thu, 24 Jun 2021 16:51:38 +0000 (18:51 +0200)]
Allow `C-u M-x dig' to ask for a query type
* lisp/net/dig.el (dig): Allow prompting for a query type
(bug#31810).
Alex McGrath [Thu, 24 Jun 2021 16:45:08 +0000 (18:45 +0200)]
Add SASL authentication to rcirc
* lisp/net/rcirc.el (rcirc-handler-AUTHENTICATE): New function
(bug#48601).
(rcirc-authenticate):
(rcirc-connect): Support sasl.
(rcirc-get-server-password, rcirc-get-server-method): New functions.
(rcirc-authinfo): Document it.
E. Choroba [Thu, 24 Jun 2021 16:15:07 +0000 (18:15 +0200)]
Fix highlighting in cperl-mode for "for /regex/"
* lisp/progmodes/cperl-mode.el (cperl-find-pods-heres): Fix
highlighting of regexp in "print for /./;" (bug#49192).
Jim Porter [Thu, 24 Jun 2021 16:07:25 +0000 (18:07 +0200)]
Ignore file-missing errors during diff-refined font-locking
* lisp/vc/diff-mode.el (diff--font-lock-refined): Ignore file-missing
errors (bug#49197).
Lars Ingebrigtsen [Thu, 24 Jun 2021 14:59:42 +0000 (16:59 +0200)]
Clarify the help in the package buffers
* lisp/emacs-lisp/package.el (package--quick-help-keys): Clarify
marking help (bug#40457).
Jim Porter [Thu, 24 Jun 2021 14:50:51 +0000 (16:50 +0200)]
Sort the items in 'mode-line-mode-menu' before displaying the menu
* lisp/bindings.el (bindings--menu-item-string, bindings--sort-keymap):
New functions.
(mode-line-major-mode-keymap, mode-line-minor-mode-keymap):
Sort 'mode-line-mode-menu'.
Saroj Thirumalai [Wed, 23 Jun 2021 20:17:03 +0000 (23:17 +0300)]
* lisp/printing.el (pr-global-menubar): Fix duplicate menu problem.
In Emacs 27.1 Print menu items were moved to a submenu of the File menu.
The Printing package (lisp/printing.el) replaces the Print menu (via the
function: pr-global-menubar). The latter needs to be updated to reflect the
changes; otherwise, a second Print (sub)menu is created at the end of the
File menu.
Copyright-paperwork-exempt: yes
Mauro Aranda [Wed, 23 Jun 2021 15:08:04 +0000 (12:08 -0300)]
Fix defvar->defcustom conversion in ethio-util.el
* lisp/language/ethio-util.el (ethio-primary-language)
(ethio-secondary-language): Don't quote the const.
(ethio-use-three-dot-question, ethio-quote-vowel-always)
(ethio-W-sixth-always, ethio-numeric-reduction)
(ethio-java-save-lowercase): Really make them defcustom.
Lars Ingebrigtsen [Wed, 23 Jun 2021 14:28:32 +0000 (16:28 +0200)]
Make ethio-* variables into user options
* lisp/language/ethio-util.el (ethiopic): New group.
(ethio-primary-language, ethio-secondary-language)
(ethio-use-colon-for-colon, ethio-use-three-dot-question)
(ethio-quote-vowel-always, ethio-W-sixth-always)
(ethio-numeric-reduction, ethio-java-save-lowercase): Make into
user options (bug#33024).
Lars Ingebrigtsen [Wed, 23 Jun 2021 14:10:25 +0000 (16:10 +0200)]
Revert "Sort the items in 'mode-line-mode-menu' before displaying the menu"
This reverts commit
d4d6d8f335165e2bda8942b4acd45e5bab613b70.
This approach doesn't work on certain types of keymaps, so it should be implemented in a different way.
Jim Porter [Wed, 23 Jun 2021 13:02:52 +0000 (15:02 +0200)]
Sort the items in 'mode-line-mode-menu' before displaying the menu
* lisp/bindings.el (bindings--menu-item-string, bindings--sort-keymap):
New functions.
(mode-line-major-mode-keymap, mode-line-minor-mode-keymap):
Sort 'mode-line-mode-menu'.
dickmao [Wed, 23 Jun 2021 12:50:05 +0000 (14:50 +0200)]
Clean up code in `message-replace-header'
* lisp/gnus/message.el (message-replace-header): Elide redundancy
(bug#49180).
dickmao [Tue, 22 Jun 2021 22:23:48 +0000 (00:23 +0200)]
Fix message-replace-header after recent change
* lisp/gnus/message.el (message-replace-header): Restore else
branch removed by mistake in
989de3b824 (bug#49179).
Lars Ingebrigtsen [Tue, 22 Jun 2021 15:10:19 +0000 (17:10 +0200)]
Give feedback to the user in dired-do-find-regexp
* lisp/dired-aux.el (dired-do-find-regexp): Give some feedback to
the user (bug#35352).
Lars Ingebrigtsen [Tue, 22 Jun 2021 14:03:37 +0000 (16:03 +0200)]
Make minor mode docstrings say what the mode "variable" is
* lisp/emacs-lisp/easy-mmode.el (easy-mmode--arg-docstring): Add
the mode variable (bug#36500).
(easy-mmode--mode-docstring):
(define-minor-mode): Pass in the getter.
Protesilaos Stavrou [Tue, 22 Jun 2021 13:33:26 +0000 (15:33 +0200)]
Use named face for apropos-button
* etc/NEWS: Document new face.
* lisp/apropos.el (apropos-button): Define new face.
(apropos-face): Specify face instead of hardcoding
attributes (bug#49162).
Peter Oliver [Tue, 22 Jun 2021 13:21:33 +0000 (15:21 +0200)]
If the daemon’s TTY is our only frame, create a new frame
* server.el (server-process-filter): If there won't be a current frame
to use, fall back to trying to create a new one (bug#11033).
Peter Oliver [Tue, 22 Jun 2021 13:17:28 +0000 (15:17 +0200)]
Advertise support for Startup Notification when built with GTK
* etc/emacsclient.desktop, etc/emacsclient.desktop: Specify
StartupNotify=true.
* configure.ac (USE_STARTUP_NOTIFICATION): New variable, yes iff
HAVE_GTK.
* Makefile.in (install-etc): Remove StartupNotify=true from
etc/*.desktop unless USE_STARTUP_NOTIFICATION (bug#48783).
Utkarsh Singh [Tue, 22 Jun 2021 13:07:59 +0000 (15:07 +0200)]
Make tex-compile-commands heed tex-start-options
* lisp/textmodes/tex-mode.el (tex-compile-commands): Respect
`tex-start-options' (bug#49018).
Eli Zaretskii [Tue, 22 Jun 2021 13:05:35 +0000 (16:05 +0300)]
Fix "make -j install"
* Makefile.in (install-eln): Depend on 'lisp', so that people
could say "make -j install" without a separate "make" step.
(Bug#49099)
Stephen Gildea [Tue, 22 Jun 2021 04:28:20 +0000 (21:28 -0700)]
time-stamp: add principled, expressive %z
* lisp/time-stamp.el (time-stamp-formatz-from-parsed-options): New
function for time zone offset formatting ("%z" variants).
* test/lisp/time-stamp-tests.el (formatz*): New unit tests to cover
the new implementation of %5z.
Basil L. Contovounesios [Mon, 21 Jun 2021 15:00:39 +0000 (16:00 +0100)]
Fix shortdoc-add-function section creation
* lisp/emacs-lisp/shortdoc.el (shortdoc-add-function): Use nconc to
actually append a new section to the list of groups while avoiding a
previous OBOE. Push a new group to the front of shortdoc--groups
without copying it, just like define-short-documentation-group does.
(buffer): Fix copypasta in unlock-buffer example.
* test/lisp/emacs-lisp/shortdoc-tests.el (shortdoc-examples): Also
check that :no-value forms demonstrate the right function.
* doc/lispref/help.texi (Documentation Groups): Clarify that @dots
in the define-short-documentation-group arglist refer to whole
key-value pairs. Fix typo in :eg-result-string description.
Lars Ingebrigtsen [Mon, 21 Jun 2021 13:16:50 +0000 (15:16 +0200)]
NEWS for tool bar "X" in *Help* buffers change (bug#49139)
Lars Ingebrigtsen [Mon, 21 Jun 2021 12:58:15 +0000 (14:58 +0200)]
Fix prompting for large files when loading literally
* lisp/files.el (find-file-noselect): Don't include "literally" in
the "large file" prompt if we're gonna load literally anyway
(bug#49144).
Lars Ingebrigtsen [Mon, 21 Jun 2021 12:50:59 +0000 (14:50 +0200)]
Make find-file-literally ignore local variables again
* lisp/files.el (find-file-noselect-1): Re-inhibit local variables
when loading a file literally (bug#49143). This was broken by
5bedbe6b1d.
Alex Bochannek [Mon, 21 Jun 2021 12:35:48 +0000 (14:35 +0200)]
Refactor gnus-article-sort-by-*
* lisp/gnus/gnus-sum.el (gnus-article-sort-extract-extra): New
function (bug#49081).
(gnus-article-sort-by-recipient): Use it.
(gnus-article-sort-by-newsgroups): Ditto.
Lars Ingebrigtsen [Sun, 20 Jun 2021 11:50:25 +0000 (13:50 +0200)]
Further fixes for bound-and-true-p doc string
* lisp/bindings.el (bound-and-true-p): Improve doc string.
Andrea Corallo [Mon, 21 Jun 2021 09:44:58 +0000 (11:44 +0200)]
* Do not attempt to write .elc files when not necessary (bug#49118)
* lisp/emacs-lisp/bytecomp.el (byte-compile-file): Do not attempt to
write .elc files when not necessary.
Alan Third [Thu, 10 Jun 2021 22:52:19 +0000 (23:52 +0100)]
Fix GNUstep menu update crashes
* src/nsmenu.m (ns_update_menubar): close the submenus before modifying them.
([EmacsMenu close]): Make sure to close all submenus.
Alan Third [Thu, 3 Jun 2021 22:15:17 +0000 (23:15 +0100)]
Fix GNUstep build warnings
* src/nsterm.h ([EmacsWindow orderedIndex]):
* src/nsterm.m ([EmacsWindow orderedIndex]): Implement orderedIndex
for use under GNUstep.
* src/nsmenu.m (free_frame_menubar):
(ns_update_menubar):
([EmacsMenu addSubmenuWithTitle:]):
([EmacsMenu addItemWithWidgetValue:attributes:]): Cast return values
to correct types.
([EmacsMenu fillWithWidgetValue:]): Move variable definition inside
relevant #ifdef block.
([EmacsMenu menuWillOpen:]):
([EmacsMenu menuDidClose:]):
([EmacsMenu confinementRectForMenu:onScreen:]):
([EmacsMenu menu:willHighlightItem:]): New functions to silence build
warnings.
* src/nsfont.m (nsfont_open): Remove pointless fabs call.
Michael Albinus [Sun, 20 Jun 2021 15:50:52 +0000 (17:50 +0200)]
Adapt tests in tramp-archive-tests.el
* test/lisp/net/tramp-archive-tests.el
(tramp-archive-test05-expand-file-name)
(tramp-archive-test06-directory-file-name): Adapt tests.
Robert Pluim [Sun, 20 Jun 2021 15:11:44 +0000 (17:11 +0200)]
; Fix typo in NEWS
Grant Shangreaux [Sun, 23 May 2021 16:28:25 +0000 (11:28 -0500)]
Add input methods for Lakota
The White Hat and Suggested Lakota Orthography are represented here
by three different input modes: A prefix and postfix mode for the SLO,
and a postfix mode for the White Hat orthography.
* lisp/leim/quail/latin-post.el (lakota-slo-postfix)
(lakota-white-hat-postfix):
* lisp/leim/quail/latin-pre.el (lakota-slo-prefix): New input methods.
* etc/HELLO: Call out the additions.
Eli Zaretskii [Sun, 20 Jun 2021 07:01:25 +0000 (10:01 +0300)]
; * lisp/help-mode.el (help-customize): Doc fix. (Bug#36767)
Juri Linkov [Sat, 19 Jun 2021 23:14:29 +0000 (02:14 +0300)]
Add new convenience command for *Help*
* doc/emacs/help.texi (Help Mode): Document it (bug#36767).
* lisp/help-mode.el (help-mode-map): Add 'c'.
(help-mode-menu): Add help-customize.
(help-customize): New command.
Michael Albinus [Sat, 19 Jun 2021 16:11:50 +0000 (18:11 +0200)]
Fix error in tramp-archive.el
* lisp/net/tramp-archive.el (tramp-archive-file-name-handler):
Archive must exist. (Bug#49030, Bug#49043)
* test/lisp/net/tramp-archive-tests.el
(tramp-archive-test06-directory-file-name): Tag it :unstable temporarily.
Glenn Morris [Sat, 19 Jun 2021 15:17:47 +0000 (08:17 -0700)]
Merge from origin/emacs-27
7722b510aa (origin/emacs-27) Another improvement in documentation of ...
8d5c70d73a Improve documentation of profiler
0ffef0b46b Document 'ispell-program-name'
7be610f911 Fix documentation of 'face-extend-p'
# Conflicts:
# doc/lispref/debugging.texi
Glenn Morris [Sat, 19 Jun 2021 14:50:54 +0000 (07:50 -0700)]
; Merge from origin/emacs-27
The following commit was skipped:
b94532f028 * src/xdisp.c (Fwindow_text_pixel_size): Plug memory leak....
Lars Ingebrigtsen [Sat, 19 Jun 2021 13:58:09 +0000 (15:58 +0200)]
Use file-truename on files loaded with "emacs -l"
* lisp/startup.el (command-line-1): When loading a file, use the
truename so that eval-after-load works more reliably (bug#49009).
Change suggested by ctarbide@tuta.io.
Lars Ingebrigtsen [Sat, 19 Jun 2021 13:21:18 +0000 (15:21 +0200)]
Improve bound-and-true-p doc string
* lisp/bindings.el (bound-and-true-p): Improve doc string (bug#49116).
dickmao [Sat, 19 Jun 2021 13:19:04 +0000 (15:19 +0200)]
De-obfuscate gnutls_handshake loop
* src/gnutls.c (gnutls_try_handshake): Rewrite the handshake loop
for greater clarity (bug#49055).
Alex Bochannek [Sat, 19 Jun 2021 13:13:12 +0000 (15:13 +0200)]
New Gnus Summary buffer sort options for extra headers
* lisp/gnus/gnus-sum.el (gnus-article-sort-functions)
(gnus-thread-sort-functions, gnus-subthread-sort-functions)
(gnus-summary-mode-map, gnus-summary-make-menu-bar)
(gnus-article-sort-by-newsgroups)
(gnus-summary-sort-by-newsgroups, gnus-summary-sort-by-extra):
Sort by Newsgroups extra header. Prompt for header name for other
extra headers.
* doc/misc/gnus.texi (Summary Sorting): Document new sort functions
* etc/NEWS: New Gnus Summary buffer sort feature (bug#49081).
Eli Zaretskii [Sat, 19 Jun 2021 13:08:50 +0000 (16:08 +0300)]
Another improvement in documentation of "memory" profiler
* lisp/profiler.el (profiler-start): Fix the doc string to better
explain what is "memory" profiler.
Łukasz Stelmach [Sat, 19 Jun 2021 13:07:13 +0000 (15:07 +0200)]
Allow `message-replace-header' to take a list of AFTERs
* lisp/gnus/message.el (message-replace-header): Facilitate
capability of message-position-on-field to accept multiple headers
as AFTERS argument and make possible to mimic behavioir of
message-goto-* functions with message-replace-header in case the
header does not exist (bug#49070).
Alex Bochannek [Sat, 19 Jun 2021 13:04:37 +0000 (15:04 +0200)]
Add support for displaying total number of groups in subgroups in Gnus
* lisp/gnus/gnus-topic.el (gnus-topic-line-format)
(gnus-topic-line-format-alist, gnus-topic-prepare-topic)
(gnus-topic-insert-topic-line, )
(gnus-topic-display-missing-topic, )
(gnus-topic-update-topic-line):
Provide number of groups in subtopics for topic line display and
add 'G' element to be used for 'gnus-topic-line-format' variable
* doc/misc/gnus.texi (Topic Variables):
Document 'G' element for 'gnus-topic-line-format' variable (bug#49068).
Eli Zaretskii [Sat, 19 Jun 2021 12:39:11 +0000 (15:39 +0300)]
Improve documentation of profiler
* doc/lispref/debugging.texi (Profiling): Stop misleading users
about what "memory" profiling really is.
Jim Porter [Sat, 19 Jun 2021 12:25:22 +0000 (14:25 +0200)]
Improve to selsel doc strings
* lisp/delsel.el (delete-active-region): Document interactive behavior.
* lisp/delsel.el (delete-selection-repeat-replace-region):
Use "\\[universal-argument]" instead of literal "C-u" in docstring.
Michael Albinus [Sat, 19 Jun 2021 12:01:13 +0000 (14:01 +0200)]
Revert "Add `file-name-set-extension'"
This reverts commit
4f1a5e456e35930e8d0713b990bd7b14923cfe97.
Michael Albinus [Sat, 19 Jun 2021 09:10:46 +0000 (11:10 +0200)]
Add `file-name-set-extension'
* lisp/files.el (file-name-with-extension): New defun.
* test/lisp/files-tests.el (files-tests-file-name-with-extension-good)
(files-tests-file-name-with-extension-bad): New tests.
Michael Albinus [Sat, 19 Jun 2021 08:35:06 +0000 (10:35 +0200)]
Handle case remote uid is 0 in some Tramp related tests
* test/lisp/filenotify-tests.el:
* test/lisp/shadowfile-tests.el:
Set `tramp-allow-unsafe-temporary-files' to t.
Mattias Engdegård [Fri, 18 Jun 2021 13:02:58 +0000 (15:02 +0200)]
; * src/comp.c (ADD_IMPORTED): Fix broken macro.
Mattias Engdegård [Thu, 17 Jun 2021 09:18:46 +0000 (11:18 +0200)]
Fix Morse for non-ASCII letters
* lisp/play/morse.el (morse-code): Downcase letters in the table
because they must match downcased input.
Eli Zaretskii [Fri, 18 Jun 2021 11:28:16 +0000 (14:28 +0300)]
Improve and update the 'etags' test suite
* lib-src/etags.c (mercury_pr): Remove redundant comment.
* test/manual/etags/merc-src/accumulator.m: Add more complex
declarations.
* test/manual/etags/ETAGS.good_1:
* test/manual/etags/ETAGS.good_2:
* test/manual/etags/ETAGS.good_3:
* test/manual/etags/ETAGS.good_4:
* test/manual/etags/ETAGS.good_5:
* test/manual/etags/ETAGS.good_6:
* test/manual/etags/CTAGS.good: Adapt to latest changes in 'etags'
and the test suite. (Bug#47408)
Fabrice Nicol [Thu, 17 Jun 2021 17:59:52 +0000 (19:59 +0200)]
Fix Mercury support, notably qualified procedures.
Correct the previous fix (did not correctly handle qualified types).
Also fix the following issues:
- remove module name (+ dot) from tags, as prefixing module name is
often inconsistent in code and may cause tags to be too specific.
- now tag 0-arity predicates and functions (':- func foo_14.')
- now tag one-word declarations (':- interface.')
* lib-src/etags.c (mercury_pr): Pass the correct NAME and NAMELEN
arguments to 'make_tag'.
(mercury_decl): Return more information about the declaration or
definition it finds. This allows mercury_pr to be smarter.
(Bug#47408)
Philipp Stephani [Fri, 18 Jun 2021 06:24:03 +0000 (08:24 +0200)]
Update SCSS test file syntax.
According to
https://sass-lang.com/documentation/breaking-changes/slash-div, the
slash operator should be replaced by 'math.div'.
Fixed using the migration tool mentioned at
https://sass-lang.com/documentation/breaking-changes/slash-div#automatic-migration.
* test/manual/indent/scss-mode.scss: Remove slash operator.
Arash Esbati [Thu, 17 Jun 2021 21:12:00 +0000 (23:12 +0200)]
Use \footref when referencing a footnote label
* lisp/textmodes/reftex-vars.el (reftex-label-alist-builtin): Use
\footref as `reference-format' for \footnote macro.
Arash Esbati [Thu, 17 Jun 2021 20:59:32 +0000 (22:59 +0200)]
Support new LaTeX kernel macro \footref
* lisp/textmodes/reftex-vars.el (reftex-ref-style-alist): Add
entry for \footref macro which is part of LaTeX kernel 2021-06-01.
Juri Linkov [Thu, 17 Jun 2021 20:19:30 +0000 (23:19 +0300)]
* lisp/help-fns.el (help--symbol-class): Concat chars for all namespaces.
Since Emacs Lisp is more than Lisp-2, separately output letters
for each namespace: functions, variables, faces, classes.
Use non-letter characters for additional properties
such as advice, obsolete, local.
(help--symbol-completion-table-affixation): Use format "%-4s".
https://lists.gnu.org/archive/html/emacs-devel/2021-06/msg00524.html
Juri Linkov [Thu, 17 Jun 2021 19:53:57 +0000 (22:53 +0300)]
Fix display-buffer-override-next-command for no-select case (bug#49057)
* lisp/window.el (display-buffer-override-next-command):
Separate 'postfun' from 'clearfun', so 'clearfun' resets
'display-buffer-overriding-action', whereas 'postfun' calls
'post-function' that can select the right window in 'post-command-hook'.
* lisp/windmove.el (windmove-display-no-select): Add new choice 'ignore'.
Improve docstring.
(windmove-display-in-direction): Use new value 'ignore' of
'windmove-display-no-select'. Improve docstring.
(windmove-display-left, windmove-display-up)
(windmove-display-right, windmove-display-down): Mention
'windmove-display-no-select' in docstrings.
Stefan Monnier [Wed, 16 Jun 2021 16:53:59 +0000 (12:53 -0400)]
* lisp/emacs-lisp/cl-generic.el: Fix bug#49053 and bug#47454
(cl-generic-define-method): Shorten the time window where the symbol is
defined to `dummy`.
Mattias Engdegård [Wed, 16 Jun 2021 16:05:41 +0000 (18:05 +0200)]
Eliminate some GCC warnings
* src/doprnt.c (exprintf, evxprintf):
* src/lisp.h (exprintf, evxprintf): Don't use a pointer-to-const type
for the `nonheapbuf` argument: although it is never dereferenced, GCC
will warn when passing a pointer to uninitialised memory otherwise.
* src/fns.c (sort_vector_copy, realize_face, realize_gui_face)
(realize_tty_face): Use the same signatures in the prototypes as in
the actual function definitions.
Glenn Morris [Wed, 16 Jun 2021 15:34:32 +0000 (08:34 -0700)]
* lisp/simple.el (save-interprogram-paste-before-kill): Fix type.
; Would not "integer" be better than "number", in type and docs?
Mattias Engdegård [Wed, 16 Jun 2021 09:37:00 +0000 (11:37 +0200)]
* src/xdisp.c (gui_draw_bottom_divider): Fix misleading indentation.
Mattias Engdegård [Tue, 15 Jun 2021 17:48:45 +0000 (19:48 +0200)]
Remove outdated advise from manual
* doc/lispref/modes.texi (Search-based Fontification):
Remove paragraph that has been unnecessary and confusing ever since
regexp-opt stopped using capturing brackets more than 21 years ago.
Mattias Engdegård [Tue, 15 Jun 2021 17:57:38 +0000 (19:57 +0200)]
; * lisp/progmodes/hideif.el (hif-unicode-prefix-regexp): Stray `\`.
Pip Cet [Tue, 2 Mar 2021 20:38:23 +0000 (20:38 +0000)]
Prepare pdumper dump file in memory, write it in one go (Bug#46881)
* src/pdumper.c (struct dump_context): Add buf, buf_size, max_offset fields.
(dump_grow_buffer): New function.
(dump_write): Use memcpy, not an actual emacs_write.
(dump_seek): Keep track of maximum seen offset. Don't actually seek.
(Fdump_emacs_portable): Write out the file contents when done.
pillule [Tue, 15 Jun 2021 23:31:58 +0000 (02:31 +0300)]
User option to choose a function triggered by windmove-create (bug#48917)
* lisp/windmove.el (windmove-create-window): Add a defcustom choice.
(windmove-do-window-select): Trigger custom functions, update the docstring.
pillule [Tue, 15 Jun 2021 23:23:13 +0000 (02:23 +0300)]
User option to select 'no-other-window' with windmove (bug#48916)
* lisp/windmove.el (windmove-wrap-around): Remove superfluous :group tag.
(windmove-create-window): Remove superfluous :group tag.
(windmove-window-distance-delta): Remove superfluous :group tag.
(windmove-allow-all-windows): Add new user option to allow the commands
of windmove to target windows with the 'no-other-window parameter.
(windmove-find-other-window): Use windmove-allow-all-windows.
(windmove-display-no-select): Remove superfluous :group tag.
(windmove-display-in-direction): Use windmove-allow-all-windows.
(windmove-delete-in-direction): Use windmove-allow-all-windows.
(windmove-swap-states-in-direction): Use windmove-allow-all-windows.
(windmove-default-keybindings): Remove superfluous :group tag.
(windmove-display-default-keybindings): Remove superfluous :group tag.
(windmove-delete-default-keybindings): Remove superfluous :group tag.
(windmove-swap-states-default-keybindings): Remove superfluous :group tag.
Lars Ingebrigtsen [Tue, 15 Jun 2021 18:58:01 +0000 (20:58 +0200)]
Make help-view-source more robust
* lisp/help-mode.el (help-view-source): Check the right thing to
see if we can jump to the source file.
Lars Ingebrigtsen [Tue, 15 Jun 2021 18:51:00 +0000 (20:51 +0200)]
Add new convenience commands for *Help*
* doc/emacs/help.texi (Help Mode): Document it (bug#36767).
* lisp/help-fns.el (help-fns-function-description-header)
(describe-variable, describe-face, describe-keymap)
(describe-mode): Add the required data.
* lisp/help-mode.el (help-mode-map): Add 'i' and 's'.
(help-mode--current-data): New variable.
(help-mode): Make it local.
(help-view-source, help-goto-info): New commands.
Lars Ingebrigtsen [Tue, 15 Jun 2021 16:36:29 +0000 (18:36 +0200)]
Clarify (interactive "K") in the manual
* doc/lispref/commands.texi (Interactive Codes): Clarify
(interactive "K") (bug#37146).
Eli Zaretskii [Tue, 15 Jun 2021 15:21:50 +0000 (18:21 +0300)]
Document 'ispell-program-name'
* doc/emacs/fixit.texi (Spelling): Document
'ispell-program-name'. (Bug#49039)
Eli Zaretskii [Tue, 15 Jun 2021 15:10:45 +0000 (18:10 +0300)]
; * etc/NEWS: Fix a typo in the recent change.
Julian Scheid [Tue, 15 Jun 2021 15:01:49 +0000 (17:01 +0200)]
Allow ERT tests to output the failure reasons, too
* lisp/emacs-lisp/ert.el (ert-reason-for-test-result): New function.
(ert-run-tests-batch): Output failure or skip reason (bug#47071).
Lars Ingebrigtsen [Tue, 15 Jun 2021 14:50:51 +0000 (16:50 +0200)]
Add a new function syntax-class-to-char
* doc/lispref/syntax.texi (Syntax Table Internals): Document it.
* src/syntax.c (Fsyntax_class_to_char): New function (bug#37452).
Filipp Gunbin [Tue, 15 Jun 2021 14:11:51 +0000 (17:11 +0300)]
; * doc/lispref/text.texi (Clickable Text): Fix word order
Jared Finder [Tue, 15 Jun 2021 13:54:08 +0000 (15:54 +0200)]
Fix dragging dividers in terminal Emacs when there's margins
* lisp/mouse.el (mouse-drag-line): Do the right thing in the
presence of margins (bug#41156).
(mouse-drag-line): Bind left-margin/right-margin in the map, too.
Lars Ingebrigtsen [Tue, 15 Jun 2021 13:46:33 +0000 (15:46 +0200)]
Document `completions-format'
* doc/emacs/mini.texi (Completion Options): Document
`completions-format'.
* lisp/simple.el (completion-list-mode): Mention in (bug#49003).
Lars Ingebrigtsen [Tue, 15 Jun 2021 13:33:03 +0000 (15:33 +0200)]
Fix false positives in docstring width warning with (fn...) constructs.
* lisp/emacs-lisp/bytecomp.el (byte-compile--wide-docstring-p):
Don't consider the function signature when determining whether the
doc string is too wide (bug#49007). (The signature is folded
later when displaying help.)
Stephen Gildea [Tue, 15 Jun 2021 06:16:37 +0000 (23:16 -0700)]
mh-junk need not support SpamAssassin 2.20 from 2003
* lisp/mh-e/mh-junk.el (mh-spamassassin-*list): Remove support
for SpamAssassin 2.20. (SpamAssassin 3.0 was released in 2004.)
This change updates both the flags for sa-learn and the comments
about how the current version works.
This change reverts part of a change made in 2003 that added
support for what was even then an "old version of spamassassin."
Lars Ingebrigtsen [Mon, 14 Jun 2021 13:58:01 +0000 (15:58 +0200)]
Remove unused variable from sgml-mode test
* test/lisp/textmodes/sgml-mode-tests.el (sgml-test-brackets):
Remove unused variable.
Lars Ingebrigtsen [Mon, 14 Jun 2021 13:32:03 +0000 (15:32 +0200)]
Get fractional seconds in iso8601 parsing right
* lisp/calendar/iso8601.el (iso8601-parse-time): Get fractional
times (with leading zeroes in the fraction part) right (bug#49017).
Fix based on a patch by "J.P." <jp@neverwas.me>.
Andrea Corallo [Mon, 14 Jun 2021 12:37:14 +0000 (14:37 +0200)]
* Do not produce .elc temporary file when unnecessary (bug#48978)
* lisp/emacs-lisp/bytecomp.el (byte-compile-file): Produce .elc
temporary files only when non native compiling or when native
compiling but `byte+native-compile' is non nil.
Stephen Berman [Mon, 14 Jun 2021 12:57:57 +0000 (14:57 +0200)]
Fix problem in HTML with bracketed characters
* lisp/textmodes/sgml-mode.el (sgml-tag-syntax-table): Use bracket
syntax for all Unicode bracket characters (bug#43941).
Andrea Corallo [Mon, 14 Jun 2021 12:17:33 +0000 (14:17 +0200)]
;* lisp/emacs-lisp/bytecomp.el (byte-native-compiling): Typo fix.
Andrea Corallo [Mon, 14 Jun 2021 12:17:04 +0000 (14:17 +0200)]
* lisp/emacs-lisp/bytecomp.el (byte+native-compile): Update docstring.
Michael Albinus [Mon, 14 Jun 2021 09:25:13 +0000 (11:25 +0200)]
Handle sensitive auto-save or backup remote files (Bug#45245)
* doc/misc/tramp.texi (Auto-save and Backup):
Describe tramp-allow-unsafe-temporary-files.
(Ad-hoc multi-hops): Use proper format.
* etc/NEWS: Mention confirmation for writing sensitive auto-save
or backup remote files to the local temporary directory..
* lisp/net/tramp-cache.el (tramp-dump-connection-properties):
Strengthen test.
* lisp/net/tramp.el (tramp-allow-unsafe-temporary-files): New defcustom.
(tramp-handle-find-backup-file-name)
(tramp-handle-make-auto-save-file-name): Don't expose sensible
auto-save or backup files on local temporary directory. (Bug#45245)
* test/lisp/net/tramp-tests.el (tramp--test-always): New defalias.
(tramp-test10-write-region, tramp-test21-file-links)
(tramp--test--deftest-direct-async-process): Use it.
(tramp-test37-make-auto-save-file-name)
(tramp-test38-find-backup-file-name): Extend tests.
pillule [Mon, 14 Jun 2021 07:59:11 +0000 (09:59 +0200)]
Improve handling of dedicated flag for side windows (Bug#48493)
* doc/lispref/windows.texi (Buffers and Windows): Mention the
special handling of side windows and add a reference.
(Buffer Display Action Alists): Say explicitly that
`display-buffer-in-side-window' is dedicating to side by default.
(Dedicated Windows): Add case (4) and explain its meaning, add
a reference.
(Displaying Buffers in Side Windows): Move the paragraph about
`switch-to-(prev|next)-buffer' into a new item to emphasize the
special meaning of dedication for side windows.
* lisp/window.el (set-window-buffer-start-and-point): Restore
side dedication.
(switch-to-prev-buffer, switch-to-next-buffer): Correct return
value that should be nil instead of the same buffer in case of
no change.
(delete-windows-on): Restore side dedication.
(replace-buffer-in-windows): Update the docstring, restore side
dedication.
(quit-restore-window): Rearrange the logic so that strongly
dedicated windows are eventually deleted first. Restore the
side dedication. In the final case try to
`switch-to-prev-buffer' before deleting a window (Bug#48367).
Eli Zaretskii [Sun, 13 Jun 2021 14:10:51 +0000 (17:10 +0300)]
Fix documentation of 'face-extend-p'
* doc/lispref/display.texi (Attribute Functions): Fix description
of 'face-extend-p'. (Bug#48936)
Lars Ingebrigtsen [Sun, 13 Jun 2021 13:38:52 +0000 (15:38 +0200)]
Fix previous pulse.el fix
* lisp/cedet/pulse.el (pulse-reset-face): Fix up previous
pulse-reset-face change -- reset back to the start face
(bug#48936).
dick [Sun, 13 Jun 2021 13:02:11 +0000 (15:02 +0200)]
Avoid an infinite loop in mml-expand-html-into-multipart-related
* lisp/gnus/mml.el (mml-expand-html-into-multipart-related):
Skip images with empty filename parts (bug#49001).
Eli Zaretskii [Sun, 13 Jun 2021 12:52:17 +0000 (15:52 +0300)]
; * src/fileio.c (Fsubstitute_in_file_name): Doc fix.
Lars Ingebrigtsen [Sun, 13 Jun 2021 12:49:01 +0000 (14:49 +0200)]
Reset the pulse face more fully in pulse-reset-face
* lisp/cedet/pulse.el (pulse-reset-face): Reset the :extend to nil
if there's no face given (bug#48936).
Eli Zaretskii [Sun, 13 Jun 2021 12:47:31 +0000 (15:47 +0300)]
Fix wording of recently added documentation
* etc/NEWS:
* lisp/simple.el (save-interprogram-paste-before-kill): Fix
wording of a recently added documentation. (Bug#41168)
Lars Ingebrigtsen [Sun, 13 Jun 2021 12:14:32 +0000 (14:14 +0200)]
Fsubstitute_in_file_name doc string clarification
* src/fileio.c (Fsubstitute_in_file_name): Mention that undefined
variables aren't replaced (as opposed to what happens in a shell
substitution) (bug#40949).