]> git.eshelyaron.com Git - emacs.git/log
emacs.git
4 years agodiff-no-select doc string clarification
Lars Ingebrigtsen [Sat, 12 Sep 2020 11:08:29 +0000 (13:08 +0200)]
diff-no-select doc string clarification

* lisp/vc/diff.el (diff-no-select): Update doc string from the trunk,
don't merge.

4 years agoFix compilation on TERMINFO platforms with GCC 10
Eli Zaretskii [Sat, 12 Sep 2020 07:11:26 +0000 (10:11 +0300)]
Fix compilation on TERMINFO platforms with GCC 10

* src/terminfo.c [TERMINFO]: Don't redefine UP, BC, and CP, as
that could cause linking errors due to multiple definitions.
(Bug#43195)

4 years agoFix the font-lock-debug-fontify NEWS entry
Lars Ingebrigtsen [Thu, 10 Sep 2020 20:52:47 +0000 (22:52 +0200)]
Fix the font-lock-debug-fontify NEWS entry

* etc/NEWS: Fix the name of `font-lock-debug-fontify' (bug#43319).

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 agoC++ Mode: handle comma separated brace initializers.
Alan Mackenzie [Fri, 4 Sep 2020 19:10:17 +0000 (19:10 +0000)]
C++ Mode: handle comma separated brace initializers.

This includes both indentation and fontification.

* lisp/progmodes/cc-engine.el (c-do-declarators): Handle brace initializers
without = correctly.
(c-looking-at-or-maybe-in-bracelist): Use c-do-declarators with a simple
inline function to check that after-type-id-pos points to the start of a
declarator.

* lisp/progmodes/cc-langs.el (c-recognize-bare-brace-inits): New lang
const/variable.

4 years ago* lisp/display-fill-column-indicator.el: Fix bug#41145
Stefan Monnier [Fri, 4 Sep 2020 12:46:45 +0000 (08:46 -0400)]
* lisp/display-fill-column-indicator.el: Fix bug#41145

(global-display-fill-column-indicator-mode): Specify the implicit
defustom's group explicitly.

* lisp/cus-dep.el (custom-make-dependencies): Also look at
define(-globalized)-minor-mode since it can also define custom vars.

4 years agoBackport recent change in tramp-tests.el from master, don't merge
Michael Albinus [Fri, 4 Sep 2020 12:24:23 +0000 (14:24 +0200)]
Backport recent change in tramp-tests.el from master, don't merge

* test/lisp/net/tramp-tests.el (tramp-test05-expand-file-name):
No need to expect different results in Emacs 28 and later.

4 years agoFix bug in dbus.el; do not merge with master
Michael Albinus [Thu, 3 Sep 2020 11:56:13 +0000 (13:56 +0200)]
Fix bug in dbus.el; do not merge with master

* lisp/net/dbus.el (dbus-register-property)
(dbus-property-handler): Handle properties of the same interface
at different object paths properly.  (Bug#43146)

4 years ago; * lisp/man.el (Man-mode): Fix formatting.
Stefan Kangas [Mon, 31 Aug 2020 18:47:50 +0000 (20:47 +0200)]
; * lisp/man.el (Man-mode): Fix formatting.

4 years ago; Fix typos; change "Emacs-Lisp" to "Emacs Lisp"
Stefan Kangas [Tue, 1 Sep 2020 21:59:11 +0000 (23:59 +0200)]
; Fix typos; change "Emacs-Lisp" to "Emacs Lisp"

4 years ago; Auto-commit of loaddefs files.
Glenn Morris [Tue, 1 Sep 2020 13:12:02 +0000 (06:12 -0700)]
; Auto-commit of loaddefs files.

4 years agoFix help message with help-window-select
Stefan Kangas [Tue, 1 Sep 2020 09:39:22 +0000 (11:39 +0200)]
Fix help message with help-window-select

* lisp/help.el (help-print-return-message):
(help-window-display-message): Recommend 'scroll-up-command' instead
of 'scroll-up' when 'help-window-select' is non-nil.  (Bug#43122)

4 years agoRemove obsolete "Wide Characters" section of Gnus manual
Eric Abrahamsen [Mon, 31 Aug 2020 18:46:23 +0000 (11:46 -0700)]
Remove obsolete "Wide Characters" section of Gnus manual

* doc/misc/gnus.texi: This hasn't been valid since 2016.

4 years agoFix typo in Introduction to Emacs Lisp
Stefan Kangas [Mon, 31 Aug 2020 09:34:18 +0000 (11:34 +0200)]
Fix typo in Introduction to Emacs Lisp

* doc/lispintro/emacs-lisp-intro.texi (type-of-animal in detail):
Remove extraneous parenthesis.

4 years agoUpdate Elisp Manual reference to which-function-mode
Stefan Kangas [Mon, 31 Aug 2020 02:35:17 +0000 (04:35 +0200)]
Update Elisp Manual reference to which-function-mode

* doc/lispref/modes.texi (Mode Line Top, Mode Line Variables)
Don't refer to obsolete alias for 'which-function-mode'.
(Bug#13716)

4 years agoSome precisions to bug handling
Michael Albinus [Sun, 30 Aug 2020 13:43:58 +0000 (15:43 +0200)]
Some precisions to bug handling

* admin/admin.el (reminder-for-release-blocking-bugs): Add date to subject.

* admin/notes/bug-triage:
* admin/notes/bugtracker: Minor precisions.

4 years agoCC Mode: Fix processing for when c-multiline-string-start-char is a character
Alan Mackenzie [Sat, 29 Aug 2020 19:29:54 +0000 (19:29 +0000)]
CC Mode: Fix processing for when c-multiline-string-start-char is a character

* lisp/progmodes/cc-mode.el (c-pps-to-string-delim)
(c-multiline-string-check-final-quote): Replace c-clear-char-property by
c-clear-syn-tab.
(c-multiline-string-check-final-quote): Replace c-put-char-property by
c-put-syn-tab.

4 years agoFix description of %-constructs in 'mode-line-format'
Eli Zaretskii [Sat, 29 Aug 2020 06:45:51 +0000 (09:45 +0300)]
Fix description of %-constructs in 'mode-line-format'

* doc/lispref/modes.texi (%-Constructs): Document %@ and remove
%M, which is no longer supported.   (Bug#43092)

4 years agoAdapt tramp-tests.el, don't merge with master
Michael Albinus [Thu, 27 Aug 2020 18:15:40 +0000 (20:15 +0200)]
Adapt tramp-tests.el, don't merge with master

* test/lisp/net/tramp-tests.el (tramp-test05-expand-file-name)
(tramp-test05-expand-file-name-relative): Adapt tests.
(tramp--test-emacs28-p): New defun.

4 years agoAdapt reminder-for-release-blocking-bugs
Michael Albinus [Thu, 27 Aug 2020 09:46:20 +0000 (11:46 +0200)]
Adapt reminder-for-release-blocking-bugs

* admin/admin.el (reminder-for-release-blocking-bugs):
Require `debbugs-gnu' also in `interactive' form.

* admin/release-process: Rename RELEASE-CRITICAL to RELEASE-BLOCKING.
Adapt Emacs version.  Describe `reminder-for-release-blocking-bugs'.

4 years agoFix replace-region-contents performance bug
Paul Eggert [Mon, 24 Aug 2020 20:12:51 +0000 (13:12 -0700)]
Fix replace-region-contents performance bug

Backport from master.
* src/editfns.c (rbc_quitcounter): Remove; the quitcounter
is now part of the context.
(EXTRA_CONTEXT_FIELDS): Remove unused member early_abort_tests.
Add jmp, quitcounter.
(Freplace_buffer_contents): Use setjmp/longjmp to recover from
a compareseq that runs too long.  Omit unnecessary rarely_quit
call.
(buffer_chars_equal): Occasionally check for early abort and
longjmp out if so (Bug#43016).

4 years ago* admin/admin.el (reminder-for-release-blocking-bugs): New command.
Michael Albinus [Tue, 25 Aug 2020 13:19:11 +0000 (15:19 +0200)]
* admin/admin.el (reminder-for-release-blocking-bugs): New command.

4 years agoSync with Tramp 2.4.5-pre
Michael Albinus [Tue, 25 Aug 2020 13:18:57 +0000 (15:18 +0200)]
Sync with Tramp 2.4.5-pre

* doc/misc/tramp.texi: Adapt Tramp and Emacs version numbers.
(Remote processes): Describe `process-file-return-signal-string'
and $INSIDE_EMACS.
(Frequently Asked Questions): Mention Emacs 28.
Describe `tramp-smb-options'.

* doc/misc/trampver.texi: Change version to "2.4.5-pre".

* lisp/net/tramp-adb.el (process-file-return-signal-string): Declare.
(tramp-adb-handle-write-region): Flush the cache after the file
has been written.
(tramp-adb-handle-set-file-modes, tramp-adb-handle-set-file-times):
Add optional _FLAG.
(tramp-adb-handle-copy-file, tramp-adb-handle-rename-file)
(tramp-adb-handle-process-file): Use `tramp-file-local-name'.
(tramp-adb-get-signal-strings): New defun.
(tramp-adb-handle-process-file): Use it.
(tramp-adb-handle-make-process): Implement `stderr'.  Use
`insert-file-contents-literally'.
(tramp-adb-send-command-and-check): Add optional argument
EXIT-STATUS.
(tramp-adb-handle-process-file): Use it.

* lisp/net/tramp-archive.el (tramp-archive-file-name-handler):
Increase `max-specpdl-size' temporarily.

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

* lisp/net/tramp-cmds.el (tramp-rename-files):
Use `tramp-file-local-name'.

* lisp/net/tramp-gvfs.el (tramp-gvfs-enabled): Prevent crash for
older Emacsen.
(top): Adapt `tramp-gvfs-unload-hook'.
(tramp-gvfs-handle-file-system-info): Fix error.
(tramp-gvfs-handle-set-file-modes, tramp-gvfs-handle-set-file-times):
Add optional _FLAG.

* lisp/net/tramp-rclone.el (tramp-rclone-flush-directory-cache):
Fix a problem with older Emacsen.

* lisp/net/tramp-sh.el (process-file-return-signal-string): Declare.
(tramp-sh-extra-args): Add "-noediting" as bash arg.
(tramp-hexdump-encode, tramp-hexdump-awk-encode)
(tramp-od-encode, tramp-od-awk-encode): New defconst.
(tramp-awk-encode, tramp-awk-decode): Adapt.
(tramp-awk-coding-test): Remove.
(tramp-remote-coding-commands): Add hexdump/awk encoding.  (Bug#35639)
(tramp-find-inline-encoding): Adapt handling of awk, hexdump and od.
(tramp-get-remote-busybox, tramp-get-remote-awk)
(tramp-get-remote-hexdump, tramp-get-remote-od): New defuns.
(tramp-sh-handle-make-symbolic-link):
(tramp-do-copy-or-rename-file-directly)
(tramp-sh-handle-process-file, tramp-set-remote-path)
(tramp-find-inline-encoding, tramp-get-remote-touch):
Use `tramp-file-local-name'.
(tramp-do-file-attributes-with-stat): Simplify shell command.
Suppress errors (interpret as nil).
(tramp-sh-handle-set-file-modes, tramp-sh-handle-set-file-times):
Add optional _FLAG.
(tramp-sh-handle-make-process): Do not visit with
`insert-file-contents'.  Delete tmp file only if exists.  Support
`stderr' as file name.  Delete temporary stderr file.  Flush
connection properties in time.
(tramp-sh-get-signal-strings): New defun.
(tramp-sh-handle-process-file): Use it.
(tramp-sh-handle-write-region): Copy to temp file only if FILENAME
exists.  (Bug#40156)
(tramp-set-remote-path): Send the command in several chunks if it
is too large.  (Bug#42538)
(tramp-open-connection-setup-interactive-shell): Move up "set +o
vi +o emacs" command.   (Bug#39399)
(tramp-send-command-and-read): Suppress `signal-hook-function'
when reading expression.
(tramp-send-command-and-check): Add optional argument EXIT-STATUS.
(tramp-sh-handle-process-file): Use it.  (Bug#41099)

* lisp/net/tramp-smb.el (tramp-smb-conf): Fix docstring.
(tramp-smb-options): New defcustom.
(tramp-smb-handle-copy-directory, tramp-smb-handle-file-acl)
(tramp-smb-handle-set-file-acl, tramp-smb-maybe-open-connection):
Use it.
(tramp-smb-errors): Add "NT_STATUS_INVALID_PARAMETER".
(tramp-smb-handle-make-symbolic-link)
(tramp-smb-handle-process-file): Use `tramp-file-local-name'.

* lisp/net/tramp-sudoedit.el (tramp-sudoedit-do-copy-or-rename-file):
(tramp-sudoedit-handle-set-file-uid-gid):
Use `tramp-unquote-file-local-name'.
(tramp-sudoedit-handle-make-symbolic-link):
Use `tramp-file-local-name'.
(tramp-sudoedit-handle-file-system-info): Fix a scoping error.
(tramp-sudoedit-handle-set-file-modes):
(tramp-sudoedit-handle-set-file-times): Add optional _FLAG.

* lisp/net/tramp.el: Bump version to 2.4.5-pre.
(tramp-file-local-name, tramp-unquote-file-local-name): New defuns.
(tramp-set-connection-local-variables-for-buffer)
(tramp-equal-remote, tramp-handle-make-auto-save-file-name):
Use `tramp-tramp-file-p'.
(tramp-parse-file): Use `insert-file-contents-literally'.
(tramp-handle-file-modes, tramp-handle-file-times):
Add optional _FLAG.
(tramp-handle-shell-command): Fix `window-start' in output buffer.
(Bug#39171)
Handle `shell-command-dont-erase-buffer'.  (Bug#39067)
Reorganize error-buffer handling.  Set `default-directory'.
(Bug#39253)
(tramp-handle-shell-command, tramp-handle-start-file-process):
Implement asynchronous `error-buffer'.
(tramp-action-process-alive): Read pending output.
(tramp-read-passwd): Use `tramp-compat-temporary-file-directory'.
(Bug#39389, Bug#39489)
(tramp-interrupt-process): Improve command.

* lisp/net/trampver.el: Change version to "2.4.5-pre".
(tramp-repository-branch, tramp-repository-version):
Bind `debug-on-error' to nil.

* test/lisp/net/tramp-tests.el (tramp-get-remote-gid)
(process-file-return-signal-string)
(shell-command-dont-erase-buffer): Declare.
(tramp-test10-write-region, tramp-test28-process-file)
(tramp-test29-start-file-process, tramp-test30-make-process)
(tramp-test31-interrupt-process, tramp-test32-shell-command):
Extend test.
(tramp-test10-write-region, tramp-test21-file-links): Use function
symbols.
(tramp-test18-file-attributes): Check `file-ownership-preserved-p'
only if possible.
(tramp--test-async-shell-command): New defun.
(tramp--test-shell-command-to-string-asynchronously): Use it.
(tramp-test32-shell-command-dont-erase-buffer): New test.

4 years agoFix error in GMP test
Phillip Lord [Mon, 24 Aug 2020 21:44:21 +0000 (22:44 +0100)]
Fix error in GMP test

* etc/w32-feature.el: Update to use system-configuration-features for
  GMP test.

4 years agoAdd Feature testing for Windows binaries
Phillip Lord [Mon, 24 Aug 2020 21:14:01 +0000 (22:14 +0100)]
Add Feature testing for Windows binaries

* etc/w32-feature.el: New file

4 years ago; * src/character.c (str_as_multibyte): Fix the commentary.
Eli Zaretskii [Fri, 21 Aug 2020 15:15:05 +0000 (18:15 +0300)]
; * src/character.c (str_as_multibyte): Fix the commentary.

4 years agoRevert "; * etc/NEWS: Remove temporary note on documentation. (Bug#42917)"
Stefan Kangas [Wed, 19 Aug 2020 18:57:22 +0000 (20:57 +0200)]
Revert "; * etc/NEWS: Remove temporary note on documentation.  (Bug#42917)"

This reverts commit 121be3e1181e609734fc4cc9d2d54cf7eec18ab2.

4 years ago* admin/admin.el (set-version): Trap yet another NEWS error.
Glenn Morris [Wed, 19 Aug 2020 19:52:08 +0000 (20:52 +0100)]
* admin/admin.el (set-version): Trap yet another NEWS error.

4 years ago; * etc/NEWS: Remove temporary note on documentation. (Bug#42917)
Stefan Kangas [Wed, 19 Aug 2020 17:51:52 +0000 (19:51 +0200)]
; * etc/NEWS: Remove temporary note on documentation.  (Bug#42917)

4 years agoFix cond jump table compilation (bug#42919)
Mattias Engdegård [Wed, 19 Aug 2020 12:59:29 +0000 (14:59 +0200)]
Fix cond jump table compilation (bug#42919)

This bug affected compilation of

 (cond ((member '(some list) variable) ...) ...)

While equal is symmetric, member is not; in the latter case the
arguments must be a variable and a constant list, in that order.

Reported by Ikumi Keita.

* lisp/emacs-lisp/bytecomp.el (byte-compile--cond-switch-prefix):
Don't treat equality and member predicates in the same way; only
the former are symmetric in their arguments.
* test/lisp/emacs-lisp/bytecomp-tests.el
(byte-opt-testsuite-arith-data): Add test cases.

4 years agoLet Emacs start even if curdir is inaccessible
Paul Eggert [Mon, 17 Aug 2020 23:21:36 +0000 (16:21 -0700)]
Let Emacs start even if curdir is inaccessible

* lisp/startup.el (normal-top-level): Also delete PWD if
file-attributes fails for either $PWD or default-directory,
instead of failing out of the top level.
This fixes a regression from Emacs 26 (Bug#42903).

4 years ago* etc/NEWS: Mention GnuPG 2.0 through 2.1.5 issue (Bug#42845).
Paul Eggert [Mon, 17 Aug 2020 15:28:36 +0000 (08:28 -0700)]
* etc/NEWS: Mention GnuPG 2.0 through 2.1.5 issue (Bug#42845).

4 years agoFix bug with ~/Emacs file not being read at init
Robert Pluim [Mon, 17 Aug 2020 04:40:19 +0000 (21:40 -0700)]
Fix bug with ~/Emacs file not being read at init

* src/xrdb.c (get_user_app): Put "/" between homedir
and %L or %N (Bug#42827).

4 years ago; Fix last change
Eli Zaretskii [Sat, 15 Aug 2020 15:19:01 +0000 (18:19 +0300)]
; Fix last change

4 years ago; * doc/lispref/sequences.texi (Sequence Functions): Typo Fix. (Bug#42871)
Eli Zaretskii [Sat, 15 Aug 2020 15:16:39 +0000 (18:16 +0300)]
; * doc/lispref/sequences.texi (Sequence Functions): Typo Fix. (Bug#42871)

4 years agoPrevent from frozen frame after `C-z' in Lucid builds
Tino Calancha [Sat, 15 Aug 2020 14:18:03 +0000 (16:18 +0200)]
Prevent from frozen frame after `C-z' in Lucid builds

Some WMs (e.g. mutter in Gnome Shell) don't unmap iconized windows,
thus we won't get a MapNotify when deconifying them.
Check if we are deconifying a window elsewhere (Bug#42655).

- src/xterm.c (handle_one_xevent):
Check for window deconify when receiving a FocusIn signal.

4 years agoDocument the 'flex' completion style
Eli Zaretskii [Sat, 15 Aug 2020 09:32:32 +0000 (12:32 +0300)]
Document the 'flex' completion style

* doc/emacs/mini.texi (Completion Styles): Document the 'flex'
completion style.  (Bug#42763)

4 years agoNote that Emacs needs systemd support if systemd is used to stop/start
Lars Ingebrigtsen [Fri, 14 Aug 2020 16:56:36 +0000 (18:56 +0200)]
Note that Emacs needs systemd support if systemd is used to stop/start

* etc/NEWS: Note that Emacs needs to be built with systemd support
systemd is used to stop/start Emacs (bug#42242).  Change suggested by
Bhavin Gandhi <bhavin7392@gmail.com>

4 years agoRegexps cannot infloop; fix manual
Mattias Engdegård [Sun, 3 May 2020 12:22:50 +0000 (14:22 +0200)]
Regexps cannot infloop; fix manual

* doc/lispref/searching.texi (Regexp Special): Edit erroneous
statements about infinite looping in regexps.

(cherry picked from commit 63268253d21c57d991cba3f3b083d74f154a26fe)

4 years ago; spelling fixes
Paul Eggert [Thu, 13 Aug 2020 23:46:12 +0000 (16:46 -0700)]
; spelling fixes

4 years agoFix startup working dir bug on NeXTSTEP
Paul Eggert [Thu, 13 Aug 2020 19:48:57 +0000 (12:48 -0700)]
Fix startup working dir bug on NeXTSTEP

* src/emacs.c (main) [NS_IMPL_COCOA]: Update emacs_wd
after a NS GUI chdirs successfully (Bug#42836).

4 years agoImprove documentation of function argument lists
Eli Zaretskii [Thu, 13 Aug 2020 14:08:37 +0000 (17:08 +0300)]
Improve documentation of function argument lists

* doc/lispref/functions.texi (Lambda Components)
(Defining Functions): Add a cross-reference to "Argument List".
(Argument List): Improve the section name.  (Bug#42750)

4 years agoImprove documentation of special events
Eli Zaretskii [Thu, 13 Aug 2020 13:53:14 +0000 (16:53 +0300)]
Improve documentation of special events

* doc/lispref/commands.texi (Misc Events): Explain how to bind
special events to commands.

4 years agoFix face merging at EOL when inherited face specifies :extend
Eli Zaretskii [Tue, 11 Aug 2020 14:39:35 +0000 (17:39 +0300)]
Fix face merging at EOL when inherited face specifies :extend

* src/xfaces.c (merge_face_ref): Handle correctly faces that
inherit from another, and in addition specify :extend.
(Bug#42552)

(cherry picked from commit 39c90f8dfabe158ad7ac9243aa9b9dedb9409e19)

4 years agoFix face extension past EOL in overlay strings
Eli Zaretskii [Thu, 30 Jul 2020 13:56:36 +0000 (16:56 +0300)]
Fix face extension past EOL in overlay strings

* src/xdisp.c (face_at_pos): Pass ATTR_FILTER to
face_for_overlay_string.
* src/xfaces.c (face_for_overlay_string): Accept an additional
argument ATTR_INDEX and pass it to merge_face_ref for merging the
face at POS.  This ensures a face from buffer text will not be
merged unless it specifies the :extend attribute.  (Bug#42552)
* src/dispextern.h (face_for_overlay_string): Adjust prototype.

(cherry picked from commit 35564bea4d73bc266743216599d01d644aed6fd8)

4 years agoFix comint-redirect-results-list regexp usage (Bug#42662)
Phil Sainty [Wed, 12 Aug 2020 13:16:16 +0000 (01:16 +1200)]
Fix comint-redirect-results-list regexp usage (Bug#42662)

* lisp/comint.el (comint-redirect-results-list-from-process):
Don't treat the literal string argument COMMAND as a regexp.

4 years ago; Bump Emacs version to 27.1.50
Eli Zaretskii [Tue, 11 Aug 2020 18:24:16 +0000 (21:24 +0300)]
; Bump Emacs version to 27.1.50

* configure.ac:
* README:
* nt/README.W32:
* msdos/sed2v2.inp:
* etc/NEWS: Bump Emacs version to 27.1.50.

4 years ago; lisp/ldefs-boot.el: Update. emacs-27.1 emacs-27.1-rc2
Nicolas Petton [Tue, 4 Aug 2020 20:05:24 +0000 (22:05 +0200)]
; lisp/ldefs-boot.el: Update.

4 years ago* etc/HISTORY: Update the Emacs 27.1 release date.
Nicolas Petton [Tue, 4 Aug 2020 19:41:07 +0000 (21:41 +0200)]
* etc/HISTORY: Update the Emacs 27.1 release date.

4 years ago; Update ChangeLog.3
Nicolas Petton [Tue, 4 Aug 2020 19:32:27 +0000 (21:32 +0200)]
; Update ChangeLog.3

4 years ago; Update etc/AUTHORS
Nicolas Petton [Tue, 4 Aug 2020 19:32:04 +0000 (21:32 +0200)]
; Update etc/AUTHORS

4 years ago; * etc/NEWS: fix some quoting
Robert Pluim [Tue, 4 Aug 2020 14:34:38 +0000 (16:34 +0200)]
; * etc/NEWS: fix some quoting

4 years ago; * lisp/so-long.el: Documentation
Phil Sainty [Mon, 3 Aug 2020 16:29:56 +0000 (04:29 +1200)]
; * lisp/so-long.el: Documentation

4 years agolisp/so-long.el: Improve support for major mode hooks
Phil Sainty [Sun, 8 Dec 2019 10:28:06 +0000 (23:28 +1300)]
lisp/so-long.el: Improve support for major mode hooks

* lisp/so-long.el (so-long-remember-all, so-long-disable-minor-modes)
(so-long-override-variables): Store and use the `so-long-minor-modes'
and `so-long-variable-overrides' values seen by the original major
mode, so that buffer-local changes made in the major mode hook will be
respected.

Add documentation of this and other major mode hook usage.

4 years ago; lisp/so-long.el: Prevent potential error if comment-use-syntax is nil
Phil Sainty [Sat, 11 Jul 2020 07:40:27 +0000 (19:40 +1200)]
; lisp/so-long.el: Prevent potential error if comment-use-syntax is nil

* lisp/so-long.el (so-long-detected-long-line-p): Ensure that
`comment-start-skip' and `comment-end-skip' are both set if
`comment-use-syntax' is nil, as `comment-forward' requires them
to be bound in this scenario.

4 years ago; * lisp/so-long.el: Byte-compilation bug fix
Phil Sainty [Fri, 3 Jul 2020 13:43:08 +0000 (01:43 +1200)]
; * lisp/so-long.el: Byte-compilation bug fix

As this `require' is not at the top-level (it is only conditionally
evaluated, when loading the library over the top of an earlier
version), we need `eval-and-compile' to ensure that both macros and
functions from advice.el are accounted for.

4 years ago; * lisp/so-long.el (so-long-variable-overrides): Improve doc
Phil Sainty [Sun, 8 Dec 2019 10:35:48 +0000 (23:35 +1300)]
; * lisp/so-long.el (so-long-variable-overrides): Improve doc

4 years ago; * so-long.el: Documentation and spelling
Phil Sainty [Sat, 14 Dec 2019 13:00:05 +0000 (02:00 +1300)]
; * so-long.el: Documentation and spelling

Reverting certain changes from commits b0f20651e3 and d1a791f8ed.

Please refer to the comments on spelling at the end of the library.
M-x ispell-buffer should find no misspellings in the documentation.
See also test/lisp/so-long-tests/spelling-tests.el

(The current spelling will persist while so-long.el is maintained in
its own Savannah repository, to avoid unnecessary conflicts between
the two versions.  If in the future it is maintained solely in the
Emacs repository, changing the spelling would become an option.)

Note that "mitigations" (plural) is intentional -- this library
identifies a collection of different performance mitigations,
multiple of which will typically be in effect together.

4 years agoAvoid segfaults if XIM is set but not xim_styles
Grégory Mounié [Sun, 2 Aug 2020 13:56:33 +0000 (15:56 +0200)]
Avoid segfaults if XIM is set but not xim_styles

Emacs segfaults at the X11 initialization if XIM is set
and xim_styles is NULL.  This patch avoids the crash.
* src/xfns.c: Check also if FRAME_X_XIM_STYLES(f) is NULL.
(Bug#42676)  (Bug#42673)  (Bug#42677)

Copyright-paperwork-exempt: yes

4 years ago; * test/lisp/emacs-lisp/generator-tests.el: Style fixes.
Philipp Stephani [Fri, 31 Jul 2020 21:50:04 +0000 (23:50 +0200)]
; * test/lisp/emacs-lisp/generator-tests.el: Style fixes.

4 years agoBackport: Make checking for liveness of global values more precise.
Philipp Stephani [Sat, 25 Jul 2020 21:23:19 +0000 (23:23 +0200)]
Backport: Make checking for liveness of global values more precise.

We can't just use a hash lookup because a global and a local reference
might refer to the same Lisp object.

* src/emacs-module.c (module_free_global_ref): More precise check for
global liveness.

(cherry picked from commit 9f01ce6327af886f26399924a9aadf16cdd4fd9f)

4 years agoBackport: Fix subtle bug when checking liveness of module values.
Philipp Stephani [Sat, 25 Jul 2020 21:04:05 +0000 (23:04 +0200)]
Backport: Fix subtle bug when checking liveness of module values.

We can't simply look up the Lisp object in the global reference table
because an invalid local and a valid global reference might refer to
the same object.  Instead, we have to test the address of the global
reference against the stored references.

* src/emacs-module.c (module_global_reference_p): New helper function.
(value_to_lisp): Use it.

(cherry picked from commit 6355a3ec62f43c9b99d483982ff851d32dd78891)

4 years agoBackport: Fix memory leak for global module objects (Bug#42482).
Philipp Stephani [Thu, 23 Jul 2020 11:48:43 +0000 (13:48 +0200)]
Backport: Fix memory leak for global module objects (Bug#42482).

Instead of storing the global values in a global 'emacs_value_storage'
object, store them as hash values alongside the reference counts.
That way the garbage collector takes care of cleaning them up.

* src/emacs-module.c (global_storage): Remove.
(struct module_global_reference): New pseudovector type.
(XMODULE_GLOBAL_REFERENCE): New helper function.
(module_make_global_ref, module_free_global_ref): Use
'module_global_reference' struct for global reference values.
(value_to_lisp, module_handle_nonlocal_exit): Adapt to deletion of
'global_storage'.

(cherry picked from commit 5c5eb9790898e4ab10bcbbdb6871947ed3018569)

4 years ago; ChangeLog.3 and etc/AUTHORS fixes
Nicolas Petton [Wed, 29 Jul 2020 20:50:01 +0000 (22:50 +0200)]
; ChangeLog.3 and etc/AUTHORS fixes

4 years ago* admin/authors.el (authors-aliases): Remove a faulty regexp.
Nicolas Petton [Wed, 29 Jul 2020 20:48:14 +0000 (22:48 +0200)]
* admin/authors.el (authors-aliases): Remove a faulty regexp.

4 years ago* doc/lispref/symbols.texi (Definitions): Fix typo.
Stefan Kangas [Wed, 29 Jul 2020 10:34:31 +0000 (12:34 +0200)]
* doc/lispref/symbols.texi (Definitions): Fix typo.

4 years ago; lisp/ldefs-boot.el: Update.
Nicolas Petton [Tue, 28 Jul 2020 21:04:11 +0000 (23:04 +0200)]
; lisp/ldefs-boot.el: Update.

4 years ago* etc/HISTORY: Add Emacs 27.1 release date. emacs-27.1-rc1
Nicolas Petton [Tue, 28 Jul 2020 20:30:24 +0000 (22:30 +0200)]
* etc/HISTORY: Add Emacs 27.1 release date.

4 years agoBump Emacs version to 27.1
Nicolas Petton [Tue, 28 Jul 2020 20:27:07 +0000 (22:27 +0200)]
Bump Emacs version to 27.1

* README:
* configure.ac:
* msdos/sed2v2.inp:
* nt/README.W32: Bump Emacs version.

4 years ago; Update ChangeLog.3
Nicolas Petton [Tue, 28 Jul 2020 20:26:42 +0000 (22:26 +0200)]
; Update ChangeLog.3

4 years ago* etc/AUTHORS: Update.
Nicolas Petton [Tue, 28 Jul 2020 20:25:32 +0000 (22:25 +0200)]
* etc/AUTHORS: Update.

4 years agoUpdate authors.el
Nicolas Petton [Tue, 28 Jul 2020 20:22:53 +0000 (22:22 +0200)]
Update authors.el

* admin/authors.el (authors-aliases): Add author aliases.

4 years ago* etc/NEWS: Remove temporary markup.
Nicolas Petton [Tue, 28 Jul 2020 20:02:53 +0000 (22:02 +0200)]
* etc/NEWS: Remove temporary markup.

4 years agoAdd another test for global module references
Philipp Stephani [Sun, 26 Jul 2020 20:54:33 +0000 (22:54 +0200)]
Add another test for global module references

* test/src/emacs-module-tests.el (mod-test-globref-reordered): New
unit test.

* test/data/emacs-module/mod-test.c (Fmod_test_globref_reordered): New
test module function.
(emacs_module_init): Export it.

4 years agoBackport: add another test case for module assertions.
Philipp Stephani [Sat, 25 Jul 2020 21:23:19 +0000 (23:23 +0200)]
Backport: add another test case for module assertions.

This backports commit 9f01ce6327 from master.  Since the bug isn’t
present on emacs-27, just backport the new test case.

* test/data/emacs-module/mod-test.c (Fmod_test_globref_invalid_free):
New test module function.
(emacs_module_init): Export it.

* test/src/emacs-module-tests.el
(module--test-assertions--globref-invalid-free): New unit test.

4 years agoBackport: Add module test for edge case.
Philipp Stephani [Sat, 25 Jul 2020 21:04:05 +0000 (23:04 +0200)]
Backport: Add module test for edge case.

This backports commit 6355a3ec62 from master.  Since the bug isn’t
present in emacs-27, just backport the test case.

* test/data/emacs-module/mod-test.c
(Fmod_test_invalid_store_copy): New test module function.
(emacs_module_init): Export it.

* test/src/emacs-module-tests.el
(module--test-assertions--load-non-live-object-with-global-copy):
New unit test.

4 years agoFix last change
Eli Zaretskii [Sat, 25 Jul 2020 16:25:02 +0000 (19:25 +0300)]
Fix last change

* src/composite.c (composition_reseat_it): Fix of the commentary,
and a minor change of the last fix.

4 years agoFix Arabic shaping when column-number-mode is in effect
Pip Cet [Fri, 5 Jun 2020 12:54:01 +0000 (12:54 +0000)]
Fix Arabic shaping when column-number-mode is in effect

* src/indent.c (scan_for_column, compute_motion): Pass -1,
instead of NEUTRAL_DIR, to 'composition_reseat_it'.
* src/composite.c (composition_reseat_it): Interpret negative
value of BIDI_LEVEL to mean the caller doesn't know what is the
bidi direction of the text.  (Bug#41005)

4 years agoFix description of kmacro-* commands in the user manual
Eli Zaretskii [Fri, 24 Jul 2020 14:47:59 +0000 (17:47 +0300)]
Fix description of kmacro-* commands in the user manual

* doc/emacs/kmacro.texi (Basic Keyboard Macro): Separate old-style
macro definition commands from the new style in the summary
table.  (Bug#42492)

4 years agoFix viewing of encrypted S/MIME messages
Lars Ingebrigtsen [Thu, 23 Jul 2020 15:12:33 +0000 (17:12 +0200)]
Fix viewing of encrypted S/MIME messages

* lisp/gnus/mm-decode.el (mm-possibly-verify-or-decrypt): Don't
add a content-type header if there already is one (bug#41659).

4 years agoRevert "Rectify allout-widgets region undecoration so item at start is not missed."
Ken Manheimer [Tue, 21 Jul 2020 14:57:29 +0000 (10:57 -0400)]
Revert "Rectify allout-widgets region undecoration so item at start is not missed."

This reverts commit 33d85cb768b40794bffcd9ab22fbdec1211a74e5.

Backporting it to emacs-27 was not appropriate.

4 years agoRevert "Resolve missing button-region keymap bindings."
Ken Manheimer [Tue, 21 Jul 2020 14:56:55 +0000 (10:56 -0400)]
Revert "Resolve missing button-region keymap bindings."

This reverts commit dd7c191291c8eb1afeac0f1512745491c5c7a317.

Backporting it to emacs-27 was not appropriate.

4 years agoRevert "Provide missing let definition to prevent background void-variable error."
Ken Manheimer [Tue, 21 Jul 2020 14:55:35 +0000 (10:55 -0400)]
Revert "Provide missing let definition to prevent background void-variable error."

This reverts commit 3c410b6b4753e02269bb36914e7534eb124150dd.

Backporting it to emacs-27 was not appropriate.

4 years agoRevert "Don't let item decoration be disrupted by too-shallow items."
Ken Manheimer [Tue, 21 Jul 2020 14:55:08 +0000 (10:55 -0400)]
Revert "Don't let item decoration be disrupted by too-shallow items."

This reverts commit 8684216542889fa57daa32072104afc69785907f.

Backporting it to emacs-27 was not appropriate.

4 years agoRevert "Fix allout-widgets-mode handling of edits to item cue, fixing (bug#11312)"
Ken Manheimer [Tue, 21 Jul 2020 14:52:50 +0000 (10:52 -0400)]
Revert "Fix allout-widgets-mode handling of edits to item cue, fixing (bug#11312)"

This reverts commit 8e13d332481551e4c8c1c66dd0c69dd09256dffc.

Backporting it to emacs-27 was not appropriate.

4 years agoRun custom-magic-reset in the customize buffer
Robert Pluim [Tue, 21 Jul 2020 14:37:59 +0000 (16:37 +0200)]
Run custom-magic-reset in the customize buffer

If the user has navigated away from the customize buffer, then
clicking on a widget in the customize buffer applies changes in the
selected buffer rather than in the customize buffer.  Pass the
customize buffer to 'custom-magic-reset' to avoid this.

* lisp/cus-edit.el (custom-magic-reset): Add optional buffer argument,
apply changes in that buffer.
(custom-notify): Pass the buffer containing the widget to
'custom-magic-reset'.  (Bug#40788)

4 years ago; spelling fix
Robert Pluim [Tue, 21 Jul 2020 07:54:58 +0000 (09:54 +0200)]
; spelling fix

4 years agoBackport: Rectify allout-widgets region undecoration so item at start is not missed.
Ken Manheimer [Sun, 5 Jul 2020 20:38:13 +0000 (16:38 -0400)]
Backport: Rectify allout-widgets region undecoration so item at start is not missed.

* lisp/allout-widgets.el (allout-widgets-undecorate-region):
Reorganize the loop so an item at the start is not skipped.

(cherry picked from commit 33d85cb768b40794bffcd9ab22fbdec1211a74e5)

4 years agoBackport: Resolve missing button-region keymap bindings.
Ken Manheimer [Tue, 7 Jul 2020 14:32:03 +0000 (10:32 -0400)]
Backport: Resolve missing button-region keymap bindings.

* lisp/allout-widgets.el (allout-item-icon-keymap,
allout-item-body-keymap, allout-cue-span-keymap, allout-widgets-mode):
Inherit from both (current-local-map) and (current-global-map). This
provides for missing global bindings when inheriting from
just (current-local-map), eg Esc-<.

(cherry picked from commit dd7c191291c8eb1afeac0f1512745491c5c7a317)

4 years agoBackport: Provide missing let definition to prevent background void-variable error.
Ken Manheimer [Mon, 6 Jul 2020 17:19:11 +0000 (13:19 -0400)]
Backport: Provide missing let definition to prevent background void-variable error.

* lisp/allout-widgets.el (allout-widgets-exposure-change-processor)
Let-declare handled-conceal, for reference through `(symbol-value)'
within the let body. (Because the error happens in an
after-change-functions hook, so it is caught and reported as a message
by allout-widgets-hook-error-handler.)

(cherry picked from commit 3c410b6b4753e02269bb36914e7534eb124150dd)

4 years agoBackport: Don't let item decoration be disrupted by too-shallow items.
Ken Manheimer [Mon, 6 Jul 2020 18:18:57 +0000 (14:18 -0400)]
Backport: Don't let item decoration be disrupted by too-shallow items.

* lisp/allout-widgets.el (allout-decorate-item-and-context): Check for
parent-position having value before using it.

Also, shift local emacs vars topic deeper so it doesn't constitute
an instance of that particular aberrant case.

(cherry picked from commit 8684216542889fa57daa32072104afc69785907f)

4 years agoBackport: Fix allout-widgets-mode handling of edits to item cue, fixing (bug#11312)
Ken Manheimer [Sun, 5 Jul 2020 20:27:52 +0000 (16:27 -0400)]
Backport: Fix allout-widgets-mode handling of edits to item cue, fixing (bug#11312)

* lisp/allout-widgets.el (allout-decorate-item-cue): Properly decorate
item cue span.
(allout-setup-text-properties): use allout-graphics-modification-handler
as allout-cue-span-category modification hook.

(cherry picked from commit 8e13d332481551e4c8c1c66dd0c69dd09256dffc)

4 years agoMerge branch 'emacs-27' of git.savannah.gnu.org:/srv/git/emacs into emacs-27
Eli Zaretskii [Mon, 20 Jul 2020 14:31:50 +0000 (17:31 +0300)]
Merge branch 'emacs-27' of git.savannah.gnu.org:/srv/git/emacs into emacs-27

4 years agoDocument prefix arg effects for 'epa-mail-{sign,encrypt}'
Robert Pluim [Mon, 20 Jul 2020 12:47:43 +0000 (14:47 +0200)]
Document prefix arg effects for 'epa-mail-{sign,encrypt}'

* doc/misc/epa.texi (Mail-mode integration): Describe effect of
prefix arg to 'epa-mail-encrypt' and 'epa-mail-sign'.

* lisp/epa-mail.el (epa-mail-sign): Describe effect of prefix arg.

4 years ago* etc/NEWS: Correct description of :client-certificate change
Robert Pluim [Mon, 20 Jul 2020 12:39:25 +0000 (14:39 +0200)]
* etc/NEWS: Correct description of :client-certificate change

4 years agoRevert "Fix filename completion in shell mode buffers"
Eli Zaretskii [Sat, 18 Jul 2020 08:17:31 +0000 (11:17 +0300)]
Revert "Fix filename completion in shell mode buffers"

This reverts commit e4d17d8cb479ffeeb7dfb7320a1432722ac8df75.
Per bug#42383 discussions, the fix for bug#34330 probably
just works around the real issue, which is in pcomplete.el.

4 years agoImprove documentation of 'bookmark-bmenu-mode'
Eli Zaretskii [Sat, 18 Jul 2020 07:53:20 +0000 (10:53 +0300)]
Improve documentation of 'bookmark-bmenu-mode'

* lisp/bookmark.el (bookmark-bmenu-mode): Add
`bookmark-bmenu-search' to the doc string.  (Bug#42325)

4 years agoUpdate systems using GnuTLS certificate files
Eli Zaretskii [Sat, 18 Jul 2020 07:02:28 +0000 (10:02 +0300)]
Update systems using GnuTLS certificate files

* lisp/net/gnutls.el (gnutls-trustfiles): Update the names of the
systems in the comments.  Reported by Richard Stallman <rms@gnu.org>
in
https://lists.gnu.org/archive/html/emacs-devel/2020-07/msg00455.html.

4 years agoImprove documentation of 'kill-emacs'
Eli Zaretskii [Fri, 17 Jul 2020 14:54:00 +0000 (17:54 +0300)]
Improve documentation of 'kill-emacs'

* doc/lispref/os.texi (Killing Emacs):
* src/emacs.c (Fkill_emacs): Document what non-integer, non-string
argument to 'kill-emacs' means.  (Bug#42400)

4 years agoImprove documentation of 'display-raw-bytes-as-hex'
Eli Zaretskii [Fri, 17 Jul 2020 14:40:54 +0000 (17:40 +0300)]
Improve documentation of 'display-raw-bytes-as-hex'

* doc/emacs/display.texi (Text Display): Mention
'display-raw-bytes-as-hex'.  (Bug#42384)