]> git.eshelyaron.com Git - emacs.git/log
emacs.git
4 years agodns-mode-soa-auto-increment-serial: safe if symbolp
Stephen Gildea [Tue, 28 Jan 2020 05:28:21 +0000 (21:28 -0800)]
dns-mode-soa-auto-increment-serial: safe if symbolp

* lisp/textmodes/dns-mode.el (dns-mode-soa-auto-increment-serial):
Mark variable as safe as a file local variable when symbolp.

4 years ago* lisp/wdired.el: Clean out isearch-filter-predicate (bug#37496)
Juri Linkov [Tue, 28 Jan 2020 00:11:59 +0000 (02:11 +0200)]
* lisp/wdired.el: Clean out isearch-filter-predicate (bug#37496)

* lisp/wdired.el (wdired-change-to-dired-mode): Use remove-function to
remove wdired-isearch-filter-read-only (whose value was added in
wdired-change-to-wdired-mode) from local value of isearch-filter-predicate.

4 years ago; Spelling and URL fixes
Paul Eggert [Mon, 27 Jan 2020 19:30:10 +0000 (11:30 -0800)]
; Spelling and URL fixes

4 years agoFinish the documentation for c-noise-macro-{,with-parens-}names.
Alan Mackenzie [Mon, 27 Jan 2020 18:10:34 +0000 (18:10 +0000)]
Finish the documentation for c-noise-macro-{,with-parens-}names.

The doc strings and pertinent CC Mode manual page failed to mention that these
variables could also be regular expressions.  Amend them.

* lisp/progmodes/cc-vars.el (c-noise-macro-names)
(c-noise-macro-with-parens-names): Amend the doc strings.

* doc/misc/cc-mode.texi (Noise Macros): Amend the descriptions of the two
variables.

4 years agoCorrect regexp for flags in `format' doc string
Mattias Engdegård [Sun, 26 Jan 2020 18:04:31 +0000 (10:04 -0800)]
Correct regexp for flags in `format' doc string

* src/editfns.c (Fformat): Use the correct regexp for describing the
flags in a %-sequence (place the hyphen last).

4 years agoModerate recommendation to escape '(' in doc strings
Mattias Engdegård [Sat, 25 Jan 2020 15:16:37 +0000 (16:16 +0100)]
Moderate recommendation to escape '(' in doc strings

Thanks to 57e2ca5c50 and related changes, opening brackets at the
leftmost column inside doc strings are no longer mistaken for the
start of a defun.

* doc/lispref/tips.texi (Documentation Tips): Clarify recommendation
and move it down the list.
* etc/NEWS: Announce.

4 years agoObjective C Mode: Make c-forward-type work with "unsigned long", etc.
Alan Mackenzie [Sun, 26 Jan 2020 13:01:58 +0000 (13:01 +0000)]
Objective C Mode: Make c-forward-type work with "unsigned long", etc.

This allows the correct fontification of and correct functioning of C-c C-z
(c-display-defun-name) in ns_get_pixel in Emacs's src/nsimage.m.

* lisp/progmodes/cc-langs.el (c-primitive-type-prefix-kwds): For objc, use the
same value as for c and c++ rather than the default nil.

4 years agoFix help text about configure module support
Marco Wahl [Sun, 26 Jan 2020 09:06:09 +0000 (01:06 -0800)]
Fix help text about configure module support

4 years ago* doc/lispref/streams.texi (Output Functions): Improve indexing.
Stefan Kangas [Sat, 25 Jan 2020 03:55:51 +0000 (04:55 +0100)]
* doc/lispref/streams.texi (Output Functions): Improve indexing.

4 years agoImprove doc string of 'newline'
Stefan Kangas [Sat, 25 Jan 2020 15:21:06 +0000 (16:21 +0100)]
Improve doc string of 'newline'

* lisp/simple.el (newline): Doc fix.  Move 'use-hard-newlines' down,
since it's less important than the meaning of the prefix argument, and
is less frequently used than 'electric-indent-mode' and
'auto-fill-mode'.  Change the wording to no longer call it an
option.

4 years agoImprove doc of eq on bignums etc.
Paul Eggert [Sat, 25 Jan 2020 00:57:31 +0000 (16:57 -0800)]
Improve doc of eq on bignums etc.

* doc/lispref/numbers.texi (Integer Basics):
* doc/lispref/objects.texi (Integer Type, Equality Predicates):
Be clearer about eq vs eql vs = on bignums, floats, and strings.

4 years agoDo not refer to obsolete alias
Mario Lang [Fri, 24 Jan 2020 17:24:19 +0000 (18:24 +0100)]
Do not refer to obsolete alias

4 years ago; Clarify what time-stamp-active enables
Stephen Gildea [Fri, 24 Jan 2020 17:15:44 +0000 (09:15 -0800)]
; Clarify what time-stamp-active enables

Fix documentation strings and comments for time-stamp.  Most notably:
* lisp/time-stamp.el (time-stamp-active): in the doc string, clarify
that time-stamp-active does not add time-stamp to any hook.

4 years agoRemove EmacsOpenPanel and EmacsSavePanel (bug#38031)
Alan Third [Tue, 14 Jan 2020 21:36:14 +0000 (21:36 +0000)]
Remove EmacsOpenPanel and EmacsSavePanel (bug#38031)

4 years ago* doc/emacs/files.texi (Auto Save Files): Improve indexing (bug#39259).
Eli Zaretskii [Fri, 24 Jan 2020 08:18:32 +0000 (10:18 +0200)]
* doc/emacs/files.texi (Auto Save Files): Improve indexing (bug#39259).

4 years agoFix inaccurate wording in the Emacs manual
Eli Zaretskii [Fri, 24 Jan 2020 08:12:45 +0000 (10:12 +0200)]
Fix inaccurate wording in the Emacs manual

* doc/emacs/custom.texi (Modifier Keys):
* doc/emacs/basic.texi (Inserting Text): Fix minor inaccuracies in
describing the 'Alt' modifier.  (Bug#39254)

4 years agoUpdate ERC module URLs
Amin Bandali [Fri, 24 Jan 2020 06:09:43 +0000 (01:09 -0500)]
Update ERC module URLs

* lisp/erc/erc-autoaway.el, lisp/erc/erc-button.el,
lisp/erc/erc-compat.el, lisp/erc/erc-fill.el, lisp/erc/erc-imenu.el,
lisp/erc/erc-join.el, lisp/erc/erc-lang.el, lisp/erc/erc-match.el,
lisp/erc/erc-pcomplete.el, lisp/erc/erc-ring.el,
lisp/erc/erc-spelling.el, lisp/erc/erc-stamp.el,
lisp/erc/erc-track.el: Update URL to friendlier form, over https.
* lisp/erc/erc-ibuffer.el: Remove URL to nonexistent page.
* lisp/erc/erc-list.el, lisp/erc/erc-log.el, lisp/erc/erc-notify.el,
lisp/erc/erc-replace.el, lisp/erc/erc-services.el,
lisp/erc/erc-sound.el, lisp/erc/erc-speedbar.el,
lisp/erc/erc-truncate.el: Add URL to corresponding EmacsWiki page.

4 years agoMinor doc string clarification in use-hard-newlines
Lars Ingebrigtsen [Thu, 23 Jan 2020 13:02:12 +0000 (14:02 +0100)]
Minor doc string clarification in use-hard-newlines

* lisp/textmodes/paragraphs.el (use-hard-newlines): Clarify that
this minor mode isn't global (bug#20461).

4 years agoBackport: Fix bug 39218
Tino Calancha [Thu, 23 Jan 2020 09:56:02 +0000 (10:56 +0100)]
Backport: Fix bug 39218

* lisp/simple.el (shell-command):
Ensure a shell command ending with `&' is run asynchronously.

4 years agoPrefer saying "Info manual" to "info page" in docs
Stefan Kangas [Thu, 23 Jan 2020 01:25:31 +0000 (02:25 +0100)]
Prefer saying "Info manual" to "info page" in docs

Pointed out by Eli Zaretskii in:
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=39215#14
* doc/emacs/Makefile.in:
* doc/lispintro/Makefile.in:
* doc/lispref/Makefile.in:
* doc/misc/Makefile.in:
* lisp/dired-x.el (top-level):
* lisp/gnus/gnus-sum.el (gnus-summary-mode):
* lisp/progmodes/cperl-mode.el (cperl-info-page): Doc fix; prefer
saying "Info manual" over "info page".

4 years agoTab-bar related finishing touches.
Juri Linkov [Wed, 22 Jan 2020 23:23:17 +0000 (01:23 +0200)]
Tab-bar related finishing touches.

* lisp/tab-bar.el (tab-bar-tab-name-ellipsis): Use shorter name
instead of tab-bar-tab-name-truncated-ellipsis.
(tab-bar-new-tab-to) <defcustom>: Add 'function' option.
(tab-bar-new-tab-to) <function>: Use it.

* lisp/tab-line.el (tab-line-close-tab): Add missing arg 'tab' to
tab-line-close-tab-function funcall.

4 years agoMake call_process call signal_after_change. This fixes bug #38691.
Alan Mackenzie [Wed, 22 Jan 2020 19:50:30 +0000 (19:50 +0000)]
Make call_process call signal_after_change.  This fixes bug #38691.

Now, functions such as call-proess-region invoke after-change-functions
correctly.

* src/callproc.c (call_process): Call prepare_to_modify_buffer in a single
place, no longer delegating the task to insert_1_both, etc.  Call
signal_after_change in each of two code branches, such that
before-change-functions and after-change-functions are always called in
balanced pairs.

4 years ago* lisp/simple.el: Minor fixes to commentary.
Paul Eggert [Wed, 22 Jan 2020 19:03:22 +0000 (11:03 -0800)]
* lisp/simple.el: Minor fixes to commentary.

4 years agoFix a few typos
Eli Zaretskii [Wed, 22 Jan 2020 17:17:32 +0000 (19:17 +0200)]
Fix a few typos

* etc/NEWS: Fix a typo.

* src/xdisp.c (try_window_reusing_current_matrix, try_window_id):
* src/dispnew.c (scrolling_window): Fix typos in comments.

4 years agoFix doc strings for image-dired rotation commands
Christophe Deleuze [Wed, 22 Jan 2020 16:05:03 +0000 (17:05 +0100)]
Fix doc strings for image-dired rotation commands

* lisp/image-dired.el (image-dired-rotate-thumbnail-left)
(image-dired-rotate-thumbnail-right)
(image-dired-rotate-original-left)
(image-dired-rotate-original-right): Move the text in the doc
strings about rotating the originals to the correct commands
(bug#38928).

4 years agoRender Ido suggestions using an overlay
Dmitry Gutov [Wed, 22 Jan 2020 11:46:34 +0000 (14:46 +0300)]
Render Ido suggestions using an overlay

* lisp/ido.el (ido--overlay): New variable.
(ido-exhibit): Render with 'after-string' on an overlay
(bug#38457).

4 years ago* doc/misc/tramp.texi (Bug Reports): Encourage use of "emacs -Q".
Michael Albinus [Wed, 22 Jan 2020 08:25:58 +0000 (09:25 +0100)]
* doc/misc/tramp.texi (Bug Reports): Encourage use of "emacs -Q".

4 years ago* lisp/vc/smerge-mode.el (smerge-match-conflict): Fix bug#38456
Stefan Monnier [Tue, 21 Jan 2020 20:58:17 +0000 (15:58 -0500)]
* lisp/vc/smerge-mode.el (smerge-match-conflict): Fix bug#38456

This situation is not an internal error, but a perfectly normal occurrence,
so a `cl-assert` is not right

4 years agoCorrect statement about ftcr and recommend HarfBuzz
Robert Pluim [Tue, 21 Jan 2020 17:18:32 +0000 (18:18 +0100)]
Correct statement about ftcr and recommend HarfBuzz

* doc/lispref/frames.texi (Font and Color Parameters): Correct
statement about availability of ftcr in the presence of HarfBuzz.
Recommend HarfBuzz.

4 years agoAvoid leaving artifacts when the system caret is used on w32
Eli Zaretskii [Tue, 21 Jan 2020 16:23:32 +0000 (18:23 +0200)]
Avoid leaving artifacts when the system caret is used on w32

* src/xdisp.c (try_window_reusing_current_matrix, try_window_id):
* src/dispnew.c (scrolling_window) [HAVE_NTGUI]: If
w32-use-visible-system-caret is non-nil, disallow scrolling the
display are in scroll_run_hook.  This avoids copying traces of the
caret, about which Emacs knows nothing, and thus considers those
pixels show the default background.  (Bug#39188)
(gui_update_window_end): Block input only around part of the code,
as we did before this code was extracted from backend-specific
implementations.

* src/w32term.c (w32_update_window_begin, w32_update_window_end):
Only hide/show the caret when redisplaying the window where the
caret is shown.

4 years agoImprove display of temporary echo messages
Eli Zaretskii [Tue, 21 Jan 2020 15:58:23 +0000 (17:58 +0200)]
Improve display of temporary echo messages

* lisp/minibuffer.el (set-minibuffer-message): Fix cursor position
for the temporary display of an echo-area message when minibuffer
is active.  Ensure the message is visible even if the end of the
completion candidates presented by the likes of Icomplete mode is
not visible due to its length, under resize-mini-windows = nil.
(Bug#38457)

4 years ago* lisp/menu-bar.el: Remove desktop-save-mode from release branch (bug#37594)
Juri Linkov [Mon, 20 Jan 2020 23:09:04 +0000 (01:09 +0200)]
* lisp/menu-bar.el: Remove desktop-save-mode from release branch (bug#37594)

; Not to be merged to master

4 years agoAllow optional truncation of tab names in tab-bar and tab-line (bug#38693)
Juri Linkov [Mon, 20 Jan 2020 23:03:37 +0000 (01:03 +0200)]
Allow optional truncation of tab names in tab-bar and tab-line (bug#38693)

* lisp/tab-line.el (tab-line-tab-name-truncated-max): New defcustom.
(tab-line-tab-name-truncated-buffer): Use tab-line-tab-name-truncated-max
consistently with similar options in tab-bar.el.
(tab-line-tabs-limit): Remove variable.
(tab-line-tabs-window-buffers): Remove use of tab-line-tabs-limit
that was an experimental feature before horizontal scrolling was implemented.
(tab-line-close-tab-function): Rename from tab-line-close-tab-action
and allow a customizaed function as option.
(tab-line-close-tab): Call function if tab-line-close-tab-function
is customized to a function.

* lisp/tab-bar.el (tab-bar-tab-name-function): Add option
tab-bar-tab-name-truncated.
(tab-bar-tab-name-truncated-max): New defcustom.
(tab-bar-tab-name-truncated-ellipsis): New variable.
(tab-bar-tab-name-truncated): New function.

4 years agoSmall fixes in documentation.
Juri Linkov [Mon, 20 Jan 2020 22:50:15 +0000 (00:50 +0200)]
Small fixes in documentation.

* doc/emacs/dired.texi (Operating on Files): Fix name of dired-vc-rename-file.

* doc/emacs/fixit.texi (Undo): Update new values of undo limits
doubled in bug#31104.

4 years agoImprove explanation of available font backends under X
Robert Pluim [Mon, 20 Jan 2020 16:59:38 +0000 (17:59 +0100)]
Improve explanation of available font backends under X

* frames.texi (Font and Color Parameters): Clarify that you can't
have HarfBuzz and non-HarfBuzz at the same time for xft and cairo
font backends.

4 years agoClear output data pointer on NS
Pip Cet [Mon, 20 Jan 2020 16:27:43 +0000 (17:27 +0100)]
Clear output data pointer on NS

* src/nsterm.m (ns_free_frame_resources): Clear the output data
pointer to prevent attempting to reuse freed resources (Bug#38748).

4 years ago* admin/release-process: Adapt bug numbers for release critical bugs.
Michael Albinus [Mon, 20 Jan 2020 15:32:13 +0000 (16:32 +0100)]
* admin/release-process: Adapt bug numbers for release critical bugs.

Mention debbugs-gnu-emacs-release-blocking-reports.

4 years agoFix shell-tests failures
Mattias Engdegård [Mon, 20 Jan 2020 14:52:27 +0000 (15:52 +0100)]
Fix shell-tests failures

* test/lisp/shell-tests.el (shell-tests-completion-before-semi):
Go back to actually testing completion before semicolon.
(shell-tests-completion-after-semi): Test completion after semicolon,
correctly (bug#39075).

4 years ago* test/lisp/simple-tests.el: Full path to Emacs binary (bug#39067).
Mattias Engdegård [Mon, 20 Jan 2020 13:27:38 +0000 (14:27 +0100)]
* test/lisp/simple-tests.el: Full path to Emacs binary (bug#39067).

4 years ago* lisp/tab-line.el (tab-line-auto-hscroll): Fix for long tab names.
Juri Linkov [Mon, 20 Jan 2020 00:35:53 +0000 (02:35 +0200)]
* lisp/tab-line.el (tab-line-auto-hscroll): Fix for long tab names.

Check for nil value returned by previous-single-property-change that
happens when tab name is longer than window width.

4 years ago* lisp/menu-bar.el (menu-bar-options-menu): Add desktop-save-mode (bug#37594)
Juri Linkov [Mon, 20 Jan 2020 00:14:24 +0000 (02:14 +0200)]
* lisp/menu-bar.el (menu-bar-options-menu): Add desktop-save-mode (bug#37594)

4 years ago; Fix a test (Bug#39067)
Tino Calancha [Sun, 19 Jan 2020 21:01:17 +0000 (22:01 +0100)]
; Fix a test (Bug#39067)

* test/lisp/simple-tests.el (with-shell-command-dont-erase-buffer):
Use flag -Q to prevent from loading site-lisp files.

4 years ago; * etc/NEWS: Fix typo.
Michael Albinus [Sun, 19 Jan 2020 13:25:20 +0000 (14:25 +0100)]
; * etc/NEWS: Fix typo.

4 years agoFix shell-command-dont-erase-buffer feature
Tino Calancha [Sun, 19 Jan 2020 10:13:02 +0000 (11:13 +0100)]
Fix shell-command-dont-erase-buffer feature

* lisp/simple.el (shell-command-dont-erase-buffer):
The default, nil, is backward compatible, i.e. it erases the buffer
only if the output buffer is not the current one; the new value 'erase
always erases the output buffer.
Update docstring.

(shell-command-save-pos-or-erase):
Add optional arg output-to-current-buffer.
Rename it so that it's not internal.  All callers updated.

(shell-command-set-point-after-cmd): Rename it so that it's not internal.
All callers updated.
Adjust it to cover a side case.

(shell-command): Adjust logic to match the specification (Bug#39067).
Enable the feature when the output buffer is the current one.

(shell-command-on-region): Little tweak to follow
`shell-command-dont-erase-buffer' specification.

* test/lisp/simple-tests.el (with-shell-command-dont-erase-buffer):
Add helper macro.
(simple-tests-shell-command-39067)
(simple-tests-shell-command-dont-erase-buffer): Add tests.

* doc/emacs/misc.texi (Single Shell): Update manual.

* etc/NEWS (Single shell commands): Announce the change.

4 years agoRemove reference to Emacs 19 from FAQ
Stefan Kangas [Sun, 19 Jan 2020 00:26:16 +0000 (01:26 +0100)]
Remove reference to Emacs 19 from FAQ

* doc/misc/efaq.texi (Emacs ignores X resources): Remove reference to
Emacs 19.

4 years agoDoc fixes in package.el
Stefan Kangas [Fri, 4 Oct 2019 16:30:34 +0000 (18:30 +0200)]
Doc fixes in package.el

* lisp/emacs-lisp/package.el (package-process-define-package)
(package-generate-description-file): Doc fixes.
(package-generate-autoloads, package--write-file-no-coding)
(package--archive-file-exists-p, package-desc-status): Add doc
strings.

4 years agoEnsure that gnus-summary-attach-article finds the right articles
Eric Abrahamsen [Sat, 18 Jan 2020 19:08:11 +0000 (11:08 -0800)]
Ensure that gnus-summary-attach-article finds the right articles

* lisp/gnus/gnus-msg.el (gnus-summary-attach-article): Before
iterating over the articles to attach, first close any open
article. Using `set-buffer' required `gnus-summary-select-article' to
re-set the buffer every time, meaning we never got off the original
article.

(cherry picked from commit 447bb1313a6abc07776d93ee78cd976ab43856e5)

4 years agoRemove some doc references to old Emacs versions
Stefan Kangas [Sat, 18 Jan 2020 18:53:01 +0000 (19:53 +0100)]
Remove some doc references to old Emacs versions

* doc/misc/efaq.texi (Horizontal scrolling): Remove section
only relevant to Emacs 21 or older.
(Repeating commands, Editing MS-DOS files):
* lisp/progmodes/gdb-mi.el:
* lisp/woman.el: Doc fix - remove some references to Emacs 20 and older.

4 years agoFix infloop in shell.el
Pieter van Oostrum [Thu, 16 Jan 2020 19:21:37 +0000 (20:21 +0100)]
Fix infloop in shell.el

* test/lisp/shell-tests.el (shell-tests-completion-before-semi):
Amend the shell.el tests to catch errors such as bug#39057.

* lisp/shell.el (shell--parse-pcomplete-arguments): Skip the
semi-colon as well.  This avoids inflooping when a semi-colon is
typed by the user.  (Bug#39057)

Copyright-paperwork-exempt: yes

4 years agoFix erc-notifications-notify for non-PRIVMSGs, broken in last commit
Amin Bandali [Sat, 18 Jan 2020 04:38:04 +0000 (23:38 -0500)]
Fix erc-notifications-notify for non-PRIVMSGs, broken in last commit

* lisp/erc/erc-desktop-notifications.el (erc-notifications-notify):
Take optional argument `privp', to be non-nil when notifying for a
PRIVMSG.  This is to work around bug introduced in last commit, as
`erc-get-buffer' may return nil for non-PRIVMSG cases.
(erc-notifications-PRIVMSG): Call erc-notifications-notify with
non-nil `privp', as described above.

4 years agoFix the notification action for PRIVMSG in erc-notifications-notify
Amin Bandali [Sat, 18 Jan 2020 03:33:03 +0000 (22:33 -0500)]
Fix the notification action for PRIVMSG in erc-notifications-notify

* lisp/erc/erc-desktop-notifications.el (erc-notifications-notify):
explicitly request the buffer for `nick', rather than relying on
(current-buffer) returning it.  That works fine for the very first
PRIVMSG sent by `nick', but ERC seems to handle subsequent PRIVMSGs
differently, where (current-buffer) would return the server buffer
rather than the existing buffer for PRIVMSGs from `nick'.

4 years agoERC: New maintainer.
Amin Bandali [Sat, 18 Jan 2020 02:45:10 +0000 (21:45 -0500)]
ERC: New maintainer.

* admin/MAINTAINERS: Add entries for Amin Bandali, new maintainer for
ERC, and interested in maintaining Eshell.
* lisp/erc/*: New maintainer.

4 years ago; spelling fixes
Paul Eggert [Fri, 17 Jan 2020 22:23:20 +0000 (14:23 -0800)]
; spelling fixes

4 years agoHonor tags-case-fold-search during xref identifer completion
Dmitry Gutov [Fri, 17 Jan 2020 21:14:24 +0000 (00:14 +0300)]
Honor tags-case-fold-search during xref identifer completion

* etc/NEWS: New entry.

* lisp/progmodes/etags.el (tags-case-fold-search):
Mark as safe-local.
(find-tag--completion-ignore-case):
Extract from tags-completion-at-point-function, find-tag-tag and
etags--xref-find-definitions.
(xref-backend-identifier-completion-ignore-case):
New method. Use it here as well.

* lisp/progmodes/xref.el
(xref-backend-identifier-completion-ignore-case): New generic.
(xref--read-identifier): Use it here.

4 years ago; * src/lread.c (force_new_style_backquotes): Fix reference.
Simen Heggestøyl [Fri, 17 Jan 2020 13:51:19 +0000 (14:51 +0100)]
; * src/lread.c (force_new_style_backquotes): Fix reference.

4 years ago; * etc/NEWS: Mention latest changes in checkdoc. (Bug#38583)
Eli Zaretskii [Fri, 17 Jan 2020 09:47:19 +0000 (11:47 +0200)]
; * etc/NEWS: Mention latest changes in checkdoc.  (Bug#38583)

4 years agoFix wording and punctuation of a recent commit
Eli Zaretskii [Fri, 17 Jan 2020 09:35:35 +0000 (11:35 +0200)]
Fix wording and punctuation of a recent commit

* lisp/textmodes/ispell.el (ispell-correct-p): Doc fix.
* lisp/emacs-lisp/checkdoc.el (checkdoc-ispell-init): Fix
capitalization and punctuation of comments.

4 years agoMerge branch 'emacs-27' of git.savannah.gnu.org:/srv/git/emacs into emacs-27
Eli Zaretskii [Fri, 17 Jan 2020 09:30:55 +0000 (11:30 +0200)]
Merge branch 'emacs-27' of git.savannah.gnu.org:/srv/git/emacs into emacs-27

4 years agoAdd unattended spell-checking to checkdoc
Damien Cassou [Fri, 27 Dec 2019 14:35:52 +0000 (15:35 +0100)]
Add unattended spell-checking to checkdoc

This commit makes checkdoc capable of spell-checking even when the
user isn't using it interactively.  When TAKE-NOTES is non-nil,
checkdoc will run spell-checking (with ispell) and report spelling
mistakes.

Fixes: (bug#38583).
* lisp/textmodes/ispell.el (ispell-word): Extract part of it to
`ispell--run-on-word`.
(ispell--run-on-word): New function, extracted from `ispell-word`.
(ispell-error-checking-word): New function.
(ispell-correct-p): New function.  Use `ispell--run-on-word` and
`ispell-error-checking-word`.
* lisp/emacs-lisp/checkdoc.el (checkdoc-current-buffer): Pass
TAKE-NOTES to `checkdoc-start`.
(checkdoc-continue): Pass TAKE-NOTES to `checkdoc-this-string-valid`.
(checkdoc-this-string-valid): Add optional argument TAKE-NOTES and
pass it to `checkdoc-this-string-valid-engine`.
(checkdoc-this-string-valid-engine): Add optional argument TAKE-NOTES
and pass it to `checkdoc-ispell-docstring-engine`.
(checkdoc-ispell-init): Call `ispell-set-spellchecker-params` and
`ispell-accept-buffer-local-defs`.  These calls are required to
properly use ispell.  The problem went unnoticed until now because
checkdoc was only using ispell through the high-level command
`ispell-word` which takes care of all the initialization for the user.
(checkdoc-ispell-docstring-engine): Add optional argument TAKE-NOTES
to force reporting of spell-checking errors.  Throw error
when (checkdoc-ispell-init) fails configuring ispell.  Replace a
few (if cond nil body) with (unless cond body). Replace (let ((var
nil))) with (let (var)).  Replace (if (not (eq checkdoc-autofix-flag
'never)) body) with just body because `checkdoc-autofix-flag` is
checked at the beginning of the function.

(cherry picked from commit 25adbc4a5ecc3e16625c0171607e3153bbdf7ab1)

4 years ago; Minor edit in anti.texi
Robert Pluim [Fri, 17 Jan 2020 08:34:50 +0000 (09:34 +0100)]
; Minor edit in anti.texi

4 years agoFix the error message from makefile-move-to-macro
Lin Sun [Fri, 17 Jan 2020 00:08:54 +0000 (16:08 -0800)]
Fix the error message from makefile-move-to-macro

* lisp/cedet/ede/makefile-edit.el (makefile-macro-file-list):
regexp-quote the param in makefile-move-to-macro (Bug#39094).

(cherry picked from commit a36495da1ec1419998c17fd64fb7439eaf940f36)

4 years ago; Fix recent markup change
Robert Pluim [Fri, 17 Jan 2020 07:53:29 +0000 (08:53 +0100)]
; Fix recent markup change

* doc/emacs/custom.texi (Find Init): Fix variable markup.

4 years ago; * lisp/obsolete/vc-arch.el: Add missing "Obsolete-since" tag.
Stefan Kangas [Fri, 17 Jan 2020 06:03:41 +0000 (07:03 +0100)]
; * lisp/obsolete/vc-arch.el: Add missing "Obsolete-since" tag.

4 years ago; * lisp/ezimage.el: Fix typo.
Stefan Kangas [Fri, 17 Jan 2020 05:34:00 +0000 (06:34 +0100)]
; * lisp/ezimage.el: Fix typo.

4 years agoDocument feature requests in the Emacs manual
Stefan Kangas [Thu, 16 Jan 2020 20:35:07 +0000 (21:35 +0100)]
Document feature requests in the Emacs manual

* doc/emacs/trouble.texi (Contributing): Document how to send feature
requests.  (Bug20697)

4 years ago* lisp/minibuffer.el (read-file-name-default): Fix bug#39057
Stefan Monnier [Thu, 16 Jan 2020 15:18:15 +0000 (10:18 -0500)]
* lisp/minibuffer.el (read-file-name-default): Fix bug#39057

4 years ago; * etc/NEWS: Fix some file name quotations.
Michael Albinus [Thu, 16 Jan 2020 15:17:26 +0000 (16:17 +0100)]
; * etc/NEWS: Fix some file name quotations.

4 years agoMake emacs prefer an existing ~/.emacs.d to an existing XDG location
Robert Pluim [Wed, 15 Jan 2020 11:24:43 +0000 (12:24 +0100)]
Make emacs prefer an existing ~/.emacs.d to an existing XDG location

* doc/emacs/custom.texi (Find Init): Update description of how Emacs
finds its init file directory and the interaction with
$XDG_CONFIG_HOME
(Early Init File): Correct XDG location of early-init.el

* etc/NEWS: Update description to make it clear the ~/.emacs.d is
preferred, even if the XDG location exists.

* lisp/startup.el: Prefer ~/.emacs.d even if the XDG location exists.

* lib-src/emacsclient.c (open_config): Prefer home directory the XDG
location.

4 years ago; etc/NEWS minor edits
Robert Pluim [Thu, 16 Jan 2020 09:39:40 +0000 (10:39 +0100)]
; etc/NEWS minor edits

4 years agoDescribe --with-cairo non-support for bitmapped fonts.
Robert Pluim [Thu, 16 Jan 2020 09:34:37 +0000 (10:34 +0100)]
Describe --with-cairo non-support for bitmapped fonts.

* etc/NEWS: Mention Pango's removal of support for bitmapped fonts.

4 years agoMention GTK font chooser changes in NEWS
Robert Pluim [Thu, 16 Jan 2020 09:33:01 +0000 (10:33 +0100)]
Mention GTK font chooser changes in NEWS

* etc/NEWS: Mention GTK font chooser changes.

4 years ago; Unmaintain fortran elisp
Glenn Morris [Thu, 16 Jan 2020 02:49:21 +0000 (18:49 -0800)]
; Unmaintain fortran elisp

4 years agof90: handle F2008 module function
Glenn Morris [Thu, 16 Jan 2020 02:47:51 +0000 (18:47 -0800)]
f90: handle F2008 module function

* lisp/progmodes/f90.el (f90-font-lock-keywords-1)
(f90-looking-at-program-block-start):
Handle F2008 "module function" and subroutine.  (Bug#38415)
* test/lisp/progmodes/f90-tests.el (f90-test-bug38415): New test.

4 years agoMove shell-related menu items to "Shell Commands" submenu (bug#37594)
Juri Linkov [Wed, 15 Jan 2020 23:30:33 +0000 (01:30 +0200)]
Move shell-related menu items to "Shell Commands" submenu (bug#37594)

* lisp/menu-bar.el (menu-bar-shell-commands-menu): New variable.
(menu-bar-tools-menu): Move shell-related menu items to
'menu-bar-shell-commands-menu' and add menu items for
'async-shell-command' and 'shell'.

4 years ago* admin/notes/font-backend: Remove outdated file. (Bug#34663)
Stefan Kangas [Wed, 15 Jan 2020 19:01:25 +0000 (20:01 +0100)]
* admin/notes/font-backend: Remove outdated file. (Bug#34663)

4 years agoDeclare the ftx font backend driver obsolete
Stefan Kangas [Wed, 15 Jan 2020 18:20:38 +0000 (19:20 +0100)]
Declare the ftx font backend driver obsolete

* etc/NEWS: Document that the ftx font driver is now
obsolete and will be removed in Emacs 28.  (Bug#34663)

4 years ago; Fix wording of a comment.
Eli Zaretskii [Wed, 15 Jan 2020 16:28:44 +0000 (18:28 +0200)]
; Fix wording of a comment.

* nt/inc/ms-w32.h (BROKEN_DATAGRAM_SOCKETS): Fix wording of
commentary.

4 years agoFix build failure with --with-cairo --without-png
YAMAMOTO Mitsuharu [Wed, 15 Jan 2020 08:10:30 +0000 (17:10 +0900)]
Fix build failure with --with-cairo --without-png

* src/image.c: Don't enable PNG section only by USE_CAIRO.

4 years agoAdd new node "Package Statuses" to manual
Stefan Kangas [Wed, 15 Jan 2020 01:20:01 +0000 (02:20 +0100)]
Add new node "Package Statuses" to manual

* doc/emacs/emacs.texi (Top):
* doc/emacs/package.texi (Package Menu): New node "Package
Statuses".  (Bug#29420)

4 years ago* lisp/isearch.el: Fix corner cases of isearch-lazy-count.
Juri Linkov [Wed, 15 Jan 2020 00:02:53 +0000 (02:02 +0200)]
* lisp/isearch.el: Fix corner cases of isearch-lazy-count.

* lisp/isearch.el (isearch-mode): Reset isearch-lazy-count-current
and isearch-lazy-count-total to nil, so when isearch-mode is started,
there should be no counts from previous Isearch.
(isearch-lazy-highlight-new-loop): Call isearch-message after resetting
lazy-count variables only when isearch-mode is started.  This avoids
the problem of inappropriate calls of isearch-message-function
when query-replace in the minibuffer performs lazy-highlighting that
used to call minibuffer-history-isearch-message unnecessarily.

4 years ago; * lisp/simple.el (messages-buffer): Doc fix. (Bug#39124)
Eli Zaretskii [Tue, 14 Jan 2020 15:46:39 +0000 (17:46 +0200)]
; * lisp/simple.el (messages-buffer): Doc fix.  (Bug#39124)

4 years agoDocument spacing issues with Xft for some fonts
Robert Pluim [Tue, 14 Jan 2020 09:49:28 +0000 (10:49 +0100)]
Document spacing issues with Xft for some fonts

* etc/PROBLEMS: Document issues with Xft and some recent fonts (Bug#39082).

4 years ago; * etc/NEWS: Fix typo.
Michael Albinus [Mon, 13 Jan 2020 20:11:46 +0000 (21:11 +0100)]
; * etc/NEWS: Fix typo.

4 years agoAlways use lexical-binding in lisp-interaction-mode (bug#38835)
Mattias Engdegård [Mon, 13 Jan 2020 13:53:11 +0000 (14:53 +0100)]
Always use lexical-binding in lisp-interaction-mode (bug#38835)

* lisp/progmodes/elisp-mode.el (lisp-interaction-mode):
Set lexical-binding.
* lisp/startup.el (command-line, startup--get-buffer-create-scratch):
Don't set lexical-binding here.
* doc/lispref/variables.texi:
* etc/NEWS:
Make it clear that lisp-interaction-mode uses lexical-binding.

4 years ago; *etc/NEWS: Fix typo.
Michael Albinus [Mon, 13 Jan 2020 15:03:15 +0000 (16:03 +0100)]
; *etc/NEWS: Fix typo.

4 years agovc-dir: ensure we don't use a pager with git
Robert Pluim [Fri, 10 Jan 2020 15:36:57 +0000 (16:36 +0100)]
vc-dir: ensure we don't use a pager with git

* lisp/vc/vc-git.el (vc-git--call): Call git with '--no-pager' to
avoid hangs caused by remote pager settings (Bug#38688).

4 years agoImprove ERC's matching of nicks and URLs (bug#38257)
Amin Bandali [Mon, 18 Nov 2019 15:24:48 +0000 (10:24 -0500)]
Improve ERC's matching of nicks and URLs (bug#38257)

* lisp/erc/erc-{button,match}.el (erc-{button,match}-syntax-table):
Omit (, ), and '; as they're not valid nick characters, per RFC 2812
section 2.3.1.  This enables correct matching/highlighting of nicks
when they're surrounded by parens, like (nick), and when adjacent to
an apostrophe, like nick's.
* lisp/erc/erc-button.el (erc-button-url-regexp): Use the regexp from
browse-url-button-regexp, which among other things, seems to handle
surrounding pair of parens better.

4 years agoHandle tab-bar clicks on a GPM-capable console.
Juri Linkov [Sun, 12 Jan 2020 23:23:12 +0000 (01:23 +0200)]
Handle tab-bar clicks on a GPM-capable console.

* src/term.c (handle_one_term_event): Call tty_handle_tab_bar_click.

* src/xdisp.c (tty_handle_tab_bar_click): Force reset of up_modifier bit
from the event modifiers.

* lisp/tab-line.el (tab-line-tab-current): No need to use inverse-video
on console/xterm because the selected tab already uses inverse-video.

4 years ago;* etc/TODO: Update.
Alan Third [Sun, 12 Jan 2020 14:54:44 +0000 (14:54 +0000)]
;* etc/TODO: Update.

4 years ago; * doc/lispref/anti.texi (Antinews): Fix typo.
Michael Albinus [Sat, 11 Jan 2020 13:14:11 +0000 (14:14 +0100)]
; * doc/lispref/anti.texi (Antinews): Fix typo.

4 years agoUpdate Acknowledgments sections
Eli Zaretskii [Sat, 11 Jan 2020 12:06:19 +0000 (14:06 +0200)]
Update Acknowledgments sections

* doc/emacs/ack.texi (Acknowledgments):
* doc/emacs/emacs.texi (Acknowledgments): Update for Emacs 27.

4 years agoUpdate Antinews in ELisp manual
Eli Zaretskii [Sat, 11 Jan 2020 11:36:07 +0000 (13:36 +0200)]
Update Antinews in ELisp manual

* doc/lispref/anti.texi (Antinews): Rewrite for Emacs 27.
* doc/lispref/elisp.texi (Top): Update the top-level menu item for
Antinews.

4 years ago; Move the description of define-inline to a different node in functions.texi
Richard Stallman [Sun, 5 Jan 2020 22:21:41 +0000 (17:21 -0500)]
; Move the description of define-inline to a different node in functions.texi

4 years agoImprove wording in the ELisp manual
Richard Stallman [Wed, 1 Jan 2020 23:18:44 +0000 (18:18 -0500)]
Improve wording in the ELisp manual

* doc/lispref/modes.texi (Setting Hooks): Improve and clarify
wording.  (Bug#38818)

4 years agoReset to the standard value when reverting session's customizations
Mauro Aranda [Mon, 30 Dec 2019 21:10:28 +0000 (18:10 -0300)]
Reset to the standard value when reverting session's customizations

* lisp/cus-edit.el (custom-variable-reset-saved): When there is no
previous saved value, reset to the standard value.  (Bug#15214)

4 years agoFix saving multiple themes
Mauro Aranda [Mon, 6 Jan 2020 14:04:29 +0000 (11:04 -0300)]
Fix saving multiple themes

* lisp/custom.el (enable-theme): Be side-effect free when modifying
custom-enabled-themes.  (Bug#19999)

4 years agoCalc: fix interval entry (bug#39040)
Mattias Engdegård [Fri, 10 Jan 2020 18:49:56 +0000 (19:49 +0100)]
Calc: fix interval entry (bug#39040)

* lisp/calc/calc.el (calcDigit-start): Initialise calc-prev-char to
something more reasonable, so that non-algebraic entry of intervals
whose start is a single digit, like (1..10), works properly.
Reported by Michel Schinz.

4 years agoFix horizontal line display in Custom buffers
Eli Zaretskii [Fri, 10 Jan 2020 19:02:52 +0000 (21:02 +0200)]
Fix horizontal line display in Custom buffers

* lisp/cus-edit.el (custom-group-value-create): Insert a newline
before calling 'custom-group--draw-horizontal-line'.  (Bug#39074)

4 years ago; * etc/NEWS: Fix a typo.
Eli Zaretskii [Fri, 10 Jan 2020 18:44:56 +0000 (20:44 +0200)]
; * etc/NEWS: Fix a typo.

4 years agoflymake: fix typo in variable binding (bug#38752)
Mattias Engdegård [Fri, 10 Jan 2020 17:12:32 +0000 (18:12 +0100)]
flymake: fix typo in variable binding (bug#38752)

This mistake was found by an experimental elisp optimiser.

* lisp/progmodes/flymake-proc.el (flymake-proc-stop-all-syntax-checks):
Add missing brackets.