]> git.eshelyaron.com Git - emacs.git/log
emacs.git
4 years agoKill gpg-agents started by mml-sec-tests (bug#43358)
Lars Ingebrigtsen [Sun, 13 Sep 2020 14:05:19 +0000 (16:05 +0200)]
Kill gpg-agents started by mml-sec-tests (bug#43358)

4 years agoUpdate .gitignore with ccls files
Brian Leung [Sun, 13 Sep 2020 13:48:06 +0000 (15:48 +0200)]
Update .gitignore with ccls files

* .gitignore: Ignore files used by ccls, a language server for C
(bug#43365).

Copyright-paperwork-exempt: yes

4 years agoDoc string clarification in file-directory-p
Lars Ingebrigtsen [Sun, 13 Sep 2020 13:33:58 +0000 (15:33 +0200)]
Doc string clarification in file-directory-p

* src/fileio.c (Ffile_directory_p): Mention that "" is a special
case (bug#43375).

4 years agoClarify when tab-line-switch-cycling is used
Kiso Katsuyuki [Sun, 13 Sep 2020 13:23:25 +0000 (15:23 +0200)]
Clarify when tab-line-switch-cycling is used

* lisp/tab-line.el (tab-line-switch-cycling): Clarify when the
variable is used.
Copyright-paperwork-exempt: yes

4 years ago* lisp/time.el (display-time-world): Make obsolete.
Stefan Kangas [Sun, 13 Sep 2020 13:09:20 +0000 (15:09 +0200)]
* lisp/time.el (display-time-world): Make obsolete.

4 years agoMake M-x show what aliases point to (Bug#43300)
Stefan Kangas [Wed, 9 Sep 2020 23:42:53 +0000 (01:42 +0200)]
Make M-x show what aliases point to (Bug#43300)

* lisp/simple.el (read-extended-command--annotation): Show an
annotation for aliases saying what it points to.

4 years agoMake M-x show obsolete commands (Bug#43300)
Stefan Kangas [Wed, 9 Sep 2020 23:32:24 +0000 (01:32 +0200)]
Make M-x show obsolete commands (Bug#43300)

* lisp/simple.el (read-extended-command): Don't hide obsolete
commands.
(read-extended-command--annotation): Show an annotation for obsolete
commands that says what their new name is.

4 years agoRevert "Use format-prompt in read-file-name calls that have a default"
Lars Ingebrigtsen [Sun, 13 Sep 2020 12:58:24 +0000 (14:58 +0200)]
Revert "Use format-prompt in read-file-name calls that have a default"

This reverts commit de4f347901adffd07bc9bff028dc073fb3c6df33.

read-file-name already displays a long path when given a default
(like INITIAL in many other prompting functions), so using
format-prompt here is superfluous.

4 years agoMake `ascii' a coding system alias for `us-ascii'
Lars Ingebrigtsen [Sun, 13 Sep 2020 12:37:54 +0000 (14:37 +0200)]
Make `ascii' a coding system alias for `us-ascii'

* lisp/international/mule-conf.el (ascii): Define `ascii' as a
coding system alias to `us-ascii' (bug#43351).

4 years agoFix a conversion failure in tramp-archive-tests (Bug#43353)
Michael Albinus [Sun, 13 Sep 2020 11:25:52 +0000 (13:25 +0200)]
Fix a conversion failure in tramp-archive-tests (Bug#43353)

* test/lisp/net/tramp-archive-tests.el
(tramp-archive-test-file-archive-hexlified): New defun.
(tramp-archive-test02-file-name-dissect): Use it.  (Bug#43353)

4 years agoDon't force LC_ALL=C upon make check (bug#43353)
Glenn Morris [Sun, 13 Sep 2020 03:22:37 +0000 (20:22 -0700)]
Don't force LC_ALL=C upon make check (bug#43353)

* test/Makefile.in (TEST_LOCALE): Remove.
(emacs): Don't force LC_ALL=C, since it causes problems with
non-ascii directories.  This mirrors a 7-year old lisp/Makefile change.

4 years agoMark some diff tests as failing in nonascii directories
Glenn Morris [Sun, 13 Sep 2020 02:44:06 +0000 (19:44 -0700)]
Mark some diff tests as failing in nonascii directories

* test/lisp/vc/diff-mode-tests.el (diff-mode-test-font-lock)
(diff-mode-test-font-lock-syntax-one-line):
Expect failure in non-ascii directories.

; * lisp/vc/diff-mode.el (diff-hunk-file-names): Comment.

4 years agoClean up eww error buffer
Lars Ingebrigtsen [Sat, 12 Sep 2020 23:02:00 +0000 (01:02 +0200)]
Clean up eww error buffer

* lisp/net/eww.el (eww-retrieve): Clean up error buffer after exiting.

4 years agoFix up example code from previous eww.texi commit
Lars Ingebrigtsen [Sat, 12 Sep 2020 22:44:20 +0000 (00:44 +0200)]
Fix up example code from previous eww.texi commit

* doc/misc/eww.texi (Advanced): Simplify example command (and
"--virtual-time-budget=3000" makes Chromium unstable).

4 years agoAdd a way to use an external command to download HTML in eww
Lars Ingebrigtsen [Sat, 12 Sep 2020 22:12:33 +0000 (00:12 +0200)]
Add a way to use an external command to download HTML in eww

* doc/misc/eww.texi (Advanced): Document it.

* lisp/net/eww.el (eww-retrieve): New function.
(eww-reload): Use it.
(eww): Ditto.
(eww-retrieve-command): New variable.

4 years agoAdapt some tests for Emacs's excitingly variable quoting format
Glenn Morris [Sat, 12 Sep 2020 18:57:42 +0000 (11:57 -0700)]
Adapt some tests for Emacs's excitingly variable quoting format

* test/lisp/subr-tests.el (subr-test-version-parsing):
* test/lisp/emacs-lisp/gv-tests.el (gv-dont-define-expander-other-file):
* test/src/callint-tests.el (call-interactively/incomplete-multibyte-sequence):
* test/src/emacs-module-tests.el (module/describe-function-1):
Don't fail if curly quotes are in use, as they can be if LC_ALL != C.

4 years ago; Fix copyright years
Glenn Morris [Sat, 12 Sep 2020 17:52:50 +0000 (10:52 -0700)]
; Fix copyright years

4 years agoCleanup in dbus.el, dbus-tests.el
Michael Albinus [Sat, 12 Sep 2020 17:33:44 +0000 (19:33 +0200)]
Cleanup in dbus.el, dbus-tests.el

* lisp/net/dbus.el (dbus-error-no-reply): New defconst.
(dbus-call-method): Use it.
(dbus-call-method-asynchronously, dbus-register-signal): Fix docstring.
(dbus-unregister-object): Obey :serial entries in
`dbus-registered-objects-table'.

* test/lisp/net/dbus-tests.el (dbus-test04-register-method)
(dbus-test05-register-property): Extend tests.

4 years agoC++ Mode: handle __attribute__,etc. inside constructor argument lists
Alan Mackenzie [Sat, 12 Sep 2020 16:37:56 +0000 (16:37 +0000)]
C++ Mode: handle __attribute__,etc. inside constructor argument lists

This corrects both the fontification and indentation of these things, fixing
bug #42270.

* lisp/progmodes/cc-engine.el (c-do-declarators): Skip over "hangon keys" and
noise macros whilst scanning a putative C++ function.
(c-forward-decl-or-cast-1): When checking for typeless functions, skip over
"hangon keys" and noise macros.

* lisp/progmodes/cc-mode.el (c-fl-decl-end): Deal with certain invalid
"nested declarators" by scanning over them with a recursive call of
c-fl-decl-end.

* lisp/progmodes/cc-vars.el (c-noise-macro-names)
(c-noise-macro-with-parens-names): State in the doc strings that if either of
these is a regexp, it must have a submatch 1 which matches the noise macro
exactly.

4 years agoSmall Texinfo markup fixes
Glenn Morris [Sat, 12 Sep 2020 16:06:10 +0000 (09:06 -0700)]
Small Texinfo markup fixes

* doc/misc/dbus.texi (Register Objects):
* doc/misc/gnus.texi (Searching): Texinfo markup fixes.

4 years agoFix compilation warning in cl-font-lock
Lars Ingebrigtsen [Sat, 12 Sep 2020 13:10:36 +0000 (15:10 +0200)]
Fix compilation warning in cl-font-lock

* lisp/progmodes/cl-font-lock.el (cl-font-lock-built-in-mode): Put
in the tools group to avoid a compilation warning.

4 years agoFix compilation warning in obsolete/complete.el
Lars Ingebrigtsen [Sat, 12 Sep 2020 13:08:41 +0000 (15:08 +0200)]
Fix compilation warning in obsolete/complete.el

* lisp/obsolete/complete.el (completion-base-size): Avoid
compilation warning.

4 years agoFix compilation warning in cl-lib.el
Lars Ingebrigtsen [Sat, 12 Sep 2020 13:06:58 +0000 (15:06 +0200)]
Fix compilation warning in cl-lib.el

* lisp/emacs-lisp/cl-lib.el (cl-old-struct-compat-mode): Put the
minor mode in the tools group (to avoid a compilation warning).

4 years agodired-omit-mode may not be defined in dired-jump
Lars Ingebrigtsen [Sat, 12 Sep 2020 13:01:32 +0000 (15:01 +0200)]
dired-omit-mode may not be defined in dired-jump

* lisp/dired.el (dired-jump): dired-omit-mode is in dired-x, so it
may not be defined in dired.

4 years agoSupport scoring on article age interactively in Gnus
Alex Bochannek [Sat, 12 Sep 2020 12:04:02 +0000 (14:04 +0200)]
Support scoring on article age interactively in Gnus

* lisp/gnus/gnus-score.el (gnus-summary-score-entry): Support
scoring on article age in interactive scoring (bug#43270).

4 years agoDefault Emacs to UTF-8 instead of Latin-1
Glenn Morris [Sat, 12 Sep 2020 11:37:23 +0000 (13:37 +0200)]
Default Emacs to UTF-8 instead of Latin-1

* doc/emacs/mule.texi (File Name Coding): Document it.

* lisp/international/mule-cmds.el (reset-language-environment):
Default to utf-8 instead of latin-1.

* lisp/mail/sendmail.el (default-sendmail-coding-system): Ditto.

* lisp/mh-e/mh-comp.el (mh-send-letter): Ditto.

4 years agoFix toggle-frame-fullscreen on w32 builds
Martin Rudalics [Fri, 11 Sep 2020 20:04:20 +0000 (16:04 -0400)]
Fix toggle-frame-fullscreen on w32 builds

* src/w32term.c (w32_read_socket): Set 'fullscreen' to 'maximized'
if Windows sends SIZE_MAXIMIZED and either the top or the left of
the frame is outside the screen.  (Bug#25542)

4 years agoFurther diff-no-select doc string clarification
Lars Ingebrigtsen [Sat, 12 Sep 2020 11:06:35 +0000 (13:06 +0200)]
Further diff-no-select doc string clarification

* lisp/vc/diff.el (diff-no-select): Doc string clarification.

4 years agoAvoid unneeded recentering when header-line is used
Eli Zaretskii [Sat, 12 Sep 2020 08:06:54 +0000 (11:06 +0300)]
Avoid unneeded recentering when header-line is used

* src/xdisp.c (try_window): Account for header-line height only in
the scroll-margin at the window's top, but not at its bottom.
(Bug#42653)

4 years agoMove dired-jump from dired-x to dired (Bug#21981)
Stefan Kangas [Sat, 12 Sep 2020 01:42:37 +0000 (03:42 +0200)]
Move dired-jump from dired-x to dired (Bug#21981)

* lisp/dired-x.el (dired-bind-jump): Change into defvar and make
obsolete.
(dired-extra-startup): Doc fix.
(dired-jump, dired-jump-other-window): Move from here...
* lisp/dired.el (dired-jump, dired-jump-other-window): ...to here.

* lisp/bindings.el (ctl-x-map, ctl-x-4-map): Bind 'C-j' to
'dired-jump' and 'dired-jump-other-window'.

* doc/misc/dired-x.texi (Features, Installation)
(Miscellaneous Commands): Remove documentation of 'dired-jump'.
* doc/emacs/dired.texi (Dired Enter): Document 'dired-jump' and
dired-jump-other-window.
* etc/NEWS: Announce the above changes.

* test/lisp/dired-tests.el (dired-autoload): Adjust test.

4 years agoAdd some eshell completion patterns
Stefan Kangas [Fri, 11 Sep 2020 20:04:24 +0000 (22:04 +0200)]
Add some eshell completion patterns

* lisp/eshell/em-cmpl.el (eshell-command-completions-alist):
Add 'gunzip', 'bunzip2' and 'unxz'.

4 years agoRemove cedet items obsolete since 23.2
Stefan Kangas [Fri, 14 Aug 2020 11:40:29 +0000 (13:40 +0200)]
Remove cedet items obsolete since 23.2

* lisp/cedet/semantic.el (semantic-toplevel-bovine-table)
(semantic-toplevel-bovine-cache)
(semantic-before-toplevel-bovination-hook)
(semantic-after-toplevel-bovinate-hook, semantic-init-hooks)
(semantic-init-mode-hooks, semantic-init-db-hooks)
(semantic-bovination-working-type, semantic-bovinate-toplevel)
(semantic-bovinate-region-until-error)
(semantic-bovinate-from-nonterminal-full):
* lisp/cedet/semantic/db-mode.el (semanticdb-mode-hooks):
* lisp/cedet/semantic/decorate/mode.el
(semantic-decorate-pending-decoration-hooks):
* lisp/cedet/semantic/edit.el
(semantic-edits-incremental-reparse-failed-hooks):
* lisp/cedet/semantic/fw.el (define-mode-overload-implementation):
* lisp/cedet/semantic/idle.el
(semantic-before-idle-scheduler-reparse-hooks)
(semantic-after-idle-scheduler-reparse-hooks):
(semantic-eldoc-current-symbol-info)
* lisp/cedet/semantic/imenu.el (semantic-imenu-expand-type-parts)
(semantic-imenu-bucketize-type-parts)
(semantic-imenu-expandable-token):
* lisp/cedet/semantic/java.el
(semantic-java-prototype-nonterminal):
* lisp/cedet/semantic/lex.el (semantic-flex-token-start)
(semantic-flex-token-end, semantic-flex-token-text)
(semantic-flex-make-keyword-table, semantic-flex-keyword-p)
(semantic-flex-keyword-put, semantic-flex-keyword-get)
(semantic-flex-map-keywords, semantic-flex-keywords)
(semantic-flex-buffer, semantic-flex-list, semantic-flex):
* lisp/cedet/semantic/tag-file.el (semantic-find-nonterminal)
(semantic-find-dependency):
* lisp/cedet/semantic/tag-ls.el (semantic-nonterminal-full-name)
(semantic-nonterminal-protection, semantic-nonterminal-abstract)
(semantic-nonterminal-leaf):
* lisp/cedet/semantic/tag.el (semantic-token-type-parent)
(semantic-tag-make-assoc-list, semantic-expand-nonterminal):
* lisp/cedet/semantic/util.el (semantic-file-token-stream)
(semantic-something-to-stream):
* lisp/cedet/semantic/wisent.el (wisent-lex-make-token-table):
Delete many items obsolete since Emacs 23.2.
* lisp/cedet/semantic.el (semantic--set-buffer-cache)
(semantic-fetch-tags): Don't run removed hooks
'semantic-after-toplevel-bovinate-hook' and
'semantic-before-toplevel-bovination-hook'.
* lisp/cedet/semantic/bovine/el.el: Remove reference to obsolete
variable 'define-mode-overload-implementation'.
* lisp/cedet/semantic/doc.el (semantic-doc-snarf-comment-for-tag):
Don't bind removed variable 'semantic-ignore-comments'.
* lisp/cedet/semantic/fw.el (semantic-overload-symbol-from-function)
(semantic-alias-obsolete, semantic-varalias-obsolete): Declare
obsolete in favor of standard Emacs 'define-obsolete-*-alias'.
* lisp/cedet/semantic/grammar.el (semantic-grammar-ASSOC): Don't
use obsolete names.
* lisp/cedet/semantic/tag-ls.el (semantic-tag-full-package)
(semantic-tag-full-name): Doc fixes.
* lisp/cedet/semantic/util.el (semantic-describe-buffer): Don't bind
removed variable 'semantic-after-toplevel-bovinate-hook'.
* lisp/cedet/semantic/lex.el (semantic-flex-tokens)
(semantic-flex-unterminated-syntax-end-function)
(semantic-flex-extensions, semantic-flex-syntax-modifications)
(semantic-ignore-comments, semantic-flex-enable-newlines)
(semantic-flex-enable-whitespace, semantic-flex-enable-bol)
(semantic-number-expression, semantic-flex-depth): Make unused
variables obsolete.
; * etc/NEWS: List removed items.

4 years agoGuard against faulty flow-filled emails
Lars Ingebrigtsen [Fri, 11 Sep 2020 14:45:12 +0000 (16:45 +0200)]
Guard against faulty flow-filled emails

* lisp/mail/flow-fill.el (fill-flowed): Don't bug out if there's a
space at the end of the buffer.  This is probably not allowed in
the flow-fill specification, but has been observed in the wild.

4 years agoCC Mode: Fix minor bugs in the string handling functions
Alan Mackenzie [Fri, 11 Sep 2020 14:18:43 +0000 (14:18 +0000)]
CC Mode: Fix minor bugs in the string handling functions

These sometimes gave rise to the tail of a buffer being "stringed out".

* lixp/progmodes/cc-defs.el (c-will-be-unescaped): New macro.

* lisp/progmodes/cc-mode.el (c-before-change-check-unbalanced-strings)
(c-after-change-mark-abnormal-strings): Fix bugs in the handling of string
fence syntax-table text properties.

4 years agoImprove help-echo of Undo and Redo menu items
Eli Zaretskii [Fri, 11 Sep 2020 14:13:44 +0000 (17:13 +0300)]
Improve help-echo of Undo and Redo menu items

* lisp/menu-bar.el (undo-redo, undo): Improve the wording of
help-echo strings.

4 years agoTweak previous mailcap patch (for external viewers)
Lars Ingebrigtsen [Fri, 11 Sep 2020 13:36:55 +0000 (15:36 +0200)]
Tweak previous mailcap patch (for external viewers)

* lisp/net/mailcap.el (mailcap-view-mime): Delete contents of the
buffer in the external case, too.

4 years agoD-Bus: Implement other compound types of properties
Michael Albinus [Fri, 11 Sep 2020 13:34:33 +0000 (15:34 +0200)]
D-Bus: Implement other compound types of properties

* doc/misc/dbus.texi (Errors and Events):
* etc/NEWS: Mention dbus-show-dbus-errors.

* lisp/net/dbus.el (dbus-compound-types): New defconst.
(dbus): New defgroup.
(dbus-show-dbus-errors): New defcustom.
(dbus-ignore-errors): Use it.
(dbus-set-property): Simplify.
(dbus-property-handler): Implement other compound types of properties.

* test/lisp/net/dbus-tests.el (dbus--test-register-service)
(dbus-test05-register-property): Extend tests.

4 years agoFix up eldef shortening of the minibuffer
Lars Ingebrigtsen [Fri, 11 Sep 2020 12:52:25 +0000 (14:52 +0200)]
Fix up eldef shortening of the minibuffer

* lisp/minibuf-eldef.el (minibuffer-default--in-prompt-regexps):
Don't include the ": " bit in the portion to be replaced
(bug#12443).

4 years agoImprove diff-no-select doc string
Lars Ingebrigtsen [Fri, 11 Sep 2020 12:26:15 +0000 (14:26 +0200)]
Improve diff-no-select doc string

* lisp/vc/diff.el (diff-no-select): Improve the doc string somewhat.

4 years agoFix viewing PDFs from eww with external viewers
Lars Ingebrigtsen [Fri, 11 Sep 2020 12:06:02 +0000 (14:06 +0200)]
Fix viewing PDFs from eww with external viewers

* lisp/net/mailcap.el (mailcap-view-mime): Most MIME viewers can't
take input on stdin (and in any case, "-" is not how many of them
designate stdin) (bug#43318).  So rewrite to put the data on a
file and feed the file name to the viewer.

4 years agoCalc: regularise test names
Mattias Engdegård [Fri, 11 Sep 2020 11:11:43 +0000 (13:11 +0200)]
Calc: regularise test names

* test/lisp/calc/calc-tests.el (calc-remove-units, calc-extract-units)
(calc-convert-units, calc-bug-23889, calc-trig, calc-format-radix)
(calc-calendar, calc-solve-linear-system):
Use a uniform naming convention (calc- prefix) to simplify test running.

4 years agoSimplify big integer constants in Calc
Mattias Engdegård [Fri, 11 Sep 2020 11:02:59 +0000 (13:02 +0200)]
Simplify big integer constants in Calc

* lisp/calc/calc-comb.el (math-small-factorial-table):
* lisp/calc/calc-funcs.el (math-bernoulli-b-cache):
* lisp/calc/calc.el (math-2-word-size, math-half-2-word-size):
No need for math-read-number-simple.

4 years agoFix calc tests when running noninteractively
Mattias Engdegård [Fri, 11 Sep 2020 10:54:00 +0000 (12:54 +0200)]
Fix calc tests when running noninteractively

This error was introduced in 8e1376a39125c3ffc0484077b502444d853eca79.

* lisp/calc/calc.el (calc--header-line): Prevent size from being negative.

4 years ago* lisp/simple.el (undo-redo): Doc fix.
Eli Zaretskii [Fri, 11 Sep 2020 05:56:51 +0000 (08:56 +0300)]
* lisp/simple.el (undo-redo): Doc fix.

4 years agoAllow an info structure as argument for gnus-group-get-parameter
Andrew G Cohen [Fri, 11 Sep 2020 02:31:47 +0000 (10:31 +0800)]
Allow an info structure as argument for gnus-group-get-parameter

* lisp/gnus/gnus.el (gnus-group-get-parameter): Allow the group
argument to be either a group name or a group info structure. This is
then parallel to gnus-group-set-parameter.

4 years ago* lisp/loadup.el ("button"): Move to after loaddefs.el
Stefan Monnier [Fri, 11 Sep 2020 02:10:02 +0000 (22:10 -0400)]
* lisp/loadup.el ("button"): Move to after loaddefs.el

4 years agoClean up group-finding in Gnus nnir search
Andrew G Cohen [Fri, 11 Sep 2020 01:02:09 +0000 (09:02 +0800)]
Clean up group-finding in Gnus nnir search

This is part of removing code from nnir.el that isn't related to
searching backends and therefore belongs somewhere else.

* lisp/gnus/gnus-group.el (gnus-group-make-search-group)
(gnus-group-read-ephemeral-search-group): Put the logic for
determining the groups to search here, rather than in nnir. Improve
documentation.
* lisp/gnus/gnus-int.el (gnus-server-get-active): Renamed from
'nnir-get-active.
* lisp/gnus/nnir.el (nnir-run-imap, nnir-run-find-grep): Use it.
(nnir-get-active): Remove.
(nnir-make-specs): Make obsolete.
* lisp/gnus/nnselect.el (nnselect-group-server):  Make obsolete in
favor of 'gnus-group-server.

4 years agoAllow editing articles in Gnus nnselect groups
Andrew G Cohen [Thu, 10 Sep 2020 23:31:56 +0000 (07:31 +0800)]
Allow editing articles in Gnus nnselect groups

* lisp/gnus/nnselect.el (nnselect-request-replace-article): New function.

4 years agoFix QNX build
Elad Lahav [Thu, 10 Sep 2020 22:01:06 +0000 (00:01 +0200)]
Fix QNX build

* configure.ac: The __NO_EXT_QNX flag is no longer needed, and is
masking the declaration of memset_s() (bug#43234).
Copyright-paperwork-exempt: yes

4 years agoUse a header line in calc mode instead of a regular in-buffer line
Boruch Baum [Thu, 10 Sep 2020 21:44:16 +0000 (23:44 +0200)]
Use a header line in calc mode instead of a regular in-buffer line

* lisp/calc/calc.el (calc-trail-here): Use a header line.
(calc--header-line): New function.
(calc-trail-mode): Use a header line.

4 years agoTweak how `M-RET' in Message mode fills paragraphs
Lars Ingebrigtsen [Thu, 10 Sep 2020 21:26:30 +0000 (23:26 +0200)]
Tweak how `M-RET' in Message mode fills paragraphs

* lisp/gnus/message.el (message-newline-and-reformat): Pick up any
longer white-space prefix before starting to fill (bug#43299).
This fixes the problem of hitting M-RET on a line that's just ">".

4 years agoDoc fix for diff-no-select
Lars Ingebrigtsen [Thu, 10 Sep 2020 21:03:50 +0000 (23:03 +0200)]
Doc fix for diff-no-select

* lisp/vc/diff.el (diff-no-select): Document the BUF argument
(bug#43307).

4 years agoAdd a "Redo" entry to the menu
Caio Henrique [Thu, 10 Sep 2020 20:57:48 +0000 (22:57 +0200)]
Add a "Redo" entry to the menu

* lisp/menu-bar.el (menu-bar-edit-menu): Add "Redo" under "Undo"
in the Edit menu (bug#43315).

Copyright-paperwork-exempt: yes

4 years ago* lisp/textmodes/artist.el: Remove obsolete comments.
Stefan Kangas [Thu, 10 Sep 2020 18:56:46 +0000 (20:56 +0200)]
* lisp/textmodes/artist.el: Remove obsolete comments.

4 years ago; Fix typos in format-prompt
Juri Linkov [Thu, 10 Sep 2020 18:58:26 +0000 (21:58 +0300)]
; Fix typos in format-prompt

4 years agoConvert indent test for css-mode into automatic test
Stefan Kangas [Thu, 10 Sep 2020 18:40:34 +0000 (20:40 +0200)]
Convert indent test for css-mode into automatic test

* test/lisp/textmodes/css-mode-tests.el (css-mode-test-indent): New
test.
(css-mode-tests-data-dir): New variable.
* test/manual/indent/css-mode.css: Move from here...
* test/lisp/textmodes/css-mode-resources/test-indent.css: ...to here.

4 years ago; * test/manual/indent/elisp.el: Use lexical-binding.
Stefan Kangas [Thu, 10 Sep 2020 18:31:42 +0000 (20:31 +0200)]
; * test/manual/indent/elisp.el: Use lexical-binding.

4 years agoMark some tests as expensive
Stefan Kangas [Thu, 10 Sep 2020 18:25:19 +0000 (20:25 +0200)]
Mark some tests as expensive

* test/lisp/autorevert-tests.el
(auto-revert-test00-auto-revert-mode)
(auto-revert-test03-auto-revert-tail-mode)
(auto-revert-test04-auto-revert-mode-dired):
* test/lisp/cedet/semantic-utest-c.el
(semantic-test-c-preprocessor-simulation):
* test/lisp/cedet/srecode-utest-getset.el
(srecode-utest-getset-output):
* test/lisp/emacs-lisp/cl-seq-tests.el (cl-seq-test-bug24264):
* test/lisp/emacs-lisp/package-tests.el
(package-test-update-archives-async):
* test/lisp/filenotify-tests.el (file-notify-test03-events)
(file-notify-test04-autorevert)
(file-notify-test05-file-validity, file-notify-test08-backup):
* test/lisp/net/gnutls-tests.el (test-gnutls-005-aead-ciphers):
* test/lisp/shadowfile-tests.el (shadow-test00-clusters)
(shadow-test09-shadow-copy-files):

4 years agoUse lexical-binding in mml-sec-tests.el
Stefan Kangas [Thu, 10 Sep 2020 17:32:33 +0000 (19:32 +0200)]
Use lexical-binding in mml-sec-tests.el

* test/lisp/gnus/mml-sec-tests.el: Use lexical-binding.
(mml-secure-test-mail-fixture)
(mml-secure-test-en-decrypt-with-passphrase): Fix warnings.

4 years ago* test/lisp/org/org-tests.el: Use lexical-binding.
Stefan Kangas [Thu, 10 Sep 2020 16:55:54 +0000 (18:55 +0200)]
* test/lisp/org/org-tests.el: Use lexical-binding.

4 years agoUse lexical-binding in url-future-tests.el
Stefan Kangas [Thu, 10 Sep 2020 16:54:12 +0000 (18:54 +0200)]
Use lexical-binding in url-future-tests.el

* test/lisp/url/url-future-tests.el: Use lexical-binding.
(url-future-tests--saver): New variable.
(url-future-tests): Use new variable.

4 years agoUse lexical-binding in semantic-utest-c.el
Stefan Kangas [Thu, 10 Sep 2020 16:47:07 +0000 (18:47 +0200)]
Use lexical-binding in semantic-utest-c.el

* test/lisp/cedet/semantic-utest-c.el: Use lexical-binding.
(semantic-test-gcc-output-parser): Fix warning.

4 years agoImplement D-Bus properties with compound type.
Michael Albinus [Thu, 10 Sep 2020 16:49:22 +0000 (18:49 +0200)]
Implement D-Bus properties with compound type.

* lisp/net/dbus.el (dbus-set-property): Fix thinko.
(dbus-register-property, dbus-property-handler): Support compound
properties.

* src/dbusbind.c (dbus-registered-objects-table): Fix docstring.

* test/lisp/net/dbus-tests.el (dbus--test-interface): Make it
different to `dbus--test-service'.
(dbus-test05-register-property)
(dbus-test05-register-property-several-paths): Adapt tests.

4 years agoOpen describe-function NEWS links in view-mode
Nick Savage [Thu, 10 Sep 2020 13:18:46 +0000 (15:18 +0200)]
Open describe-function NEWS links in view-mode

* lisp/help-mode.el (help-news): Open describe-function NEWS links in
view-mode (Bug#39912)

Copyright-paperwork-exempt: yes

4 years agoFix up < and > "date" scoring rules in Gnus
Alex Bochannek [Thu, 10 Sep 2020 13:16:04 +0000 (15:16 +0200)]
Fix up < and > "date" scoring rules in Gnus

* lisp/gnus/gnus-score.el (gnus-score-date): The previous < and >
"date" scoring rules (added in the previous patch) had reversed
logic (bug#43270).

Copyright-paperwork-exempt: yes

4 years agoFix :match function for the file widget
Mauro Aranda [Thu, 10 Sep 2020 13:12:50 +0000 (15:12 +0200)]
Fix :match function for the file widget

* lisp/wid-edit.el (file widget): Return nil if value is not a
string (bug#25678).

4 years agoRevert back to using ESC as viper-ESC-key again
Lars Ingebrigtsen [Thu, 10 Sep 2020 12:21:07 +0000 (14:21 +0200)]
Revert back to using ESC as viper-ESC-key again

* lisp/emulation/viper-keym.el (viper-ESC-key): Revert back to
using ESC instead of `escape' (bug#18182).  This allows using
`C-[' again on terminals for ESC.  The key should be mapped back
to `escape' by `function-key-map'.

4 years agoFix new summary-line after editing an article in Gnus
Andrew G Cohen [Thu, 10 Sep 2020 12:23:34 +0000 (20:23 +0800)]
Fix new summary-line after editing an article in Gnus

* lisp/gnus/gnus-sum.el (gnus-summary-edit-article-done): Strip ^M
from the ends of lines after saving an edited article. Otherwise the
new header isn't always parsed properly, resulting in an incorrect
subject line in the summary buffer.

4 years agoSet `generated-autoload-file' in erc-status-sidebar.el
Amin Bandali [Thu, 10 Sep 2020 03:03:06 +0000 (23:03 -0400)]
Set `generated-autoload-file' in erc-status-sidebar.el

* lisp/erc/erc-status-sidebar.el: Set `generated-autoload-file' to
ERC's dedicated "erc-loaddefs.el", since we don't need this file's
autoloaded functions to be available before ERC itself is loaded.

4 years ago; Silence byte-compilation warning in last change
Basil L. Contovounesios [Wed, 9 Sep 2020 23:20:24 +0000 (00:20 +0100)]
; Silence byte-compilation warning in last change

* lisp/tab-line.el (tab-line-switch-cycling): Move definition before
first use.

4 years ago; Fix typo in last change
Basil L. Contovounesios [Wed, 9 Sep 2020 23:15:09 +0000 (00:15 +0100)]
; Fix typo in last change

4 years agoIntroduce a new variable tab-line-switch-cycling
Kiso Katsuyuki [Wed, 9 Sep 2020 19:22:49 +0000 (22:22 +0300)]
Introduce a new variable tab-line-switch-cycling

If it is set t, enable cycling tab switch.  Default is nil.

Copyright-paperwork-exempt: yes

4 years agoSuppress errors of tab-line-switch functions
Kiso Katsuyuki [Wed, 9 Sep 2020 19:16:34 +0000 (22:16 +0300)]
Suppress errors of tab-line-switch functions

Traget errors occurs when tab-line-switch-to-prev-tab or
tab-line-switch-to-next-tab is invoked in a buffer which is not in
tabs

Copyright-paperwork-exempt: yes

4 years agoFix up fix for bug#19032
João Távora [Wed, 9 Sep 2020 19:12:45 +0000 (20:12 +0100)]
Fix up fix for bug#19032

* lisp/icomplete.el (icomplete-ret): Call
minibuffer-icomplete-and-exit, not minibuffer-exit.

4 years agoMinor clean ups and doc fixes in find-dired
Stefan Kangas [Wed, 9 Sep 2020 18:14:54 +0000 (20:14 +0200)]
Minor clean ups and doc fixes in find-dired

* lisp/find-dired.el (find-ls-option, find-dired): Doc fixes.
(find-dired, kill-find): Minor clean ups.

4 years agoMake flyspell-prog-text-faces into defcustom
Stefan Kangas [Thu, 27 Aug 2020 19:56:26 +0000 (21:56 +0200)]
Make flyspell-prog-text-faces into defcustom

* lisp/textmodes/flyspell.el (flyspell-prog-text-faces):
Make into defcustom.  (Bug#32136)

4 years agoAdd gv-define-expander for plist-get
Naoya Yamashita [Wed, 9 Sep 2020 00:52:39 +0000 (09:52 +0900)]
Add gv-define-expander for plist-get

It is necessary to make plist-get as a generalized variable, and this
definition allows user to use setf and other useful functions on
plist-get.

* lisp/emacs-lisp/gv.el: Add gv-define-expander for plist-get

* lisp/emacs-lisp/gv-tests.el: Add new tests for plist-get

4 years ago* lisp/dnd.el: Use lexical-binding. Remove redundant :group
Stefan Monnier [Wed, 9 Sep 2020 17:33:15 +0000 (13:33 -0400)]
* lisp/dnd.el: Use lexical-binding.  Remove redundant :group

(dnd--unescape-uri): Mark it internal, but don't mark it inlinable.

* lisp/cus-edit.el (dnd): Move the group to dnd.el.

4 years ago(define-minor-mode): Don't compute a default :group (bug#41145)
Stefan Monnier [Wed, 9 Sep 2020 17:29:59 +0000 (13:29 -0400)]
(define-minor-mode): Don't compute a default :group (bug#41145)

* lisp/emacs-lisp/easy-mmode.el (define-minor-mode): Rely on the
`defcustom`s own defaulting for the :group.

* lisp/display-fill-column-indicator.el
(global-display-fill-column-indicator-mode): Remove now redundant :group.

* lisp/cus-dep.el (custom--get-def): New function.
(custom-make-dependencies): Use it.

4 years agoAdapt Tramp doc
Michael Albinus [Wed, 9 Sep 2020 17:29:18 +0000 (19:29 +0200)]
Adapt Tramp doc

* doc/misc/tramp.texi (Remote shell setup):
Mention password-word-equivalents.

* lisp/net/tramp.el (tramp-password-prompt-regexp): Fix docstring.

4 years agoMerge from origin/emacs-27
Glenn Morris [Wed, 9 Sep 2020 14:51:14 +0000 (07:51 -0700)]
Merge from origin/emacs-27

366a97c980 (origin/emacs-27) Avoid crashes when trying to load bad GI...
7938713105 C++ Mode: handle comma separated brace initializers.
2b95300cf8 * lisp/display-fill-column-indicator.el: Fix bug#41145

4 years ago; Merge from origin/emacs-27
Glenn Morris [Wed, 9 Sep 2020 14:51:14 +0000 (07:51 -0700)]
; Merge from origin/emacs-27

The following commits were skipped:

5489524ab0 Backport recent change in tramp-tests.el from master, don'...
c9708e5ba2 Fix bug in dbus.el; do not merge with master

4 years agoMerge from origin/emacs-27
Glenn Morris [Wed, 9 Sep 2020 14:51:14 +0000 (07:51 -0700)]
Merge from origin/emacs-27

9b35b0c99c ; * lisp/man.el (Man-mode): Fix formatting.
abca75d2e9 ; Fix typos; change "Emacs-Lisp" to "Emacs Lisp"

4 years ago; Merge from origin/emacs-27
Glenn Morris [Wed, 9 Sep 2020 14:51:14 +0000 (07:51 -0700)]
; Merge from origin/emacs-27

The following commit was skipped:

e0a8a7e94c (emacs-27) ; Auto-commit of loaddefs files.

4 years agoMerge from origin/emacs-27
Glenn Morris [Wed, 9 Sep 2020 14:51:12 +0000 (07:51 -0700)]
Merge from origin/emacs-27

302f71e55d Fix help message with help-window-select
0fb3fc92b3 Remove obsolete "Wide Characters" section of Gnus manual

4 years agoFix thinko in dbus.el
Michael Albinus [Wed, 9 Sep 2020 12:53:26 +0000 (14:53 +0200)]
Fix thinko in dbus.el

* doc/misc/dbus.texi (Register Objects): Rename from "Receiving
Method Calls".  Add reference to D-Bus API Design document.

* lisp/net/dbus.el (dbus-managed-objects-handler): Fix thinko.

* test/lisp/net/dbus-tests.el (dbus-test05-register-property)
(dbus-test05-register-property-several-paths): Extend tests.

4 years agoAdd the (hopefully) correct debbugs header for patches
Lars Ingebrigtsen [Wed, 9 Sep 2020 11:06:50 +0000 (13:06 +0200)]
Add the (hopefully) correct debbugs header for patches

* lisp/mail/emacsbug.el (submit-emacs-patch): Mark the submission
as a patch.

4 years agoImplement a new `submit-emacs-patch' command
Lars Ingebrigtsen [Wed, 9 Sep 2020 10:59:23 +0000 (12:59 +0200)]
Implement a new `submit-emacs-patch' command

* doc/emacs/trouble.texi (Checklist): Mention the new command.

* doc/lispref/intro.texi (Caveats): Ditto.

* lisp/mail/emacsbug.el (emacs-bug--system-description): Factor
out into own function.
(report-emacs-bug): ... from here.
(submit-emacs-patch): New command.

4 years agoMake the button navigation commands available via a minor mode
Lars Ingebrigtsen [Wed, 9 Sep 2020 10:40:36 +0000 (12:40 +0200)]
Make the button navigation commands available via a minor mode

* lisp/button.el (button-mode): New minor mode.

* doc/lispref/display.texi (Button Buffer Commands): Mention it.

4 years agoMake Gnus cache work with nnselect
Andrew G Cohen [Wed, 9 Sep 2020 09:01:44 +0000 (17:01 +0800)]
Make Gnus cache work with nnselect

* lisp/gnus/gnus-cache.el (gnus-cache-possibly-enter-article)
(gnus-cache-possibly-remove-articles)
(gnus-cache-possibly-remove-article): Use originating article info for
nnselect groups.

4 years agoAdd Gnus function to make a persistent group from a search result
Andrew G Cohen [Wed, 9 Sep 2020 01:58:39 +0000 (09:58 +0800)]
Add Gnus function to make a persistent group from a search result

* lisp/gnus/gnus-sum.el (gnus-summary-make-group-from-search): New
command (bound to C-c C-p in summary buffers).
* doc/misc/gnus.texi (What is nnir?): Document it. Correct previous
errors.
* etc/NEWS (Gnus): Mention it.

4 years agoAllow DEFAULT in format-prompt to be a list
Lars Ingebrigtsen [Tue, 8 Sep 2020 21:10:50 +0000 (23:10 +0200)]
Allow DEFAULT in format-prompt to be a list

* doc/lispref/minibuf.texi (Text from Minibuffer): Document it.

* lisp/minibuffer.el (format-prompt): Allow DEFAULT to be a list
(and use the first element).  This is how many of the prompting
functions interpret their default parameters.

4 years agoFix crash from clicking on menu bar (bug#34762, bug#26982)
Win Treese [Tue, 8 Sep 2020 19:32:15 +0000 (15:32 -0400)]
Fix crash from clicking on menu bar (bug#34762, bug#26982)

* src/nsmenu.m (ns_update_menubar): Remove extraneous use of
autorelease pool.

4 years agoRevert "Use format-prompt in calls to read-from-minibuffer with default value"
Lars Ingebrigtsen [Tue, 8 Sep 2020 20:41:33 +0000 (22:41 +0200)]
Revert "Use format-prompt in calls to read-from-minibuffer with default value"

This reverts commit 1921d2176bb9127d2483a1c8a470abfc3f4eec33.

The DEFAULT-VALUE here isn't really a default value (since READ is nil), so
don't say there's a default.

4 years agoDoc string update for tramp-password-prompt-regexp
Lars Ingebrigtsen [Tue, 8 Sep 2020 20:07:17 +0000 (22:07 +0200)]
Doc string update for tramp-password-prompt-regexp

* lisp/net/tramp.el (tramp-password-prompt-regexp): Mention
password-word-equivalents in the doc string.

4 years agoUse mouse-wheel-up-event in mwheel-tests.el
Daniel Martín [Tue, 8 Sep 2020 12:18:17 +0000 (14:18 +0200)]
Use mouse-wheel-up-event in mwheel-tests.el

Enabling mouse-wheel-mode binds two different mouse events, depending
on the operating system. The correct way to check for those events is
by checking mouse-wheel-up-event, as explained in the ELisp manual.

* test/lisp/mwheel-tests.el (mwheel-test-enable/disable): Check
mouse-wheel-up-event instead of mouse-4 to make the test work
irrespective of the platform it's running.

4 years agoAvoid crashes when trying to load bad GIF files
Eli Zaretskii [Tue, 8 Sep 2020 16:17:23 +0000 (19:17 +0300)]
Avoid crashes when trying to load bad GIF files

* src/image.c (gif_load): Handle the case when GifErrorString
returns NULL.  (Bug#43281)

4 years agoSkip failing cperl test on hydra
Glenn Morris [Tue, 8 Sep 2020 14:43:53 +0000 (07:43 -0700)]
Skip failing cperl test on hydra

* test/lisp/progmodes/cperl-mode-tests.el (cperl-mode-test-bug-10483):
Skip on hydra.nixos.org.

4 years ago* etc/NEWS: Add D-Bus changes.
Michael Albinus [Tue, 8 Sep 2020 14:24:22 +0000 (16:24 +0200)]
* etc/NEWS: Add D-Bus changes.

4 years agoImplement typed D-Bus properties (Bug#43252)
Michael Albinus [Tue, 8 Sep 2020 14:24:11 +0000 (16:24 +0200)]
Implement typed D-Bus properties (Bug#43252)

* doc/misc/dbus.texi (Properties and Annotations)
(Receiving Method Call): Document optional type symbol in
`dbus-set-property' and `dbus-register-property'.

* lisp/net/dbus.el (dbus-error-unknown-interface)
(dbus-error-unknown-method, dbus-error-unknown-object)
(dbus-error-unknown-property): New defconsts.
(dbus-peer-handler): Improve error handling.
(dbus-introspect-get-signature): Handle also properties.
(dbus-set-property, dbus-register-property): Allow optional TYPE
symbol for VALUE.  (Bug#43252)
(dbus-property-handler): Implement property types.  Improve error
handling.

* src/dbusbind.c (dbus-message-internal, dbus-registered-objects-table):
Fix docstring.

* test/lisp/net/dbus-tests.el (dbus-test05-register-property):
Extend test.
(dbus-test05-register-property-several-paths): New test.