]> git.eshelyaron.com Git - emacs.git/log
emacs.git
4 years agoAvoid infloop in which-function-mode when a vc file has changed
Lars Ingebrigtsen [Sat, 17 Oct 2020 08:29:15 +0000 (10:29 +0200)]
Avoid infloop in which-function-mode when a vc file has changed

* lisp/vc/diff-mode.el (diff-find-source-location): Avoid warnings
when called from which-function-mode and the file has changed
(bug#42818).

4 years agoFix narrow-to-defun in f90-mode
Lars Ingebrigtsen [Sat, 17 Oct 2020 07:43:02 +0000 (09:43 +0200)]
Fix narrow-to-defun in f90-mode

* lisp/progmodes/f90.el (f90-beginning-of-subprogram): Make
narrow-to-defun work better (bug#44042).

4 years ago* admin/release-process: Add note to update files from upstream.
Stefan Kangas [Sat, 17 Oct 2020 00:06:26 +0000 (02:06 +0200)]
* admin/release-process: Add note to update files from upstream.

4 years ago* doc/lispref/variables.texi (Converting to Lexical Binding): New section
Stefan Monnier [Fri, 16 Oct 2020 19:24:15 +0000 (15:24 -0400)]
* doc/lispref/variables.texi (Converting to Lexical Binding): New section

Extract it from `Using Lexical Binding` and extend it a bit.

4 years ago* lisp/progmodes/python.el: Teach f-strings to `font-lock`
Stefan Monnier [Fri, 16 Oct 2020 18:03:59 +0000 (14:03 -0400)]
* lisp/progmodes/python.el: Teach f-strings to `font-lock`

(python--f-string-p, python--font-lock-f-strings): New functions.
(python-font-lock-keywords-maximum-decoration): Use them.

4 years agoindent-rigidly doc string clarification
Lars Ingebrigtsen [Fri, 16 Oct 2020 15:52:51 +0000 (17:52 +0200)]
indent-rigidly doc string clarification

* lisp/indent.el (indent-rigidly): Note that the command
deactivates the mark (bug#42842).

4 years ago; * doc/emacs/ack.texi (Acknowledgments): Tweak the purpose description.
Eli Zaretskii [Fri, 16 Oct 2020 15:42:22 +0000 (18:42 +0300)]
; * doc/emacs/ack.texi (Acknowledgments): Tweak the purpose description.

4 years agoMake erc expand the final abbrev
Lars Ingebrigtsen [Fri, 16 Oct 2020 15:36:20 +0000 (17:36 +0200)]
Make erc expand the final abbrev

* lisp/erc/erc.el (erc-send-current-line): Expand abbrevs at the
end of lines (bug#42854).

4 years agoMake last change in tramp-archive-tests.el backward compatible
Michael Albinus [Fri, 16 Oct 2020 14:51:25 +0000 (16:51 +0200)]
Make last change in tramp-archive-tests.el backward compatible

* test/lisp/net/tramp-archive-tests.el (ert-resource-directory-format)
(ert-resource-directory-trim-left-regexp)
(ert-resource-directory-trim-right-regexp, ert-resource-directory)
(ert-resource-file): Define if they don't exist.

4 years ago; A few more spelling fixes in Modus Theme docs.
Eli Zaretskii [Fri, 16 Oct 2020 14:32:04 +0000 (17:32 +0300)]
; A few more spelling fixes in Modus Theme docs.

4 years agoFix documentation of Modus Themes
Eli Zaretskii [Fri, 16 Oct 2020 14:29:38 +0000 (17:29 +0300)]
Fix documentation of Modus Themes

* doc/misc/modus-themes.texi (Install from the archives)
(No mixed fonts): Remove references to MELPA.
(How do the themes look like)
(Enable and load, Load automatically)
(Configure options prior to loading, Customisation Options)
(No mixed fonts, Command prompts, Mode line, Completion UIs)
(Fringes, Line highlighting, Matching parentheses, Diffs)
(Org mode blocks, Heading styles, Tweak colors (DIY))
(Org user faces (DIY), Supported packages)
(Will NOT be supported, Note for ERC escaped color sequences)
(Note on shr colors, Note for Helm grep)
(Note on vc-annotate-background-mode, Sources of the themes): Fix
spelling, wording, and markup.

4 years agoRevert "* doc/emacs/ack.texi (Acknowledgments): Remove now deleted files."
Eli Zaretskii [Fri, 16 Oct 2020 13:52:36 +0000 (16:52 +0300)]
Revert "* doc/emacs/ack.texi (Acknowledgments): Remove now deleted files."

This reverts commit 731a26bb50aabeb2c0512f0e45b3cda76029a590.

We don't support rewriting history!
People who contributed to Emacs development should have their
contributions remain acknowledged forever, even if the files
to which they contributed are deleted at some point.

4 years agoFix file-name problems in several tests
Eli Zaretskii [Fri, 16 Oct 2020 13:49:47 +0000 (16:49 +0300)]
Fix file-name problems in several tests

* test/lisp/saveplace-tests.el
(saveplace-test-forget-unreadable-files):  Use file-truename, to
avoid false negatives when file names are not 'equal' as strings,
but point to the same file.
* test/lisp/emacs-lisp/edebug-tests.el (edebug-tests-with-normal-env)
(edebug-tests-run-macro):
* test/lisp/emacs-lisp/testcover-tests.el
(testcover-tests-markup-region, testcover-tests-run-test-case):
Bind find-file-suppress-same-file-warnings to  a non-nil value, to
avoid warnings about "same-file-names", at least on MS-Windows,
due to 8+3 aliases.

4 years agoRemove some Emacs 19 compat code
Stefan Kangas [Fri, 16 Oct 2020 13:26:37 +0000 (15:26 +0200)]
Remove some Emacs 19 compat code

* lisp/type-break.el (type-break-time-stamp): Remove Emacs 19
compat code.

4 years agoRemove some references to Emacs 18 and 19
Stefan Kangas [Fri, 16 Oct 2020 13:14:31 +0000 (15:14 +0200)]
Remove some references to Emacs 18 and 19

* doc/misc/forms.texi (Modifying Forms Contents, Error Messages):
* lisp/arc-mode.el:
* lisp/emacs-lisp/edebug.el (edebug-temp-display-freq-count):
* lisp/type-break.el: Remove some references to Emacs 18 and 19.

4 years ago* doc/emacs/ack.texi (Acknowledgments): Remove now deleted files.
Stefan Kangas [Fri, 16 Oct 2020 12:08:31 +0000 (14:08 +0200)]
* doc/emacs/ack.texi (Acknowledgments): Remove now deleted files.

This is in line with an ack.texi comment that says to "Remove things
that are no longer distributed."  Most files in this list were removed
many years ago.

4 years agoFix building modus-themes Info manual
Stefan Kangas [Fri, 16 Oct 2020 12:58:51 +0000 (14:58 +0200)]
Fix building modus-themes Info manual

* doc/misc/Makefile.in (INFO_COMMON): Add modus-themes.
* doc/misc/modus-themes.texi: Adapt to fit Emacs conventions.

4 years agoUpdate modus-operandi, modus-vivendi to 0.13.0
Protesilaos Stavrou [Mon, 12 Oct 2020 06:11:00 +0000 (09:11 +0300)]
Update modus-operandi, modus-vivendi to 0.13.0

* etc/themes/modus-operandi-theme.el: Update to version 0.13.0.

* etc/themes/modus-vivendi-theme.el: Update to version 0.13.0.

* doc/misc/modus-themes.texi: Include new texinfo documentation for
modus-operandi and modus-vivendi themes.  (Bug#43944)

4 years ago* lisp/emacs-lisp/backquote.el: Use lexical binding.
Mattias Engdegård [Thu, 15 Oct 2020 16:44:39 +0000 (18:44 +0200)]
* lisp/emacs-lisp/backquote.el: Use lexical binding.

4 years ago; Revert some spelling fixes
Stefan Kangas [Fri, 16 Oct 2020 09:50:30 +0000 (11:50 +0200)]
; Revert some spelling fixes

The preference was to keep the alternative spelling here, to ensure
the documentation matches the name of the macros.
This reverts part of commit 95e8c7d1d9.
Ref: https://lists.gnu.org/r/emacs-devel/2020-10/msg00651.html

4 years agoUse new resource directory macros in tests (Bug#43792)
Stefan Kangas [Thu, 24 Sep 2020 00:05:58 +0000 (02:05 +0200)]
Use new resource directory macros in tests (Bug#43792)

* test/lisp/bookmark-tests.el (bookmark-tests-data-dir):
* test/lisp/calendar/todo-mode-tests.el (todo-test-data-dir):
* test/lisp/net/dbus-tests.el (dbus--tests-dir):
* test/lisp/emacs-lisp/edebug-tests.el
(edebug-tests-sample-code-file):
* test/lisp/emacs-lisp/package-tests.el
(package-test-fake-contents-file):
* test/lisp/emacs-lisp/shadow-tests.el (shadow-tests-data-directory):
* test/lisp/emacs-lisp/testcover-tests.el
(testcover-tests-file-dir, testcover-tests-test-cases):
* test/lisp/mail/uudecode-tests.el (uudecode-tests-data-dir):
* test/lisp/net/tramp-archive-tests.el
(tramp-archive-test-resource-directory):
* test/lisp/pcmpl-linux-tests.el (pcmpl-linux-tests-data-dir):
* test/lisp/progmodes/cperl-mode-tests.el
(cperl-mode-tests-data-directory):
* test/lisp/progmodes/flymake-tests.el
(flymake-tests-data-directory):
* test/lisp/progmodes/ruby-mode-tests.el (ruby-mode-tests-data-dir):
* test/lisp/saveplace-tests.el (saveplace-tests-dir):
* test/lisp/textmodes/css-mode-tests.el (css-mode-tests-data-dir):
Remove.

* test/lisp/bookmark-tests.el (bookmark-tests-bookmark-file)
(bookmark-tests-example-file, bookmark-tests-bookmark-file-list):
* test/lisp/calendar/todo-mode-tests.el (todo-test-file-1)
(todo-test-archive-1, with-todo-test, todo-test--add-file):
* test/lisp/custom-tests.el (custom--test-theme-variables):
* test/lisp/net/dbus-tests.el (dbus--test-introspect):
* test/lisp/emacs-lisp/edebug-tests.el (edebug-tests-setup-code-file):
* test/lisp/emacs-lisp/package-tests.el (package-test-data-dir)
(package-test-desc-from-buffer, package-test-install-single)
(package-test-macro-compilation)
(package-test-install-prioritized)
(package-test-install-multifile, package-test-update-archives)
(package-test-update-archives-async)
(package-test-update-archives/ignore-nil-entry)
(package-test-signed, package-x-test-upload-buffer)
(package-x-test-upload-new-version):
* test/lisp/emacs-lisp/shadow-tests.el (shadow-case-insensitive):
* test/lisp/emacs-lisp/testcover-tests.el
(testcover-tests-build-test-cases):
* test/lisp/mail/uudecode-tests.el (uudecode-tests-encoded-str)
(uudecode-tests-decoded-str):
* test/lisp/net/tramp-archive-tests.el
(tramp-archive-test-file-archive)
(tramp-archive-test-directory):
* test/lisp/pcmpl-linux-tests.el (pcmpl-linux-test-fs-types)
(pcmpl-linux-test-mounted-directories):
* test/lisp/progmodes/cperl-mode-tests.el (cperl-mode-test-bug-10483)
(cperl-mode-test-indent-styles):
* test/lisp/progmodes/flymake-tests.el
(flymake-tests--call-with-fixture):
* test/lisp/progmodes/ruby-mode-tests.el
(ruby--indent/converted-from-manual-test):
* test/lisp/saveplace-tests.el
(saveplace-test-save-place-to-alist/dir)
(saveplace-test-load-alist-from-file):
* test/lisp/textmodes/css-mode-tests.el (css-mode-test-indent): Adjust
to use new resource directory macros.

4 years agoAdd ert macros to get resource file names (Bug#43792)
Stefan Kangas [Wed, 23 Sep 2020 21:06:02 +0000 (23:06 +0200)]
Add ert macros to get resource file names (Bug#43792)

* lisp/emacs-lisp/ert-x.el (subr-x): Require.
(ert-resource-dir, ert-resource-file): New macros to get the file name
of the resource directory belonging to a test.
(ert-resource-dir-format, ert-resource-dir-trim-left-regexp)
(ert-resource-dir-trim-right-regexp): New variables.

4 years agoFix previous gnus-icalendar sanitization
Lars Ingebrigtsen [Fri, 16 Oct 2020 08:46:14 +0000 (10:46 +0200)]
Fix previous gnus-icalendar sanitization

* lisp/gnus/gnus-icalendar.el (gnus-icalendar-event-from-ical):
Fix previous change -- respect nil values passed in.

4 years agoAdjust some tests so that they work in symlinked environs
Stephen Berman [Fri, 16 Oct 2020 08:33:19 +0000 (10:33 +0200)]
Adjust some tests so that they work in symlinked environs

* test/lisp/help-fns-tests.el (help-fns-test-lisp-macro)
(help-fns-test-lisp-defsubst):
* test/lisp/emacs-lisp/cl-generic-tests.el
(cl-generic-tests--method-files--finds-methods): Adjust test so
that they work in a symlinked environment (bug#43004).
(cl-generic-tests--method-files--finds-methods): Use file-truename
so that this works in a symlinked environment (bug#43004).

4 years agoSanitize ical data in gnus-icalendar-event-from-ical
Lars Ingebrigtsen [Fri, 16 Oct 2020 08:16:31 +0000 (10:16 +0200)]
Sanitize ical data in gnus-icalendar-event-from-ical

* lisp/gnus/gnus-icalendar.el (gnus-icalendar-event-from-ical):
Sanitise the data before passing it on to the constructor.  This
avoids backtraces on icals with extra, unknown slots (bug#43057).

4 years agoSubstitute command keys in button help-echo values
Basil L. Contovounesios [Fri, 16 Oct 2020 07:32:48 +0000 (09:32 +0200)]
Substitute command keys in button help-echo values

* lisp/button.el (button--help-echo): Pass resulting string through
substitute-command-keys for consistency with show-help-function.
* test/lisp/button-tests.el (button-tests--map): New test keymap.
(button--help-echo-string, button--help-echo-form)
(button--help-echo-function): Use it to test command key
substitution in help-echo strings (bug#43070).

4 years agoMake package-install-from-buffer maybe refresh the quickstart file
Lars Ingebrigtsen [Fri, 16 Oct 2020 07:10:05 +0000 (09:10 +0200)]
Make package-install-from-buffer maybe refresh the quickstart file

* lisp/emacs-lisp/package.el (package-install-from-buffer):
Refresh the quickstart file (bug#43237).  This makes this command
more consistent with package-install.

4 years agodiff-update-on-the-fly doc string clarification
Lars Ingebrigtsen [Fri, 16 Oct 2020 06:46:07 +0000 (08:46 +0200)]
diff-update-on-the-fly doc string clarification

* lisp/vc/diff-mode.el (diff-update-on-the-fly): Mention what the
nil value does (bug#43297).

4 years agoRestore vc-revision-other-window buffer-changing behaviour
Lars Ingebrigtsen [Fri, 16 Oct 2020 06:36:21 +0000 (08:36 +0200)]
Restore vc-revision-other-window buffer-changing behaviour

* lisp/vc/vc.el (vc-revision-other-window): This function used to
change the current buffer, but this was changed in the previous
patch for indirect buffer support.  Ensure that it still does
this, because this is what the callers expect (bug#44026).

4 years agoDoc string clarification for keep-lines
Lars Ingebrigtsen [Fri, 16 Oct 2020 05:36:08 +0000 (07:36 +0200)]
Doc string clarification for keep-lines

* lisp/replace.el (keep-lines): Note that REND isn't optional if
RSTART is given (bug#44021).

4 years agoAdd a new variable to control Gnus Agent caching
Lars Ingebrigtsen [Fri, 16 Oct 2020 05:21:05 +0000 (07:21 +0200)]
Add a new variable to control Gnus Agent caching

* doc/misc/gnus.texi (Agent Variables): Document it.

* lisp/gnus/gnus-art.el (gnus-request-article-this-buffer): Ditto.

* lisp/gnus/gnus-async.el (gnus-async-article-callback): Use it.

* lisp/gnus/gnus.el (gnus-agent-eagerly-store-articles): New variable.

Includes work from Madhu <enometh@meer.net>.

4 years agoAdd way to prevent asking "increase specpdl size?"
Richard M Stallman [Fri, 16 Oct 2020 02:32:41 +0000 (22:32 -0400)]
Add way to prevent asking "increase specpdl size?"

* net/shr.el (shr-offer-extend-specpdl): New option, default t.
(shr-descend): If shr-offer-extend-specpdl is nil, don't even ask
whether to extend the specpdl, just signal error.

4 years ago* lisp/emacs-lisp/warnings.el (display-warning): Don't be so negative
Stefan Monnier [Thu, 15 Oct 2020 18:34:12 +0000 (14:34 -0400)]
* lisp/emacs-lisp/warnings.el (display-warning): Don't be so negative

4 years agoDon't display the warning buttons in bytecomp buffers
Lars Ingebrigtsen [Thu, 15 Oct 2020 16:36:26 +0000 (18:36 +0200)]
Don't display the warning buttons in bytecomp buffers

* lisp/emacs-lisp/warnings.el (display-warning): Don't do the
buttons in bytecomp buffers.

4 years agoMake hi-lock-face-buffer more resilient
Lars Ingebrigtsen [Thu, 15 Oct 2020 15:45:12 +0000 (17:45 +0200)]
Make hi-lock-face-buffer more resilient

* lisp/hi-lock.el (hi-lock-face-buffer): If given a face name a
string, convert it to a symbol first, as later usage of this
expects a symbol and not a string (bug#43339).

4 years agoAdd some references to the microdocs in the comments in cperl-mode
Lars Ingebrigtsen [Thu, 15 Oct 2020 15:10:41 +0000 (17:10 +0200)]
Add some references to the microdocs in the comments in cperl-mode

* lisp/progmodes/cperl-mode.el: Tell the people reading the
comments how to read the docs explicitly (bug#1621).

4 years agoSearch harder for file name matches in *compilation* buffers
David Engster [Thu, 15 Oct 2020 14:47:44 +0000 (16:47 +0200)]
Search harder for file name matches in *compilation* buffers

* lisp/progmodes/compile.el (compilation-find-file): Use it (bug#14411).
(compilation-search-all-directories): New variable.

4 years agoMake `C-x C-e' work more like `C-M-x' on defvar etc
Lars Ingebrigtsen [Thu, 15 Oct 2020 14:26:40 +0000 (16:26 +0200)]
Make `C-x C-e' work more like `C-M-x' on defvar etc

* doc/emacs/building.texi (Lisp Eval): Document it.

* lisp/emacs-lisp/pp.el (pp-eval-last-sexp): Ditto.

* lisp/progmodes/elisp-mode.el (elisp--eval-last-sexp): Work more
like `eval-defun': Re-evaluate defvar/defcustom/defface forms.

4 years ago* doc/misc/efaq.texi: Remove reference to FTP.
Stefan Kangas [Thu, 15 Oct 2020 13:03:42 +0000 (15:03 +0200)]
* doc/misc/efaq.texi: Remove reference to FTP.

4 years agoRemove some references to "in Emacs 21 or later"
Stefan Kangas [Thu, 15 Oct 2020 13:00:05 +0000 (15:00 +0200)]
Remove some references to "in Emacs 21 or later"

* doc/misc/efaq.texi (Colors on a TTY, Disabling backups)
(Errors with init files, Backspace invokes help)
(Backspace invokes help): Remove some references to "in Emacs 21 or
later".  Now everyone can be assumed to use at least that version.

4 years agoMove emacsclient.1 file history further down
Stefan Kangas [Thu, 15 Oct 2020 12:49:23 +0000 (14:49 +0200)]
Move emacsclient.1 file history further down

* doc/man/emacsclient.1: Move file history further down; it doesn't
need to be prominently displayed in the introductory paragraph.

4 years agoFix undefined function in project-compile
Lars Ingebrigtsen [Thu, 15 Oct 2020 11:20:22 +0000 (13:20 +0200)]
Fix undefined function in project-compile

* lisp/progmodes/project.el (project-compile): Require compile.el
before using functions from the file (bug#44009).

4 years agoRemove dynamic declaration of 'save-match-data-internal'
Mattias Engdegård [Thu, 15 Oct 2020 09:46:49 +0000 (11:46 +0200)]
Remove dynamic declaration of 'save-match-data-internal'

* lisp/subr.el: Remove defvar which has no relevance today; it can
very well be a lexical variable.

4 years agoFix segfault in xwidget when there is no title
Jeff Walsh [Thu, 15 Oct 2020 07:55:29 +0000 (09:55 +0200)]
Fix segfault in xwidget when there is no title

* src/xwidget.c (Fxwidget_webkit_title): Pass emptry string when no
title is returned (bug#43989).

4 years agoFix problem with next-error-message-highlight in *Occur*
Lars Ingebrigtsen [Thu, 15 Oct 2020 07:17:45 +0000 (09:17 +0200)]
Fix problem with next-error-message-highlight in *Occur*

* lisp/simple.el (next-error-message-highlight): This function is
called directly, so clean up the code a bit (bug#32676).
(next-error-found): Pass in the error buffer.

4 years agoFix NEWS item for C-h R
Lars Ingebrigtsen [Thu, 15 Oct 2020 06:55:27 +0000 (08:55 +0200)]
Fix NEWS item for C-h R

4 years agoMake Gnus more liberal when interpreting Face headers again
Lars Ingebrigtsen [Thu, 15 Oct 2020 06:39:00 +0000 (08:39 +0200)]
Make Gnus more liberal when interpreting Face headers again

* lisp/gnus/gnus-fun.el (gnus-convert-face-to-png): Do it.

* lisp/gnus/gnus-util.el (gnus-base64-repad): Allow not checking
anything, but just repadding.

4 years agoClarify wording
Richard M Stallman [Wed, 14 Oct 2020 23:17:48 +0000 (19:17 -0400)]
Clarify wording

Clarify doc string of line-to-top-of-window.

4 years agoHandle retrying of MIME failure messages
Richard M Stallman [Wed, 14 Oct 2020 23:11:20 +0000 (19:11 -0400)]
Handle retrying of MIME failure messages

* rmail.el (rmail-retry-failure): Handle retrying of MIME failure messages.

4 years agoHandle encrypting mime parts
Richard M Stallman [Wed, 14 Oct 2020 23:10:02 +0000 (19:10 -0400)]
Handle encrypting mime parts

* epa-mail.el (epa-mail-encrypt): Insert any encoded mime parts
that are queued up to insert before sending the message.

4 years ago* lisp/calc: Fix a few issues introduced by lexical scoping
Stefan Monnier [Wed, 14 Oct 2020 22:03:52 +0000 (18:03 -0400)]
* lisp/calc: Fix a few issues introduced by lexical scoping

Fix a few places I missed, where we incorrectly used lexical scoping on a var
that needed dynamic scoping.
These were detected thanks to a bit of footwork by Mattias Engdegård!

* lisp/calc/calc-ext.el (math-read-big-lines): Declare as dynbound.
(math-read-big-bigp): Bind it inside a `let`.
* lisp/calc/calc-graph.el (math-arglist): Declare as dynbound.
* lisp/calc/calc-map.el (math-arglist): Declare as dynbound.
* lisp/calc/calc-misc.el (math-trunc-prec): Declare as dynbound.
(math-trunc): Bind it inside a `let`.
(math-floor-prec): Declare as dynbound.
(math-floor): Bind it inside a `let`.
* lisp/calc/calc-nlfit.el (calc-curve-varnames, calc-curve-coefnames):
Declare as dynbound.
* lisp/calc/calc-sel.el (math-comp-sel-tag): Declare as dynbound.
* lisp/calc/calcsel2.el (calc-sel-reselect): Declare as dynbound.

4 years agoFix layout of custom-face-edit widget
Andreas Schwab [Wed, 14 Oct 2020 19:52:57 +0000 (21:52 +0200)]
Fix layout of custom-face-edit widget

* lisp/cus-edit.el (custom-face-edit): Add :format to group
widget.  (Bug#43977)

4 years agoHighlight regexp sub-expressions in query-replace
Juri Linkov [Wed, 14 Oct 2020 08:56:23 +0000 (11:56 +0300)]
Highlight regexp sub-expressions in query-replace

* lisp/replace.el (query-replace-highlight-submatches): New defcustom.
(replace-submatches-overlays): New variable.
(replace-highlight): Use query-replace-highlight-submatches.
(replace-dehighlight): Use query-replace-highlight-submatches.

* doc/emacs/search.texi (Query Replace):
Add documentation for query-replace-highlight-submatches.

Suggested by Drew Adams <drew.adams@oracle.com> in bug#43702.

4 years ago* lisp/progmodes/grep.el: More fixes for 'lgrep' (bug#23590)
Juri Linkov [Wed, 14 Oct 2020 08:45:26 +0000 (11:45 +0300)]
* lisp/progmodes/grep.el: More fixes for 'lgrep' (bug#23590)

* lisp/progmodes/grep.el (grep-expand-template): Add new arg 'more-opts'.
(grep-use-directories-skip): New variable.
(lgrep): Set 'grep-use-directories-skip' to the result of 'grep-probe'.
Use "--directories=skip" when 'grep-use-directories-skip' is t.

4 years agoAdd option to highlight the 'next-error' error message
Ernesto Alfonso [Wed, 14 Oct 2020 05:45:21 +0000 (07:45 +0200)]
Add option to highlight the 'next-error' error message

* lisp/simple.el (next-error-message-highlight):
(next-error-message): New faces (bug#32676).
(next-error--message-highlight-overlay): New internal variable.
(next-error-message-highlight): New function.
(next-error-found): Call the function.

4 years agoAdd a new variable tab-first-completion
Alex Branham [Wed, 14 Oct 2020 05:26:58 +0000 (07:26 +0200)]
Add a new variable tab-first-completion

* doc/emacs/indent.texi (Indent Convenience): Mention it.

* doc/lispref/text.texi (Mode-Specific Indent): Document it.

* lisp/indent.el (tab-first-completion): New variable (bug#34787).
(indent-for-tab-command): Use it.

4 years agoRename dired-filename-at-point to avoid confusion
Lars Ingebrigtsen [Wed, 14 Oct 2020 05:01:46 +0000 (07:01 +0200)]
Rename dired-filename-at-point to avoid confusion

* lisp/dired-x.el (dired-x-guess-filename-at-point): Rename (bug#43961).
(dired-filename-at-point): Made into an obsolete alias, since the name
can be confused with the unrelated dired-file-name-at-point function.

4 years agoMark the return value from strerror as a constant
Philipp Klaus Krause [Wed, 14 Oct 2020 04:19:33 +0000 (06:19 +0200)]
Mark the return value from strerror as a constant

* src/emacs.c (main): Mark the return from strerror as a constant,
since it shouldn't be changed (bug#43982).

* lib-src/movemail.c (pfatal_and_delete): Ditto.

Copyright-paperwork-exempt: yes

4 years agoImprove package install/delete button action
Masahiro Nakamura [Wed, 14 Oct 2020 04:14:33 +0000 (06:14 +0200)]
Improve package install/delete button action

* lisp/emacs-lisp/package.el (package-install-button-action)
(package-delete-button-action): Run describe-package instead of
revert-buffer in order to use newer package-desc (bug#43983).

4 years agoFix name of the module .h files in the comments
Lars Ingebrigtsen [Wed, 14 Oct 2020 03:57:55 +0000 (05:57 +0200)]
Fix name of the module .h files in the comments

* src/emacs-module.c: Fix the name of the .h file in the comments.

4 years agoMove the new module unibyte function to the correct module-env.h file
Lars Ingebrigtsen [Wed, 14 Oct 2020 03:57:05 +0000 (05:57 +0200)]
Move the new module unibyte function to the correct module-env.h file

* src/module-env-28.h: Moved here from the -25.h file.

4 years ago* etc/NEWS (Calc): Note new precedence of '/' in TeX input mode.
Mattias Engdegård [Tue, 13 Oct 2020 18:01:51 +0000 (20:01 +0200)]
* etc/NEWS (Calc): Note new precedence of '/' in TeX input mode.

4 years agonnimap MODSEQ cleanup
Paul Eggert [Tue, 13 Oct 2020 17:21:40 +0000 (10:21 -0700)]
nnimap MODSEQ cleanup

* lisp/gnus/nnimap.el (nnimap-parse-flags):
Remove old hack that deletes MODSEQ entries in the buffer, as
Emacs now has bignums and so won't misparse MODSEQs (Bug#38938).

4 years agoeql doc improvements
Paul Eggert [Tue, 13 Oct 2020 17:04:21 +0000 (10:04 -0700)]
eql doc improvements

* doc/lispref/numbers.texi (Comparison of Numbers):
Copy some useful text from eql help string.
* src/fns.c (Feql): In doc string, say that eql also compares
integers by value.

4 years agoFix documentation of Outline cycling commands
Eli Zaretskii [Tue, 13 Oct 2020 16:39:11 +0000 (19:39 +0300)]
Fix documentation of Outline cycling commands

* lisp/outline.el (outline-mode-map): Fix wording of a comment.

* doc/emacs/text.texi (Outline Visibility): Fix wording and markup
of a recently added paragraph.  Improve indexing.

* etc/NEWS: Fix whitespace of a recently added entry.

4 years ago* etc/NEWS: Mention 'make_unibyte_string'; reformat modules entries.
Eli Zaretskii [Tue, 13 Oct 2020 16:30:31 +0000 (19:30 +0300)]
* etc/NEWS: Mention 'make_unibyte_string'; reformat modules entries.

4 years agoCalc: allow infinite binary word size (bug#43764)
Mattias Engdegård [Sat, 10 Oct 2020 16:02:49 +0000 (18:02 +0200)]
Calc: allow infinite binary word size (bug#43764)

Setting the word size ("b w") to 0 removes the word size clipping for
all bit operations (effectively as if a word size of -∞ had been set).
Rotation is disallowed; logical and arithmetic shifts behave
identically.

After a suggestion by Vincent Belaïche.

* lisp/calc/calc-bin.el (calc-word-size, math-binary-arg)
(math-binary-modulo-args, calcFunc-lsh, calcFunc-ash, calcFunc-rot)
(math-clip, math-format-twos-complement): Allow a word size of 0,
meaning -∞.
* test/lisp/calc/calc-tests.el
(calc-tests--not, calc-tests--and, calc-tests--or, calc-tests--xor)
(calc-tests--diff): New functions.
(calc-tests--clip, calc-tests--rot, calc-shift-binary): Extend to
cover word size 0.
(calc-bit-ops): New test.
* doc/misc/calc.texi (Binary Functions): Update manual.
* etc/NEWS: Announce the change.

4 years agoCalc: revert to old precedence of '/' in (La)TeX input mode
Mattias Engdegård [Sun, 11 Oct 2020 16:28:39 +0000 (18:28 +0200)]
Calc: revert to old precedence of '/' in (La)TeX input mode

Make the '/' precedence higher than that of '+' and '-' again,
partially reverting fda9b316f84 (bug#43902).

* lisp/calc/calc-lang.el (tex): Change precedence of '/'.
* test/lisp/calc/calc-tests.el (calc-latex-input): New test.

4 years agoCalc: make tests less chatty
Mattias Engdegård [Sun, 11 Oct 2020 09:24:03 +0000 (11:24 +0200)]
Calc: make tests less chatty

* test/lisp/calc/calc-tests.el (calc-extract-units, calc-convert-units)
(calc-matrix-determinant, calc-choose): Remove "Working..." messages.
(calc-tests--check-choose, calc-tests--explain-choose): Eliminate.

4 years agoAllow creating unibyte strings from Emacs modules
Lars Ingebrigtsen [Tue, 13 Oct 2020 04:51:06 +0000 (06:51 +0200)]
Allow creating unibyte strings from Emacs modules

* doc/lispref/internals.texi (Module Values): Document
make_unibyte_string (bug#34873).

* src/emacs-module.c (module_make_unibyte_string): New function.
(initialize_environment): Export it.

* src/module-env-25.h: Define it.

* test/data/emacs-module/mod-test.c (Fmod_test_return_unibyte):
Test it.

* test/src/emacs-module-tests.el (module/unibyte): Test it.

4 years agoPartially revert previous patch to emacs.service
Lars Ingebrigtsen [Tue, 13 Oct 2020 03:48:13 +0000 (05:48 +0200)]
Partially revert previous patch to emacs.service

* etc/emacs.service (ExecStop): Partially revert previous patch
for bug#37847, since: "This appears to break packages that rely on
`invocation-name' to be executable."

4 years agoAdd cycling commands to outline
Yuan Fu [Tue, 13 Oct 2020 03:14:21 +0000 (05:14 +0200)]
Add cycling commands to outline

* lisp/outline.el (outline--cycle-state, outline-has-subheading-p)
(outline-cycle, outline-cycle-buffer): New functions.
(outline-mode-map): Add key bindings for the two new commands.
(outline--cycle-buffer-state): New variable.
* doc/emacs/text.text (Outline Visibility): Add 'outline-cycle' and
'outline-cycle-buffer'.
* etc/NEWS (Outline): Record the change (bug#41130).

4 years agoMake read-char-choice less modal
Lars Ingebrigtsen [Tue, 13 Oct 2020 02:59:11 +0000 (04:59 +0200)]
Make read-char-choice less modal

* lisp/subr.el (read-char-choice): Use `read-char-from-minibuffer'
here (bug#42708) so that we're not as modal (and users can copy
the help buffer, if they should so want).

4 years agoMake diary fontify headers correctly (if the date has been customized)
Lars Ingebrigtsen [Tue, 13 Oct 2020 02:10:43 +0000 (04:10 +0200)]
Make diary fontify headers correctly (if the date has been customized)

* lisp/calendar/diary-lib.el (diary-fancy-display): Insert the
heading with the correct face, so that it doesn't have to be
re-matched later (which is generally impossible) (bug#13072).
(diary-fancy-date-pattern, diary-fancy-date-matcher): Make obsolete.
(diary-fancy-font-lock-keywords): Don't use.
(diary-fancy-font-lock-fontify-region-function): Don't use.

4 years agoDon't bind sort-fold-case when saving the custom-file
Mauro Aranda [Tue, 13 Oct 2020 01:32:17 +0000 (03:32 +0200)]
Don't bind sort-fold-case when saving the custom-file

* lisp/cus-edit.el (custom-save-variables, custom-save-faces): These
functions sort a list, not buffer text, so they don't need
to use sort-fold-case at all.  Remove the let-binding for
sort-fold-case (bug#43919).

4 years agoHave header-line-highlight inherit from mode-line-highlight
Lars Ingebrigtsen [Tue, 13 Oct 2020 01:25:36 +0000 (03:25 +0200)]
Have header-line-highlight inherit from mode-line-highlight

* lisp/faces.el (header-line-highlight): Inherit from
mode-line-highlight instead of highlight (bug#43926).  This is
consistent with header-line inheriting from mode-line.

4 years agomessage-insert-signature doc fix
Lars Ingebrigtsen [Tue, 13 Oct 2020 01:17:12 +0000 (03:17 +0200)]
message-insert-signature doc fix

* lisp/gnus/message.el (message-insert-signature): Clarify what
FORCE means.

4 years agoAdd a keybinding to the help menu to display manuals
Boruch Baum [Tue, 13 Oct 2020 01:09:19 +0000 (03:09 +0200)]
Add a keybinding to the help menu to display manuals

* lisp/help.el (help-for-help-internal): Add a keybinding to
prompt for and display a manual (bug#43956).

4 years ago* lisp/isearch.el (isearch-search): Set isearch-match-data in the right place.
Juri Linkov [Mon, 12 Oct 2020 19:56:35 +0000 (22:56 +0300)]
* lisp/isearch.el (isearch-search): Set isearch-match-data in the right place.

4 years agoFix man page title lines and timestamps
Stefan Kangas [Mon, 12 Oct 2020 18:59:14 +0000 (20:59 +0200)]
Fix man page title lines and timestamps

* doc/man/ebrowse.1:
* doc/man/emacs.1.in:
* doc/man/emacsclient.1:
* doc/man/etags.1: Update date to match last significant change.  Set
file local variable time-stamp-pattern.  Fix title line to match the
recommendations in "man man-pages".
Ref: https://lists.gnu.org/r/emacs-devel/2020-09/msg01002.html

4 years ago; Fix dbus-tests.el formatting
Michael Albinus [Mon, 12 Oct 2020 09:41:54 +0000 (11:41 +0200)]
; Fix dbus-tests.el formatting

4 years agoAdd interface arg to D-Bus PropertiesChanged signal.
Hugh Daschbach [Mon, 12 Oct 2020 09:37:27 +0000 (11:37 +0200)]
Add interface arg to D-Bus PropertiesChanged signal.

* lisp/net/dbus.el (dbus-register-property, dbus-property-handler):
Fix signal generation.  (Bug#43936)

* test/lisp/net/dbus-tests.el (dbus-test06-register-property-emits-signal):
Fix test.

4 years ago* lisp/proced.el: Fix behavior with variable-pitch `header-line` face
Stefan Monnier [Sun, 11 Oct 2020 22:21:48 +0000 (18:21 -0400)]
* lisp/proced.el: Fix behavior with variable-pitch `header-line` face

Also, use lexical-scoping.  Remove redundant `:group` args.
(proced-process-alist, proced-header-line): Use `defvar-local`
(proced-header-line): Put :align-to on spaces to improve result with
variable-pitch header-line face.
(proced-filter, proced-format): Use a closure instead of `(lambda ...).

4 years agoAdd a reference to the shortdoc command in the Emacs manual
Lars Ingebrigtsen [Sun, 11 Oct 2020 22:07:58 +0000 (00:07 +0200)]
Add a reference to the shortdoc command in the Emacs manual

* doc/emacs/help.texi (Name Help): Mention shortdoc.

4 years agoAdd a shortdoc menu entry
Lars Ingebrigtsen [Sun, 11 Oct 2020 22:03:15 +0000 (00:03 +0200)]
Add a shortdoc menu entry

* lisp/menu-bar.el (menu-bar-describe-menu): Add a shortdoc menu
entry.

4 years agoFix error in file shortdoc group
Lars Ingebrigtsen [Sun, 11 Oct 2020 21:51:22 +0000 (23:51 +0200)]
Fix error in file shortdoc group

* lisp/emacs-lisp/shortdoc.el (number): Add some more numeric
stuff (and clean up some arglists).

4 years ago* lisp/hexl.el: Fix behavior with variable-pitch `header-line` face
Stefan Monnier [Sun, 11 Oct 2020 21:08:25 +0000 (17:08 -0400)]
* lisp/hexl.el: Fix behavior with variable-pitch `header-line` face

(hexl-ascii-region): Don't inherit from the `header-line`.
(hexl-font-lock-keywords): Fix text alignment.
(hexl-mode): Set `font-lock-extra-managed-props` accordingly.

4 years agoFix GNUstep build
Alan Third [Sun, 11 Oct 2020 19:46:07 +0000 (20:46 +0100)]
Fix GNUstep build

Fix mistakes made when removing Cocoa code from nsfont.m.

* src/nsfont.m (nsfont_draw): Remove spurious #ifdef.
(ns_uni_to_glyphs): The #if/#endif was removed from this code, but the
code itself not removed.  Remove it now.

4 years ago* lisp/tooltip.el: Remove redundant :group args.
Stefan Kangas [Sun, 11 Oct 2020 17:36:41 +0000 (19:36 +0200)]
* lisp/tooltip.el: Remove redundant :group args.

4 years ago* lisp/tooltip.el: Use lexical-binding.
Stefan Kangas [Sun, 11 Oct 2020 17:35:37 +0000 (19:35 +0200)]
* lisp/tooltip.el: Use lexical-binding.

4 years ago; * lisp/help-fns.el (help-fns-describe-function-functions): Fix typo.
Stefan Kangas [Sun, 11 Oct 2020 17:32:55 +0000 (19:32 +0200)]
; * lisp/help-fns.el (help-fns-describe-function-functions): Fix typo.

4 years agoImprove documentation of shortdoc features
Eli Zaretskii [Sun, 11 Oct 2020 14:28:40 +0000 (17:28 +0300)]
Improve documentation of shortdoc features

* lisp/help-fns.el (help-fns-describe-function-functions): Doc
fix.
* lisp/emacs-lisp/shortdoc.el (define-short-documentation-group)
(shortdoc-display-group, shortdoc-add-function): Doc fixes.

* doc/lispref/help.texi (Documentation Groups): Improve the
recently-added documentation and the indexing.

4 years ago* lisp/url/url-domsuf.el: Use lexical-binding.
Stefan Kangas [Sun, 11 Oct 2020 13:58:06 +0000 (15:58 +0200)]
* lisp/url/url-domsuf.el: Use lexical-binding.

4 years agoConvert url-domsuf.el tests to ert
Stefan Kangas [Sun, 11 Oct 2020 13:55:18 +0000 (15:55 +0200)]
Convert url-domsuf.el tests to ert

* lisp/url/url-domsuf.el: Move commented out tests from here...
* test/lisp/url/url-domsuf-tests.el: ...to this new file.

4 years agoUpdate publicsuffix.txt from upstream
Stefan Kangas [Sun, 11 Oct 2020 13:03:11 +0000 (15:03 +0200)]
Update publicsuffix.txt from upstream

* etc/publicsuffix.txt: Update from
https://publicsuffix.org/list/public_suffix_list.dat
dated 2020-10-09 08:23:34 UTC.

4 years agoAdd more numeric shortdocs
Lars Ingebrigtsen [Sun, 11 Oct 2020 10:30:38 +0000 (12:30 +0200)]
Add more numeric shortdocs

* lisp/emacs-lisp/shortdoc.el (shortdoc-section)
(shortdoc-example): Lighten up colours on light backgrounds.

4 years agoTweak shortdoc colours on light backgrounds
Lars Ingebrigtsen [Sun, 11 Oct 2020 10:12:47 +0000 (12:12 +0200)]
Tweak shortdoc colours on light backgrounds

* lisp/emacs-lisp/shortdoc.el (shortdoc-section)
(shortdoc-example): Lighten up colours on light backgrounds.

4 years agoAutoload shortdoc command and adjust NEWS
Lars Ingebrigtsen [Sun, 11 Oct 2020 10:05:55 +0000 (12:05 +0200)]
Autoload shortdoc command and adjust NEWS

* lisp/emacs-lisp/shortdoc.el (shortdoc-display-group): Autoload.

4 years agoUse Unicode arrows in shortdoc results
Lars Ingebrigtsen [Sun, 11 Oct 2020 09:21:48 +0000 (11:21 +0200)]
Use Unicode arrows in shortdoc results

* lisp/emacs-lisp/shortdoc.el (shortdoc--display-function): Use
Unicode arrows if possible.

4 years agoDon't boldify the flyspell language indicator in the mode line
Lars Ingebrigtsen [Sun, 11 Oct 2020 05:50:10 +0000 (07:50 +0200)]
Don't boldify the flyspell language indicator in the mode line

* lisp/textmodes/flyspell.el (flyspell-mode): Don't boldify the
language part -- it draws too much attention in the minor mode list.