]> git.eshelyaron.com Git - emacs.git/log
emacs.git
4 years agoMinor fixes of the last commit
Eli Zaretskii [Fri, 7 Feb 2020 10:10:43 +0000 (12:10 +0200)]
Minor fixes of the last commit

* src/xdisp.c (get_window_cursor_type): Fix indentation and
line-filling.
* doc/lispref/frames.texi (Cursor Parameters):
* doc/emacs/display.texi (Cursor Display):
* etc/NEWS: Fix wording and capitalization of the last change.

4 years agoSupport for (box . SIZE) 'cursor-type'
Zajcev Evgeny [Mon, 27 Jan 2020 12:49:46 +0000 (15:49 +0300)]
Support for (box . SIZE) 'cursor-type'

This allows control of the minimum size of a masked image under
which the box cursor becomes hollow.
* buffer.c (cursor-type): Add commentary about (box . SIZE)
'cursor-type'.
* xdisp.c (get_specified_cursor_type): Check for 'cursor-type'
of the form (box . SIZE).
(get_window_cursor_type): Check masked image size for
(box . SIZE) 'cursor-type'.

* doc/emacs/display.texi (Cursor Display):
* doc/emacs/display.texi (Cursor Parameters): Add description
of (box . SIZE) 'cursor-type'.

* etc/NEWS: Mention the new (box . SIZE) 'cursor-type'.

4 years agoMerge
Richard Stallman [Thu, 6 Feb 2020 23:30:47 +0000 (18:30 -0500)]
Merge

4 years agoLispref: Explain avoiding lambdas on hooks.
Richard Stallman [Thu, 6 Feb 2020 23:28:49 +0000 (18:28 -0500)]
Lispref: Explain avoiding lambdas on hooks.

(lispref/modes.texi): Explain avoiding lambdas on hooks.

4 years ago; Merge from origin/emacs-27
Glenn Morris [Thu, 6 Feb 2020 15:50:29 +0000 (07:50 -0800)]
; Merge from origin/emacs-27

The following commit was skipped:

b2e27d8617 (origin/emacs-27) Revert "Signal user-error on duplicate p...

4 years agoMerge from origin/emacs-27
Glenn Morris [Thu, 6 Feb 2020 15:50:29 +0000 (07:50 -0800)]
Merge from origin/emacs-27

09eed01afb Wrap some set-auto-mode calls with delay-mode-hooks (bug#3...
4a0a114505 Support ido-vertical-mode better
ef5fba9f40 Fix faces tab-bar and tab-line.
831508422e Cater for 3-argument version of pthread_setname_np
f27187f963 Clarify lexvar restrictions for add-to-ordered-list, add-t...
32763dac46 Replace add-to-list to lexical variable with push (bug#39373)
d07f177382 Clarify add-to-list documentation (bug#39373)
d3d2ea927c MH-E: alter content in mh-display-msg, not mh-show-mode
db7fa2546f Update documentation for mh-show-mode-hook
d10be6bf28 Example goto-addr hook: MH-E already uses goto-address

# Conflicts:
# etc/NEWS

4 years ago* lisp/battery.el: Use lexical-binding. Drop Redundant `:group`s.
Stefan Monnier [Thu, 6 Feb 2020 15:41:26 +0000 (10:41 -0500)]
* lisp/battery.el: Use lexical-binding.  Drop Redundant `:group`s.

4 years agoMake 'M-x battery RET' work out-of-box for UPower users.
Zajcev Evgeny [Thu, 6 Feb 2020 07:35:12 +0000 (10:35 +0300)]
Make 'M-x battery RET' work out-of-box for UPower users.

* battery.el (battery-upower-prop): Removed in favor for
  'battery-upower-device-property'.
  (battery-upower-device): Can be nil, meaning autodetect the battery
  device.
  (battery-upower-line-power-device): New.  line-power device.  Can be
  nil, meaning autodetect line-power device.
  (battery-status-function): Check UPower service is available to use
  'battery-upower' as status function.
  (battery-upower): Speedup.  Request D-Bus only once, fetching all
  the properties at once.  Provide string for "%b" format spec.
  (battery-upower-device-list, battery-upower-device-all-properties,
  battery-upower-device-property): New functions to work with UPower
  devices.
  (battery-upower-dbus-service, battery-upower-dbus-interface,
  battery-upower-dbus-path, battery-upower-dbus-device-interface,
  battery-upower-dbus-device-path): New constants describing UPower
  D-Bus service.

4 years agoRevert "Signal user-error on duplicate package refresh"
Stefan Kangas [Thu, 6 Feb 2020 12:30:33 +0000 (13:30 +0100)]
Revert "Signal user-error on duplicate package refresh"

That commit caused errors when the connection was dropped in the
middle of a package refresh.  To avoid any further issues this close
to the pretest, we simply remove this feature.  (Bug#39187)

Don't merge to master, where we will instead try to fix the bug.

4 years agoWrap some set-auto-mode calls with delay-mode-hooks (bug#39190)
Juri Linkov [Wed, 5 Feb 2020 22:38:53 +0000 (00:38 +0200)]
Wrap some set-auto-mode calls with delay-mode-hooks (bug#39190)

* lisp/gnus/mm-view.el (mm-display-inline-fontify):
* lisp/vc/diff-mode.el (diff-syntax-fontify-props):
* lisp/vc/vc.el (vc-find-revision-no-save):
Add delay-mode-hooks around set-auto-mode calls
to not run hooks that might assume buffer-file-name
really associates buffer with a file.

4 years ago* lisp/wid-edit.el (widget-choose): Use read-char-from-minibuffer (bug#17272)
Juri Linkov [Wed, 5 Feb 2020 22:27:37 +0000 (00:27 +0200)]
* lisp/wid-edit.el (widget-choose): Use read-char-from-minibuffer (bug#17272)

4 years agoEval macro arg just once
Tino Calancha [Wed, 5 Feb 2020 18:05:23 +0000 (19:05 +0100)]
Eval macro arg just once

* lisp/emacs-lisp/cl-macs.el (cl--push-clause-loop-body):
Use `macroexp-let2' (Bug#39428).

4 years agoAdd ':extend t' to mm-uu-extract face
Tassilo Horn [Wed, 5 Feb 2020 17:07:09 +0000 (18:07 +0100)]
Add ':extend t' to mm-uu-extract face

* lisp/gnus/mm-uu.el (mm-uu-extract): Add ':extend t' to mm-uu-extract
face.

4 years agoSilence byte-compiler warning
Stefan Kangas [Wed, 5 Feb 2020 12:28:31 +0000 (13:28 +0100)]
Silence byte-compiler warning

* lisp/emacs-lisp/bytecomp.el (byte-compile-insert-header): Silence
byte-compiler warning about "Unused lexical variable".

4 years agoDon't use obsolete function in package-tests.el
Stefan Kangas [Wed, 5 Feb 2020 12:22:56 +0000 (13:22 +0100)]
Don't use obsolete function in package-tests.el

* test/lisp/emacs-lisp/package-tests.el
(package-test-update-archives, package-test-signed): Use
'revert-buffer' instead of obsolete 'package-menu-refresh'.

4 years agoAdd new filter commands to Package Menu (Bug#38424)
Stefan Kangas [Wed, 5 Feb 2020 12:12:01 +0000 (13:12 +0100)]
Add new filter commands to Package Menu (Bug#38424)

* lisp/emacs-lisp/package.el (package-menu-filter-by-version)
(package-menu-filter-by-status, package-menu-filter-by-archive):
New filter commands.
(package-menu--filter-by): New helper function.
(package-menu-filter-by-keyword, package-menu-filter-by-name): Use
the above helper function.
(package-menu-mode-menu):
(package-menu-mode-map): Update menu to include new filter commands.
* doc/emacs/package.texi (Package Menu): Document the new commands and
re-arrange the sort order of commands to be closer to the one in
describe-major-mode.
* etc/NEWS: Announce the new commands.

* lisp/emacs-lisp/package.el (package-menu--display): New function
extracted from....
(package-menu--generate): ...here.

* test/lisp/emacs-lisp/package-tests.el (with-package-menu-test):
New macro.
(package-test-update-listing, package-test-list-filter-by-name)
(package-test-list-filter-clear): Use above macro.
(package-test-list-filter-by-archive)
(package-test-list-filter-by-keyword)
(package-test-list-filter-by-status)
(package-test-list-filter-by-version-=)
(package-test-list-filter-by-version-<)
(package-test-list-filter-by-version->): New tests.
(package-test-filter-by-version): New helper function.

4 years agoMinor fix in tramp-test32-shell-command
Michael Albinus [Wed, 5 Feb 2020 10:41:14 +0000 (11:41 +0100)]
Minor fix in tramp-test32-shell-command

* test/lisp/net/tramp-tests.el (tramp-test32-shell-command):
Set `default-directory'.

4 years agoHandle problem with *BSD libedit in Tramp
Michael Albinus [Wed, 5 Feb 2020 10:40:52 +0000 (11:40 +0100)]
Handle problem with *BSD libedit in Tramp

* lisp/net/tramp-sh.el (tramp-sh-extra-args): Add "-noediting" as
bash arg.
(tramp-open-shell):  Provide proper "~/.editrc" if needed.  (Bug#39399)

4 years ago* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-system-info): Fix error.
Michael Albinus [Wed, 5 Feb 2020 10:40:06 +0000 (11:40 +0100)]
* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-system-info): Fix error.

4 years ago* lisp/gnus/gnus-sum.el (gnus-read-move-group-name): Use user-error
Stefan Monnier [Wed, 5 Feb 2020 03:32:39 +0000 (22:32 -0500)]
* lisp/gnus/gnus-sum.el (gnus-read-move-group-name): Use user-error

4 years agoSupport ido-vertical-mode better
Dmitry Gutov [Tue, 4 Feb 2020 23:50:12 +0000 (02:50 +0300)]
Support ido-vertical-mode better

* lisp/ido.el (ido-exhibit):
Prepend a space to INF if it starts with a newline (bug#39379).

4 years agoFix faces tab-bar and tab-line.
Juri Linkov [Tue, 4 Feb 2020 23:27:30 +0000 (01:27 +0200)]
Fix faces tab-bar and tab-line.

* lisp/tab-bar.el (tab-bar) <defface>:
* lisp/tab-line.el (tab-line) <defface>:
Check for min-colors 88 instead of type x.

4 years ago* lisp/emacs-lisp/map.el: Add keyword-only pattern abbreviation
Adam Porter [Sun, 2 Feb 2020 16:17:20 +0000 (10:17 -0600)]
* lisp/emacs-lisp/map.el: Add keyword-only pattern abbreviation

* lisp/emacs-lisp/map.el: Update version to 2.1.
((pcase-defmacro map)): Update docstring.
(map--make-pcase-bindings): Match keyword pattern.

* test/lisp/emacs-lisp/map-tests.el (test-map-plist-pcase): Add test.

4 years agoSilence byte-compiler warning
Stefan Kangas [Tue, 4 Feb 2020 01:22:34 +0000 (02:22 +0100)]
Silence byte-compiler warning

* lisp/dired.el (grep-read-files-function): Add defvar to silence
byte-compiler warning.

4 years agoProvide default for describe-keymap prompt
Stefan Kangas [Sat, 18 Jan 2020 23:17:42 +0000 (00:17 +0100)]
Provide default for describe-keymap prompt

* lisp/help-fns.el (describe-keymap): Provide a reasonable
default for prompt.  (Bug#30660)
(help-fns-find-keymap-name)
(help-fns--most-relevant-active-keymap): New functions.

* test/lisp/help-fns-tests.el
(help-fns-test-find-keymap-name): New test.

4 years agoAdd new help command describe-keymap
Stefan Kangas [Fri, 23 Aug 2019 23:02:04 +0000 (01:02 +0200)]
Add new help command describe-keymap

* lisp/help-fns.el (describe-keymap): New command to show key bindings
for a given keymap.  (Bug#30660)
* doc/emacs/help.texi (Misc Help): Document the new command.
* doc/lispref/keymaps.texi (Scanning Keymaps): Add a cross-reference
to the above documentation.
* etc/NEWS: Announce the new command.

* test/lisp/help-fns-tests.el (help-fns-test-describe-keymap/symbol)
(help-fns-test-describe-keymap/value)
(help-fns-test-describe-keymap/not-keymap)
(help-fns-test-describe-keymap/let-bound)
(help-fns-test-describe-keymap/dynamically-bound-no-file): New tests.

Co-authored-by: Drew Adams <drew.adams@oracle.com>
4 years ago* lisp/progmodes/sh-script.el: Remove old non-SMIE indentation code
Stefan Monnier [Mon, 3 Feb 2020 20:26:59 +0000 (15:26 -0500)]
* lisp/progmodes/sh-script.el: Remove old non-SMIE indentation code

(sh-learn-basic-offset, sh-blink, sh-use-smie): Remove config vars.
(sh-kw-alist, sh-learned-buffer-hook): Remove var.
(sh-must-support-indent, sh-mark-init, sh-mark-line): Remove function.
(sh-kw, sh-special-keywords): Remove constant.
(sh-help-string-for-variable, sh-read-variable, sh-goto-matching-if)
(sh-handle-prev-if, sh-handle-this-else, sh-handle-prev-else)
(sh-handle-this-fi, sh-handle-prev-fi, sh-handle-this-then)
(sh-handle-prev-then, sh-handle-prev-open, sh-handle-this-close)
(sh-goto-matching-case, sh-handle-prev-case, sh-handle-this-esac)
(sh-handle-prev-esac, sh-handle-after-case-label)
(sh-handle-prev-case-alt-end, sh-safe-forward-sexp)
(sh-goto-match-for-done, sh-handle-this-done, sh-handle-prev-done)
(sh-handle-this-do, sh-handle-prev-do, sh-find-prev-switch)
(sh-handle-this-rc-case, sh-handle-prev-rc-case, sh-check-rule)
(sh-get-indent-info, sh-get-indent-var-for-line, sh-prev-line)
(sh-prev-stmt, sh-get-word, sh-prev-thing, sh-this-is-a-continuation)
(sh-get-kw, sh-find-prev-matching, sh-set-var-value)
(sh-calculate-indent, sh-indent-line, sh-blink, sh-guess-basic-offset):
Remove functions.
(sh-show-indent, sh-set-indent, sh-learn-line-indent)
(sh-learn-buffer-indent): Redefine as obsolete aliases.

4 years agoCater for 3-argument version of pthread_setname_np
Robert Pluim [Fri, 31 Jan 2020 09:22:59 +0000 (10:22 +0100)]
Cater for 3-argument version of pthread_setname_np

Fixes Bug#39363.

* configure.ac: Add check for 3-argument version of
pthread_setname_np.
* src/systhread.c (sys_thread_set_name)
[HAVE_PTHREAD_SETNAME_NP_3ARG]: Call pthread_setname_np with
3 arguments.

4 years agoClarify lexvar restrictions for add-to-ordered-list, add-to-history
Mattias Engdegård [Sun, 2 Feb 2020 11:48:51 +0000 (12:48 +0100)]
Clarify lexvar restrictions for add-to-ordered-list, add-to-history

* lisp/subr.el (add-to-ordered-list, add-to-history):
* doc/lispref/lists.texi (List Variables):
* doc/lispref/minibuf.texi (Minibuffer History):
Note in the doc string and manual that the variable arguments to
add-to-ordered-list and add-to-history cannot refer to a lexical
variable (bug#39373).

4 years ago; Fix docstring in Tramp
Michael Albinus [Sun, 2 Feb 2020 10:26:09 +0000 (11:26 +0100)]
; Fix docstring in Tramp

* test/lisp/net/tramp-tests.el
(tramp-test32-shell-command-dont-erase-buffer): Fix docstring.

4 years agoReplace add-to-list to lexical variable with push (bug#39373)
Mattias Engdegård [Sat, 1 Feb 2020 17:07:32 +0000 (18:07 +0100)]
Replace add-to-list to lexical variable with push (bug#39373)

Since 'add-to-list', being a plain function, cannot access lexical
variables, such use must be rewritten for correctness.
(Some instances actually do work thanks to a compiler macro,
but it's not something code should rely on.)

* lisp/autoinsert.el (auto-insert-alist):
* lisp/cedet/mode-local.el (mode-local-print-bindings):
* lisp/net/tramp-cache.el (tramp-flush-connection-properties)
(tramp-list-connections):
* lisp/net/zeroconf.el (zeroconf-list-service-names)
(zeroconf-list-service-types, zeroconf-list-services):
* lisp/org/org.el (org-reload):
* lisp/whitespace.el (whitespace-report-region):
* test/lisp/emacs-lisp/map-tests.el (test-map-do):
Replace add-to-list with push.

4 years agoClarify add-to-list documentation (bug#39373)
Mattias Engdegård [Sat, 1 Feb 2020 19:11:11 +0000 (20:11 +0100)]
Clarify add-to-list documentation (bug#39373)

While add-to-list often works with lexical variables, this is a hack
that isn't always effective; better tell the user not to try.

* doc/lispref/lists.texi (List Variables): Add a note about lexical
variables to the add-to-list description.  Fix the equivalent code.
* lisp/subr.el (add-to-list): Amend doc string.

4 years agoMH-E: alter content in mh-display-msg, not mh-show-mode
Stephen Gildea [Sat, 1 Feb 2020 17:28:30 +0000 (09:28 -0800)]
MH-E: alter content in mh-display-msg, not mh-show-mode

* lisp/mh-e/mh-show.el (mh-display-msg, mh-show-mode):  buffer-altering
code formerly in mh-show-mode is moved to the location in mh-display-msg
where mh-show-mode used to be called before the fix to MH-E bug #470
moved the call earlier.

4 years agoUpdate documentation for mh-show-mode-hook
Stephen Gildea [Sat, 1 Feb 2020 17:18:46 +0000 (09:18 -0800)]
Update documentation for mh-show-mode-hook

* lisp/mh-e/mh-e.el, doc/misc/mh-e.texi (mh-show-mode-hook): Now that
the fix for MH-E bug #470 calls mh-show-mode-hook earlier, update the
documentation to no longer say that the message contents are available.

4 years agoExample goto-addr hook: MH-E already uses goto-address
Stephen Gildea [Wed, 29 Jan 2020 17:21:19 +0000 (09:21 -0800)]
Example goto-addr hook: MH-E already uses goto-address

* lisp/net/goto-addr.el, doc/emacs/misc.texi: Do not use MH-E as the
example of how to add a hook to goto-address, because MH-E calls
goto-address internally.

4 years ago; Merge from origin/emacs-27
Glenn Morris [Sat, 1 Feb 2020 15:50:10 +0000 (07:50 -0800)]
; Merge from origin/emacs-27

The following commit was skipped:

42c1e60657 (origin/emacs-27, emacs-27) ; Auto-commit of loaddefs files.

4 years agoMerge from origin/emacs-27
Glenn Morris [Sat, 1 Feb 2020 15:50:10 +0000 (07:50 -0800)]
Merge from origin/emacs-27

cdf8c31844 Extend workaround for Cygwin O_PATH bug

4 years ago; Merge from origin/emacs-27
Glenn Morris [Sat, 1 Feb 2020 15:50:10 +0000 (07:50 -0800)]
; Merge from origin/emacs-27

The following commit was skipped:

0223a1577c * lisp/emacs-lisp/debug.el (debug): Merge the non-interact...

4 years agoMerge from origin/emacs-27
Glenn Morris [Sat, 1 Feb 2020 15:50:10 +0000 (07:50 -0800)]
Merge from origin/emacs-27

5bf2ef3871 Add more blackboard bold characters to TeX input method
c362a624d8 ; * lisp/progmodes/gdb-mi.el (gdb-handle-reply): Fix comme...
2b1e18ae85 Protect against errors in gdb-mi.el handlers
baceb8e84d Allow exiting the Python interpreter of a GDB session
2e66013dcf Ensure minibuffer input is added to history in read_minibuf
de41161534 Tab-bar related fixes.
247f2cfa02 ; ChangeLog.3 fixes.
e1a712bb3f * admin/authors.el: Add missing entries.

4 years ago; Auto-commit of loaddefs files.
Glenn Morris [Sat, 1 Feb 2020 14:26:07 +0000 (06:26 -0800)]
; Auto-commit of loaddefs files.

4 years ago; Auto-commit of loaddefs files.
Glenn Morris [Sat, 1 Feb 2020 14:11:46 +0000 (06:11 -0800)]
; Auto-commit of loaddefs files.

4 years agoImplement `shell-command-dont-erase-buffer' in Tramp. (Bug#39067)
Michael Albinus [Sat, 1 Feb 2020 13:29:45 +0000 (14:29 +0100)]
Implement `shell-command-dont-erase-buffer' in Tramp.  (Bug#39067)

* lisp/net/tramp.el (tramp-handle-shell-command):
Handle `shell-command-dont-erase-buffer'.  (Bug#39067)

* test/lisp/net/tramp-tests.el (shell-command-dont-erase-buffer):
Declare.
(tramp-test10-write-region, tramp-test21-file-links): Use function
symbols.
(tramp--test-async-shell-command): Don't assume that
`async-shell-command' returns the process object.
(tramp-test32-shell-command): Rework `async-shell-command-width' test.
(tramp-test32-shell-command-dont-erase-buffer): New test.

4 years agoExtend workaround for Cygwin O_PATH bug
Ken Brown [Fri, 31 Jan 2020 02:58:33 +0000 (21:58 -0500)]
Extend workaround for Cygwin O_PATH bug

* configure.ac (HAVE_CYGWIN_O_PATH_BUG): Extend to Cygwin versions
3.1.0 through 3.1.2.  (Bug#39371)

4 years ago* lisp/emacs-lisp/debug.el (debug): Merge the non-interactive cases
Paul Pogonyshev [Mon, 27 Jan 2020 03:54:32 +0000 (22:54 -0500)]
* lisp/emacs-lisp/debug.el (debug): Merge the non-interactive cases

bug#38927

(cherry picked from commit 502059433ce0e9699eb73d21656ce6e9e127d63b)

4 years agoAdd more blackboard bold characters to TeX input method
Ansgar Burchardt [Tue, 21 Jul 2015 11:05:39 +0000 (13:05 +0200)]
Add more blackboard bold characters to TeX input method

This patch adds all capital blackboard bold letters and those for "1"
and "2". Most characters are in common use in mathematics, but it does
not seem useful to exclude the few not widely used.

Reference: https://en.wikipedia.org/wiki/Blackboard_bold

* lisp/leim/quail/latin-ltx.el (latin-ltx--define-rules): Add all
the blackboard bold commands from AMSTeX.  (Bug#21103)

4 years ago; * lisp/progmodes/gdb-mi.el (gdb-handle-reply): Fix commentary.
Eli Zaretskii [Fri, 31 Jan 2020 09:41:14 +0000 (11:41 +0200)]
; * lisp/progmodes/gdb-mi.el (gdb-handle-reply): Fix commentary.

4 years agoProtect against errors in gdb-mi.el handlers
Yuan Fu [Mon, 7 Oct 2019 22:47:54 +0000 (18:47 -0400)]
Protect against errors in gdb-mi.el handlers

* lisp/progmodes/gdb-mi.el (gdb-handle-reply): Handle errors
in 'handler-function' so the cleanup code after it runs
safely.  (Bug#39178)

4 years agoAllow exiting the Python interpreter of a GDB session
Eli Zaretskii [Fri, 31 Jan 2020 09:34:50 +0000 (11:34 +0200)]
Allow exiting the Python interpreter of a GDB session

* lisp/progmodes/gdb-mi.el (gdb-delchar-or-quit): Send EOF to GDB
if we are in an embedded interpreter.  This allows to exit from
"pi" cleanly.  (Bug#39140)

4 years agoRemove compatibility hack in Tramp
Michael Albinus [Fri, 31 Jan 2020 09:29:02 +0000 (10:29 +0100)]
Remove compatibility hack in Tramp

* lisp/net/tramp-compat.el (tramp-compat-process-running-p): Remove.

* lisp/net/tramp-gvfs.el (tramp-gvfs-enabled):
Use `tramp-process-running-p'.

* lisp/net/lisp/net/tramp.el (with-tramp-progress-reporter): Simplify.
(tramp-process-running-p): New defun.

4 years agoEnsure minibuffer input is added to history in read_minibuf
Federico Tedin [Wed, 29 Jan 2020 21:24:40 +0000 (22:24 +0100)]
Ensure minibuffer input is added to history in read_minibuf

* src/minibuf.c (read_minibuf): Parse input string after saving
the string to the history list instead of before, in case parsing
signals an error or is interrupted by C-g.  (Bug#39291)

4 years ago* etc/NEWS: Move M-x suggest-key-bindings to "Editing Changes" section.
Juri Linkov [Thu, 30 Jan 2020 23:01:02 +0000 (01:01 +0200)]
* etc/NEWS: Move M-x suggest-key-bindings to "Editing Changes" section.

* doc/emacs/m-x.texi (M-x): Mention effect of suggest-key-bindings
on the completion list of M-x (bug#39035).

4 years agoprune the overly cavalier "kill all gnus buffers exit"
Sam Steingold [Thu, 30 Jan 2020 16:27:55 +0000 (11:27 -0500)]
prune the overly cavalier "kill all gnus buffers exit"

* lisp/gnus/mail-source.el (mail-source-call-script): Require gnus for
 `gnus-get-buffer-create', following the pattern in the file.
* lisp/gnus/message.el: Autoload `gnus-get-buffer-create'.
* lisp/gnus/mm-archive.el: Likewise.
* lisp/gnus/mml2015.el: Likewise (the file autoloads other gnus functions).
* lisp/gnus/nnheader.el: Likewise.
* lisp/gnus/mml1991.el (mml1991-mailcrypt-sign, mml1991-mailcrypt-encrypt):
Revert the patch, use `get-buffer-create' instead of `gnus-get-buffer-create'.
* lisp/gnus/smime.el (smime-new-details-buffer, smime):
 smime-certificate-info): Likewise.
* lisp/gnus/spam-stat.el (spam-stat-store-current-buffer): Likewise.

4 years agoGive fuller support for obsolete ---12 dates in iso8601
Lars Ingebrigtsen [Thu, 30 Jan 2020 02:02:48 +0000 (03:02 +0100)]
Give fuller support for obsolete ---12 dates in iso8601

* lisp/calendar/iso8601.el
(iso8601--outdated-reduced-precision-date-match): New constant.
(iso8601--date-match): Use it.

4 years agoMake iso8601.el understand two obsolete forms
Lars Ingebrigtsen [Thu, 30 Jan 2020 01:11:09 +0000 (02:11 +0100)]
Make iso8601.el understand two obsolete forms

* lisp/calendar/iso8601.el (iso8601-parse-date): Understand some
obsolete formats to provide compatibility with the vCard RFC
(bug#39347).

4 years agoShow key bindings on M-x completion (bug#39035)
Juri Linkov [Wed, 29 Jan 2020 23:42:11 +0000 (01:42 +0200)]
Show key bindings on M-x completion (bug#39035)

* lisp/simple.el (read-extended-command--annotation): New function.
(read-extended-command): Use annotation-function to show key-bindings.

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

* lisp/cus-start.el (tab-bar-mode): Use dedicated group 'tab-bar'.

* lisp/tab-bar.el (tab-bar-history-mode): Add :group 'tab-bar'.
(tab-bar-get-buffer-tab): Add optional arg 'ignore-current-tab'.

* lisp/desktop.el (desktop-buffers-not-to-save-function): Add docstring.

4 years ago; ChangeLog.3 fixes.
Nicolas Petton [Wed, 29 Jan 2020 20:29:10 +0000 (21:29 +0100)]
; ChangeLog.3 fixes.

4 years ago* admin/authors.el: Add missing entries.
Nicolas Petton [Wed, 29 Jan 2020 20:27:52 +0000 (21:27 +0100)]
* admin/authors.el: Add missing entries.

4 years agofix bug#39344
Sam Steingold [Wed, 29 Jan 2020 16:17:50 +0000 (11:17 -0500)]
fix bug#39344

* gnus.el (gnus-add-buffer): Use `cl-pushnew' instead of `push' to
  avoid duplicate entries.

4 years agoRevert "Fix MS-Windows build broken by "Install C source code""
Eli Zaretskii [Tue, 28 Jan 2020 18:36:52 +0000 (20:36 +0200)]
Revert "Fix MS-Windows build broken by "Install C source code""

This reverts commit 31efd1cea8d692a0b77101ec161a8cf290471ade,
since the commit a02b179242a55aba20158aa245e5643a04d07576,
which triggered the former commit, has been reverted.

4 years agoMerge branch 'scratch/ns/draw-to-bitmap'
Alan Third [Tue, 28 Jan 2020 18:15:19 +0000 (18:15 +0000)]
Merge branch 'scratch/ns/draw-to-bitmap'

4 years agoMerge from origin/emacs-27
Glenn Morris [Tue, 28 Jan 2020 15:50:22 +0000 (07:50 -0800)]
Merge from origin/emacs-27

1bcac29b2f (origin/emacs-27) dns-mode-soa-auto-increment-serial: safe...
abf0f8666d * lisp/wdired.el: Clean out isearch-filter-predicate (bug#...
c31c31e57f ; Spelling and URL fixes
066aad7b9d Finish the documentation for c-noise-macro-{,with-parens-}...
c8fcabf245 Correct regexp for flags in `format' doc string
2e9a153b26 Moderate recommendation to escape '(' in doc strings
d7cd4ab7d9 Objective C Mode: Make c-forward-type work with "unsigned ...
1705e32ebc Fix help text about configure module support
baca81e641 * doc/lispref/streams.texi (Output Functions): Improve ind...
568a560fce Improve doc string of 'newline'
7f50698505 Improve doc of eq on bignums etc.
e5327a569c Do not refer to obsolete alias
fd09196781 ; Clarify what time-stamp-active enables

# Conflicts:
# etc/NEWS

4 years agoMake sure that all gnus buffers are killed on exit
Sam Steingold [Fri, 10 Jan 2020 18:34:59 +0000 (13:34 -0500)]
Make sure that all gnus buffers are killed on exit

* lisp/gnus/gnus-agent.el (gnus-agent-synchronize-flags-server):
Use `gnus-get-buffer-create' instead of `get-buffer-create'
* lisp/gnus/gnus-bookmark.el (gnus-bookmark-write-file): Likewise.
(gnus-bookmark-bmenu-list): Likewise.
(gnus-bookmark-show-details): Likewise.
* lisp/gnus/gnus-draft.el (gnus-draft-setup): Likewise.
* lisp/gnus/gnus-icalendar.el (gnus-icalendar-reply): Likewise.
* lisp/gnus/gnus-int.el (gnus-backend-trace): Likewise.
* lisp/gnus/gnus-srvr.el (gnus-enter-server-buffer): Likewise.
* lisp/gnus/gnus-sum.el (gnus-summary-pipe-output): Likewise.
* lisp/gnus/gnus-util.el (gnus-output-to-rmail): Likewise.
(gnus-output-to-mail): Likewise.
(gnus-multiple-choice): Likewise.
* lisp/gnus/mail-source.el (mail-source-call-script): Likewise.
* lisp/gnus/message.el (message-cancel-news): Likewise.
(message-resend): Likewise.
* lisp/gnus/mm-archive.el (mm-dissect-archive): Likewise.
* lisp/gnus/mml1991.el (mml1991-mailcrypt-sign): Likewise.
(mml1991-mailcrypt-encrypt): Likewise.
* lisp/gnus/mml2015.el (mml2015-mailcrypt-verify): Likewise.
(mml2015-mailcrypt-clear-verify): Likewise.
* lisp/gnus/nnbabyl.el (nnbabyl-request-move-article): Likewise.
* lisp/gnus/nndiary.el (nndiary-request-move-article): Likewise.
(nndiary-find-group-number): Likewise.
(nndiary-open-nov): Likewise.
(nndiary-generate-nov-file): Likewise.
* lisp/gnus/nndoc.el (nndoc-possibly-change-buffer): Likewise.
* lisp/gnus/nndraft.el (nndraft-request-move-article): Likewise.
(nndraft-auto-save-file-name): Likewise.
* lisp/gnus/nneething.el (nneething-get-head): Likewise.
* lisp/gnus/nnfolder.el (nnfolder-request-move-article): Likewise.
(nnfolder-open-nov): Likewise.
* lisp/gnus/nnheader.el (nnheader-init-server-buffer): Likewise.
(nnheader-set-temp-buffer): Likewise.
* lisp/gnus/nnimap.el (nnimap-log-buffer): Likewise.
* lisp/gnus/nnir.el (nnir-run-swish++): Likewise.
(nnir-run-swish-e): Likewise.
(nnir-run-hyrex): Likewise.
(nnir-run-namazu): Likewise.
(nnir-run-notmuch): Likewise.
(nnir-run-find-grep): Likewise.
* lisp/gnus/nnmail.el (nnmail-split-incoming): Likewise.
(nnmail-cache-open): Likewise.
(nnmail-log-split): Likewise.
* lisp/gnus/nnmaildir.el (nnmaildir--with-work-buffer): Likewise.
(nnmaildir--with-nov-buffer): Likewise.
(nnmaildir--with-move-buffer): Likewise.
* lisp/gnus/nnmairix.el (nnmairix-call-mairix-binary): Likewise.
(nnmairix-call-mairix-binary-raw): Likewise.
(nnmairix-replace-group-and-numbers): Likewise.
* lisp/gnus/nnmbox.el (nnmbox-request-move-article): Likewise.
* lisp/gnus/nnmh.el (nnmh-request-move-article): Likewise.
* lisp/gnus/nnml.el (nnml-request-move-article): Likewise.
(nnml-find-group-number): Likewise.
(nnml-get-nov-buffer): Likewise.
(nnml-generate-nov-file): Likewise.
* lisp/gnus/nnrss.el (nnrss-opml-export): Likewise.
* lisp/gnus/nntp.el (nntp-record-command): Likewise.
* lisp/gnus/nnvirtual.el (nnvirtual-retrieve-headers): Likewise.
* lisp/gnus/smime.el (smime-new-details-buffer): Likewise.
(smime-certificate-info): Likewise.
(smime): Likewise.
* lisp/gnus/spam-stat.el (spam-stat-store-current-buffer): Likewise.

4 years agoUpdate from Gnulib
Paul Eggert [Tue, 28 Jan 2020 07:27:46 +0000 (23:27 -0800)]
Update from Gnulib

This incorporates:
2020-01-27 regex: port to non-GCC pre-IEC-60559
2020-01-24 regex: port to Gawk on nonstandard platforms
2020-01-21 regex: fix bug with >=16 subexpressions
2020-01-21 regex: simplify definition of BITSET_WORD_BITS
* lib/regex.c, lib/regex_internal.h: Copy from Gnulib.

4 years agoRevert the --with-install-srcdir patch
Paul Eggert [Tue, 28 Jan 2020 07:04:20 +0000 (23:04 -0800)]
Revert the --with-install-srcdir patch

Also, update description of debuginfo and sources to match
Debian and Red Hat more accurately, and move this sad tale
from INSTALL to etc/PROBLEMS which is a better home for it.
* Makefile.in (emacs_srcdir, install-c-src):
* configure.ac (emacs_srcdir, --with-install-srcdir):
* src/epaths.in (PATH_EMACS_SOURCE):
* src/lread.c (emacs-source-directory):
Remove.  All uses removed.
* lisp/emacs-lisp/find-func.el (find-function-C-source):
Do not worry about compressed C sources.
* src/lread.c: Do not include <dosname.h>.

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 agoFix Bug#39253
Michael Albinus [Mon, 27 Jan 2020 12:36:00 +0000 (13:36 +0100)]
Fix Bug#39253

* lisp/net/tramp.el (tramp-handle-shell-command): Set `default-directory'.

4 years agoFix problems in Tramp's async-shell-command
Michael Albinus [Mon, 27 Jan 2020 09:11:32 +0000 (10:11 +0100)]
Fix problems in Tramp's async-shell-command

* lisp/net/tramp-adb.el (tramp-adb-handle-make-process):
* lisp/net/tramp-cache.el (top):
* lisp/net/tramp-sh.el (tramp-sh-handle-make-process):
Use `insert-file-contents-literally'.

* lisp/net/tramp.el (tramp-parse-file):
Use `insert-file-contents-literally'.
(tramp-handle-shell-command): Reorganize error-buffer handling.
(tramp-handle-start-file-process): Use `consp' instead of `listp'.

* test/lisp/net/tramp-tests.el (tramp-test31-interrupt-process):
Bind `delete-exited-processes'.
(tramp--test-async-shell-command): Bind `delete-exited-processes'.
Add additional `accept-process-output'.  Move cleanup of output
buffer ...
(tramp-test32-shell-command): ... here.  Test error buffer also
for `async-shell-command'.

4 years ago* lisp/emacs-lisp/debug.el (debug): Merge the non-interactive cases
Paul Pogonyshev [Mon, 27 Jan 2020 03:54:32 +0000 (22:54 -0500)]
* lisp/emacs-lisp/debug.el (debug): Merge the non-interactive cases

bug#38927

4 years ago* src/mini-gmp.c: Fix comment typos.
Paul Eggert [Sun, 26 Jan 2020 20:54:05 +0000 (12:54 -0800)]
* src/mini-gmp.c: Fix comment typos.

4 years agoUpdate mini-gmp
Paul Eggert [Sun, 26 Jan 2020 20:52:56 +0000 (12:52 -0800)]
Update mini-gmp

* src/mini-gmp.c, src/mini-gmp.h: Copy from GMP 6.2.0.
This incorporates:
2019-12-05 remove some sizeof(mp_limb_t)
2019-12-04 (mpn_invert_3by2): Remove special code for limb sizes
2019-12-04 (mpn_invert_3by2): Limit size of an intermediate
2019-11-20 (mpn_invert_3by2): Use xor instead of negation
2019-11-19 (mpn_invert_3by2): Move an assert earlier
2019-11-19 (mpn_invert_3by2): Add a new shortcut
2019-11-17 Prepend "unsigned" to MINI_GMP_LIMB_TYPE
2019-11-17 Enable testing with different limb sizes (types)
2019-11-20 Use already defined constants
2019-11-09 Avoid undefined behaviour with small limb sizes

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 agoImprove doc for emacs-source-directory (Bug#36527).
Paul Eggert [Sun, 26 Jan 2020 08:58:57 +0000 (00:58 -0800)]
Improve doc for emacs-source-directory (Bug#36527).

4 years agoPropagate NSLocale into Emacs better
Paul Eggert [Sun, 26 Jan 2020 08:20:40 +0000 (00:20 -0800)]
Propagate NSLocale into Emacs better

* src/emacs.c (main): Call ns_init_locale before using the
environment variable that ns_init_locale sets up (Bug#39248).

4 years agoAdd more tests for bookmark-bmenu-list
Stefan Kangas [Sun, 26 Jan 2020 03:08:33 +0000 (04:08 +0100)]
Add more tests for bookmark-bmenu-list

* test/lisp/bookmark-tests.el (cl-lib): Require.
(bookmark-test-bmenu-toggle-filenames)
(bookmark-test-bmenu-toggle-filenames/show)
(bookmark-test-bmenu-show-filenames)
(bookmark-test-bmenu-hide-filenames)
(bookmark-test-bmenu-bookmark, bookmark-test-bmenu-mark)
(bookmark-test-bmenu-any-marks, bookmark-test-bmenu-unmark)
(bookmark-test-bmenu-delete, bookmark-test-bmenu-locate): New
tests.

(bookmark-test-bmenu-edit-annotation/show-annotation): Rename from
'bookmark-bmenu-edit-annotation/show-annotation'.
(bookmark-test-bmenu-send-edited-annotation): Rename from
'bookmark-bmenu-send-edited-annotation'.
(bookmark-test-bmenu-send-edited-annotation/restore-focus): Rename
from 'bookmark-bmenu-send-edited-annotation/restore-focus'.

4 years agoFix Bug#39279
Michael Albinus [Sat, 25 Jan 2020 18:25:00 +0000 (19:25 +0100)]
Fix Bug#39279

* lisp/net/tramp.el (tramp-completion-file-name-handler):
Fix thinko.  (Bug#39279)

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 agoFix MS-Windows build broken by "Install C source code"
Eli Zaretskii [Sat, 25 Jan 2020 17:43:14 +0000 (19:43 +0200)]
Fix MS-Windows build broken by "Install C source code"

* nt/epaths.nt (PATH_EMACS_SOURCE): Add definition.

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 agoInstall C source code for C-h f etc.
Paul Eggert [Sat, 25 Jan 2020 00:41:38 +0000 (16:41 -0800)]
Install C source code for C-h f etc.

Without this change, on typical GNU/Linux distributions
like Debian, the first button of ‘C-h f car RET’ does not work
because the source code for ‘car’ is not installed (Bug#37527).
Fix this by installing the (compressed) C source code alongside
the (compressed) Lisp source code that is already installed.
This adds about 3 MB (about 2%) to the size of the installed files
on my platform.
* Makefile.in (emacs_srcdir): New macro.
(epaths-force): Substitute PATH_EMACS_SOURCE.
(install-c-src): New rule, that installs a copy of the C source
code if emacs_srcdir says to.
(install-arch-indep): Depend on it.
* configure.ac (emacs_srcdir): New var.
Add support for --disable-install-srcdir.
* lisp/emacs-lisp/find-func.el (find-function-C-source-directory):
Look in emacs-source-directory first.
(find-function-C-source): Also look for gzipped source files.
* lisp/startup.el (normal-top-level):
Also recode emacs-source-directory.
* src/epaths.in (PATH_EMACS_SOURCE): New macro.
* src/lread.c: Include dosname.h, for IS_ABSOLUTE_FILE_NAME.
(syms_of_lread): New var emacs-source-directory.

4 years agoRemove (or double) redundant backslashes in string literals
Mattias Engdegård [Fri, 24 Jan 2020 20:01:47 +0000 (21:01 +0100)]
Remove (or double) redundant backslashes in string literals

See discussion at
https://lists.gnu.org/archive/html/emacs-devel/2020-01/msg00749.html .

* lisp/obsolete/iswitchb.el (iswitchb-summaries-to-end):
* test/src/regex-emacs-tests.el (regex-tests-BOOST-frob-escapes):
* test/lisp/help-fns-tests.el (help-fns-test-lisp-macro)
(help-fns-test-lisp-defun, help-fns-test-lisp-defsubst)
(help-fns-test-alias-to-defun, help-fns-test-bug23887):
Double backslashes for desired effect.
* lisp/org/ol.el (org-link-escape):
* lisp/net/nsm.el (nsm-protocol-check--rsa-kx)
(nsm-protocol-check--anon-kx, nsm-protocol-check--sha1-sig):
* lisp/obsolete/old-whitespace.el (whitespace-buffer):
* lisp/obsolete/rcompile.el (remote-compile-run-before):
* lisp/obsolete/vi.el (vi-end-of-blank-delimited-word):
* lisp/obsolete/vip.el (vip-current-major-mode)
(vip-paren-match, vip-switch-to-buffer)
(vip-switch-to-buffer-other-window, vip-kill-buffer)
(vip-get-ex-token, ex-edit):
* lisp/org/org-element.el (org-element--cache-sync-requests):
* lisp/org/org.el (org-sparse-tree):
* lisp/textmodes/reftex.el (reftex-report-bug):
* test/lisp/ibuffer-tests.el (ibuffer-save-filters):
* test/lisp/international/ucs-normalize-tests.el
(ucs-normalize-tests--insert-failing-lines):
* test/lisp/simple-tests.el (undo-test-kill-c-a-then-undo):
* test/lisp/textmodes/conf-mode-tests.el (conf-test-toml-mode):
* test/src/regex-emacs-tests.el (regex-tests-compare):
Remove redundant backslashes.

4 years agoFix iso8601-parse so unknown DST is -1, not nil
Paul Eggert [Fri, 24 Jan 2020 21:36:56 +0000 (13:36 -0800)]
Fix iso8601-parse so unknown DST is -1, not nil

The convention in a decoded time’s dst flag is that t means DST,
nil means standard time, and -1 means unknown.  This differs from
the convention for other components of a decoded time, where nil
means unknown.  Fix some places where iso8601-parse mistakenly
treated nil as meaning that the dst flag was unknown.
* doc/lispref/os.texi (Time Parsing):
Adjust to match parse-time-string’s doc string.
* lisp/calendar/iso8601.el (iso8601-parse):
Set dst flag to nil if a numeric time zone or "Z" is given.
(iso8601--decoded-time): Default dst flag to -1 if no dst
flag or zone is given.
* lisp/calendar/time-date.el (decoded-time-set-defaults):
When we don’t have a time zone, set the dst flag consistently
with DEFAULT-ZONE.
* test/lisp/calendar/iso8601-tests.el (test-iso8601-date-years)
(test-iso8601-date-dates, test-iso8601-date-obsolete)
(test-iso8601-date-weeks, test-iso8601-date-ordinals)
(test-iso8601-time, test-iso8601-combined)
(test-iso8601-duration, test-iso8601-intervals)
(standard-test-dates, standard-test-time-of-day-local-time)
(standard-test-time-of-day-fractions)
(nonstandard-test-time-of-day-decimals)
(standard-test-time-of-day-beginning-of-day)
(standard-test-date-and-time-of-day, standard-test-interval):
Adjust tests to match fixed behavior.

4 years agoFix parse-time-string bug with ISO 8601 defaults
Bastien [Fri, 24 Jan 2020 20:06:26 +0000 (12:06 -0800)]
Fix parse-time-string bug with ISO 8601 defaults

* lisp/calendar/parse-time.el (parse-time-string):
Do not use decoded-time-set-defaults; just let iso8601-parse
do its thing.

4 years agoAdd tests for version comparison predicates
Stefan Kangas [Tue, 12 Nov 2019 01:01:22 +0000 (02:01 +0100)]
Add tests for version comparison predicates

* test/lisp/subr-tests.el (subr-test-version-list-<)
(subr-test-version-list-=, subr-test-version-list-<=): New tests.

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 agoDraw to offscreen buffer on macOS
Alan Third [Sun, 10 Feb 2019 10:59:29 +0000 (10:59 +0000)]
Draw to offscreen buffer on macOS

* src/nsfns.m (x_set_background_color): Clear the frame after changing
the background color, not before.
* src/nsterm.h (drawingBuffer): New variable.
([EmacsView focusOnDrawingBuffer]):
([EmacsView copyRect:to:]):
([EmacsView createDrawingBufferWithRect:]): New methods.
* src/nsterm.m (ns_update_begin):
(ns_update_end):
(ns_focus):
(ns_unfocus): Handle drawing to offscreen buffer.
(ns_clip_to_row): Use ns_row_rect.
(ns_copy_bits): Remove unused function.
(ns_scroll_run):
(ns_shift_glyphs_for_insert): Use new scrolling method.
(ns_draw_fringe_bitmap):
(ns_dumpglyphs_image): When drawing to the offscreen buffer, flip
images so they appear the right way up.
(ns_dumpglyphs_stretch): Remove unnecessary code.
(ns_draw_window_cursor): Don't disable screen updates.
([EmacsView updateFrameSize:]): Update the size of the offscreen
buffer.
([EmacsView initFrameFromEmacs:]): Create offscreen buffer.
([EmacsView windowDidChangeBackingProperties:]):
([EmacsView createDrawingBufferWithRect:]):
([EmacsView focusOnDrawingBuffer]):
([EmacsView copyRect]): New methods.
([EmacsView viewWillDraw]): Remove method as it no longer does
anything useful.
([EmacsView drawRect:]): Handle drawing from offscreen buffer.

4 years agoRevert "Make all NS drawing be done from drawRect"
Alan Third [Sun, 28 Jul 2019 14:19:19 +0000 (15:19 +0100)]
Revert "Make all NS drawing be done from drawRect"

This reverts commit 7946445962372c4255180af45cb7c857f1b0b5fa.

4 years agoRevert "Ensure NS frame is redrawn correctly after scroll"
Alan Third [Sun, 28 Jul 2019 14:10:48 +0000 (15:10 +0100)]
Revert "Ensure NS frame is redrawn correctly  after scroll"

This reverts commit a6ab8db3a3dc5ec107ef023c6659620584309c97.

4 years agoRevert "Fix some NS drawing issues (bug#32932)"
Alan Third [Sun, 28 Jul 2019 14:10:29 +0000 (15:10 +0100)]
Revert "Fix some NS drawing issues (bug#32932)"

This reverts commit 7e8eee60a9dbb0c59cf26f237b21efe7fd1043c9.

4 years agoMerge from origin/emacs-27
Glenn Morris [Fri, 24 Jan 2020 15:50:22 +0000 (07:50 -0800)]
Merge from origin/emacs-27

0bed550e21 (origin/emacs-27) Remove EmacsOpenPanel and EmacsSavePanel...
a0336029db * doc/emacs/files.texi (Auto Save Files): Improve indexing...
57fb8b10c1 Fix inaccurate wording in the Emacs manual
1c487747ab Update ERC module URLs
7d1e9c943f Minor doc string clarification in use-hard-newlines

4 years ago; Merge from origin/emacs-27
Glenn Morris [Fri, 24 Jan 2020 15:50:22 +0000 (07:50 -0800)]
; Merge from origin/emacs-27

The following commits were skipped:

e1deafd39d Backport: Fix bug 39218
d15f2d4cbc Prefer saying "Info manual" to "info page" in docs

4 years agoMerge from origin/emacs-27
Glenn Morris [Fri, 24 Jan 2020 15:50:22 +0000 (07:50 -0800)]
Merge from origin/emacs-27

92f080dda8 Tab-bar related finishing touches.
224e8d1464 Make call_process call signal_after_change.  This fixes bu...
d02f2a793e * lisp/simple.el: Minor fixes to commentary.
196c42b8bf Fix a few typos
4f2b967795 Fix doc strings for image-dired rotation commands

# Conflicts:
# etc/NEWS