Clemens Radermacher [Tue, 27 Oct 2020 17:31:47 +0000 (18:31 +0100)]
Fix NEWS entry for fix of Bug#44080
Eli Zaretskii [Tue, 27 Oct 2020 15:43:29 +0000 (17:43 +0200)]
* src/buffer.c (syms_of_buffer) <fill-column>: Improve doc string.
Clemens Radermacher [Tue, 27 Oct 2020 08:45:25 +0000 (09:45 +0100)]
Don't skip empty lines when fitting mini frame to buffer (Bug#44080)
* lisp/window.el (fit-mini-frame-to-buffer,
window--resize-mini-frame, fit-frame-to-buffer,
fit-frame-to-buffer-1): By default, fit a mini frame without skipping its
buffer's leading or trailing empty lines.
* src/frame.c (resize-mini-frames): Update doc-string.
* lisp/cus-start.el (resize-mini-frames): Update for customize.
* doc/lispref/minibuf.texi (resize-mini-frames): Update description.
Philipp Stephani [Mon, 26 Oct 2020 20:38:13 +0000 (21:38 +0100)]
; * etc/tutorials/TUTORIAL.de: Fix grammar (Bug#44246)
Eli Zaretskii [Mon, 26 Oct 2020 16:01:13 +0000 (18:01 +0200)]
Improve documentation of display-fill-column-indicator
* lisp/display-fill-column-indicator.el
(display-fill-column-indicator-mode): Mention the globalized
version in the doc string.
* doc/emacs/display.texi (Displaying Boundaries): Improve and
clarify the documentation of display-fill-column-indicator.
Suggest using the minor mode as the primary means for turning the
feature on.
* src/xdisp.c (syms_of_xdisp) <display-fill-column-indicator>
<display-fill-column-indicator-character>: Doc fix. (Bug#44226)
Michael Albinus [Sun, 25 Oct 2020 11:44:01 +0000 (12:44 +0100)]
* INSTALL: Mention efaq.texi for installation of intlfonts.
Paul Eggert [Sat, 24 Oct 2020 22:34:12 +0000 (15:34 -0700)]
Use WebKit sandboxing
* src/xwidget.c (Fmake_xwidget): Enable sandboxing if WebKit 2.26
or later. Do this early, as required for sandboxing (Bug#43071).
Co-authored-by: Qiantan Hong <qhong@mit.edu>
Copyright-paperwork-exempt: yes
Michael Albinus [Sat, 24 Oct 2020 11:08:31 +0000 (13:08 +0200)]
Fix tramp-sh-handle-make-process; don't merge with master
* lisp/net/tramp-sh.el (tramp-sh-handle-make-process): Accept nil
COMMAND. (Bug#44151)
* test/lisp/net/tramp-tests.el (tramp-test29-start-file-process):
Extend test.
Michael Albinus [Fri, 23 Oct 2020 14:26:47 +0000 (16:26 +0200)]
Merge branch 'emacs-27' of git.sv.gnu.org:/srv/git/emacs into emacs-27
Michael Albinus [Fri, 23 Oct 2020 14:26:25 +0000 (16:26 +0200)]
Fix an error in tramp-sh-handle-make-process. Dont' merge with master
* lisp/net/tramp-sh.el (tramp-sh-handle-make-process): Don't use heredoc
script whent the argument contains a string.
Stefan Kangas [Tue, 20 Oct 2020 23:50:50 +0000 (01:50 +0200)]
Recommend lexical-binding in Coding Conventions
* doc/lispref/tips.texi (Coding Conventions, Library Headers):
Recommend using lexical-binding.
Eli Zaretskii [Wed, 21 Oct 2020 15:32:51 +0000 (18:32 +0300)]
Avoid rare crashes while producing line numbers
* src/xdisp.c (maybe_produce_line_number): Prevent freeing of
realized faces for as long as we are using lnum_face_id and
current_lnum_face_id for producing glyphs. (Bug#44111)
Eli Zaretskii [Sat, 17 Oct 2020 11:43:25 +0000 (14:43 +0300)]
Improve documentation of 'Info-hide-note-references' in info.texi
* doc/misc/info.texi (Help-Xref): Improve the wording.
(Emacs Info Variables): Update the documentation of
'Info-hide-note-references'. (Bug#44043)
Stefan Kangas [Sat, 17 Oct 2020 00:06:26 +0000 (02:06 +0200)]
* admin/release-process: Add note to update files from upstream.
(cherry picked from commit
86dd9d12aa5a273da2efd4ce8c6e35ae343f1494)
Eli Zaretskii [Sat, 17 Oct 2020 07:32:26 +0000 (10:32 +0300)]
* lisp/info.el (Info-hide-note-references): Doc fix. (Bug#44043)
Alan Mackenzie [Fri, 16 Oct 2020 16:25:19 +0000 (16:25 +0000)]
Make lisp/progmodes/js.el dependent on CC Mode in the Makefile.
This will prevent version mismatches between compile time and runtime
versions. This fixes bug #43037.
* lisp/Makefile.in: Make js.el dependent on cc-{defs,engine,mode}.elc.
Eli Zaretskii [Fri, 16 Oct 2020 07:17:42 +0000 (10:17 +0300)]
Yet another fix for 'set-minibuffer-message'
* lisp/minibuffer.el (set-minibuffer-message): Handle the case of
separate minibuffer-only frame. Suggested by Gregory Heytings
<ghe@sdf.org>.
Eli Zaretskii [Fri, 16 Oct 2020 07:02:50 +0000 (10:02 +0300)]
Fix posn-at-x-y in builds --without-x
* src/keyboard.c (make_lispy_position): Don't exclude the
window_or_frame = frame case from TTY-only builds. Reported by
Jared Finder <jared@finder.org>.
* doc/lispref/commands.texi (Click Events): Document the format of
POSITION in click events on the frame's internal border.
Lars Ingebrigtsen [Thu, 15 Oct 2020 07:37:44 +0000 (09:37 +0200)]
Clarify the seq-reduce documentation
* doc/lispref/sequences.texi (Sequence Functions): Ditto.
* lisp/emacs-lisp/seq.el (seq-reduce): Clarify the order of the
arguments (bug#43995).
Michael Albinus [Mon, 12 Oct 2020 11:06:16 +0000 (13:06 +0200)]
Make tramp-completion-reread-directory-timeout obsolete (Bug#43932)
* doc/misc/tramp.texi (File name completion, Frequently Asked Questions):
Remove `tramp-completion-reread-directory-timeout'. (Bug#43932)
* etc/NEWS: Mention tramp-completion-reread-directory-timeout as obsolete.
* lisp/net/tramp.el (tramp-completion-reread-directory-timeout):
Make it obsolete.
Gregory Heytings [Sun, 11 Oct 2020 14:36:44 +0000 (17:36 +0300)]
Fix 'message' when there's active minibuffer on another frame
* lisp/minibuffer.el (set-minibuffer-message): Don't reuse the
active minibuffer for displaying messages unless the active
minibuffer is on the same frame as the selected window.
Copyright-paperwork-exempt: yes
Stefan Monnier [Sat, 10 Oct 2020 15:07:28 +0000 (11:07 -0400)]
* lisp/emacs-lisp/easy-mmode.el (define-minor-mode): Doc tweak
Try and clarify the meaning of `init-value`.
(cherry picked from commit
46c0f28c0e4e212687e90ec0ecb239d994105a19)
Eli Zaretskii [Sat, 10 Oct 2020 08:11:34 +0000 (11:11 +0300)]
A better fix for bug#43886
* src/xfaces.c (load_color2, Fcolor_distance): Revert last change.
* src/term.c (clear_tty_hooks): Don't clear defined_color_hook.
Eli Zaretskii [Fri, 9 Oct 2020 19:21:18 +0000 (22:21 +0300)]
Avoid crashes when a theme is loaded with one frame suspended
* src/xfaces.c (load_color2, Fcolor_distance): Don't try to call
the frame's defined_color_hook if the frame is suspended.
(Bug#43886)
Pankaj Jangid [Fri, 9 Oct 2020 04:46:27 +0000 (06:46 +0200)]
Removed an incorrectly placed extra word in the semantic docs
* doc/misc/semantic.texi (Parser code): Copy edit (bug#43861).
Copyright-paperwork-exempt: yes
Eli Zaretskii [Thu, 8 Oct 2020 11:45:16 +0000 (14:45 +0300)]
Fix current-line hscrolling when overlays change
* src/xdisp.c (redisplay_internal): Disable "optimization 1" when
auto-hscrolling current line and we're redisplaying the selected
window. (Bug#43835)
Michael Albinus [Thu, 8 Oct 2020 09:28:50 +0000 (11:28 +0200)]
Extend tests for shell-command-dont-erase-buffer
* test/lisp/simple-tests.el
(simple-tests-shell-command-dont-erase-buffer): Extend test.
* test/lisp/net/tramp-tests.el
(tramp-test32-shell-command-dont-erase-buffer): Adapt test. Tag
it :unstable.
Hong Xu [Wed, 7 Oct 2020 02:41:29 +0000 (04:41 +0200)]
Clarify what ``chrooted environment means'' for TRAMP
* doc/misc/tramp.texi (Frequently Asked Questions): Clarify what
``chrooted environment means'' for TRAMP (bug#43839).
Eli Zaretskii [Tue, 6 Oct 2020 16:32:20 +0000 (19:32 +0300)]
; * src/xdisp.c (Fwindow_text_pixel_size): Doc fix.
Daniel Martín [Tue, 6 Oct 2020 01:42:44 +0000 (03:42 +0200)]
Add missing full stop in MS-DOS processes documentation
* doc/emacs/msdos-xtra.texi (MS-DOS Processes): Minor copy edig
(bug#43820).
Eli Zaretskii [Mon, 5 Oct 2020 09:34:22 +0000 (12:34 +0300)]
Fix merging of region face for non-ASCII characters
* src/xdisp.c (extend_face_to_end_of_line): Restore the correct
original face used by the iterator on this line, not the ASCII
face. (Bug#43363)
Alan Third [Sun, 27 Sep 2020 09:55:32 +0000 (10:55 +0100)]
Make drag and drop on NS open all URLs (bug#43470)
* lisp/term/ns-win.el (ns-drag-n-drop): Merge generic and copy
actions.
Co-authored-by: Daniel Martín <mardani29@yahoo.es>
Lars Ingebrigtsen [Fri, 2 Oct 2020 06:07:53 +0000 (08:07 +0200)]
Fix electric-buffer-list buffer selection
* lisp/ebuff-menu.el (electric-buffer-list): Ensure that point is
restored, which isn't always the case if
global-display-line-numbers-mode (bug#43755). This enables
selecting buffers again.
Stefan Kangas [Wed, 23 Sep 2020 11:35:55 +0000 (13:35 +0200)]
; Fix many typos in symbols in docs and comments
Eli Zaretskii [Fri, 2 Oct 2020 10:57:51 +0000 (13:57 +0300)]
* doc/misc/flymake.texi (Using Flymake): Fix a typo. (Bug#43758)
Robert Pluim [Fri, 2 Oct 2020 08:47:06 +0000 (10:47 +0200)]
Don't error if no GPG signing key configured
* lisp/gnus/mml-sec.el (mml-secure-epg-sign): Partially revert
"Make mml-secure-epg-sign bug out if we can't find an identity".
It causes signing to fail for people who have not set up
mml-secure-{smime,openpgp}-sign-with-sender, which is a regression
from Emacs-26 (Bug#40118). In such a situation gpg will use its
default key.
Do not merge to master. On master Emacs will query the user.
Michael R. Mauger [Mon, 30 Mar 2020 00:52:10 +0000 (20:52 -0400)]
2020-03-29 Michael R. Mauger <michael@mauger.com>
* lisp/progmodes/sql.el (sql-add-product): Re-correct argument
spec. Previous change was due to my mistake; I have
resolved back to the prior behavior (Bug#39960).
* test/lisp/progmodes/sql-tests.el (sql-test-add-product): Added
test to insure I don't make the same mistake again.
Lars Ingebrigtsen [Thu, 1 Oct 2020 18:03:58 +0000 (20:03 +0200)]
Make aliases introduced in previous patch obsolete
* lisp/emacs-lisp/debug.el (debugger-toggle-locals):
(debug-help-follow): Make reinstated aliases obsolete.
Gemini Lasswell [Thu, 1 Oct 2020 17:59:58 +0000 (19:59 +0200)]
Restore some public debugging functions removed in Emacs 27
* lisp/emacs-lisp/backtrace.el (backtrace--to-string): New function.
(backtrace-to-string): Use it. Fix whitespace (bug#40728).
* lisp/emacs-lisp/debug.el (debugger-insert-backtrace): New function.
Mark it as obsolete.
(debugger-toggle-locals, debug-help-follow): New aliases.
Glenn Morris [Thu, 1 Oct 2020 13:11:26 +0000 (06:11 -0700)]
; Auto-commit of loaddefs files.
Michael Albinus [Thu, 1 Oct 2020 12:23:20 +0000 (14:23 +0200)]
Clarification in Tramp manual
* doc/misc/tramp.texi: Harmonize "Git" spelling.
(Frequently Asked Questions): Describe Emacs version mismatch.
Michael Albinus [Thu, 1 Oct 2020 10:16:59 +0000 (12:16 +0200)]
Check Emacs version used for Tramp compilation
* lisp/net/tramp-compat.el (tramp-compat-emacs-compiled-version):
New defconst. Raise a warning, when it is not equal to the Emacs
version.
Eli Zaretskii [Tue, 29 Sep 2020 15:21:23 +0000 (18:21 +0300)]
Don't signal an error when saving files on WdebDAV volumes
* src/w32.c (acl_get_file): If get_file_security raises the
ERROR_ACCESS_DENIED error, treat that like unsupported ACLs.
Eli Zaretskii [Tue, 29 Sep 2020 15:07:44 +0000 (18:07 +0300)]
; * lisp/net/eww.el (eww-search-words): Doc fix.
Eli Zaretskii [Mon, 28 Sep 2020 09:45:28 +0000 (12:45 +0300)]
* lisp/hi-lock.el (hi-lock-find-patterns): Autoload it. (Bug#43670)
Eli Zaretskii [Sun, 27 Sep 2020 06:09:27 +0000 (09:09 +0300)]
Minor copyedits in the Emacs user manual
* doc/emacs/emacs.texi (Top): Remove "real-time" from the Emacs
description; add "advanced", to be consistent with what we say in
the Introduction section. (Bug#43633)
Eli Zaretskii [Sat, 26 Sep 2020 15:35:00 +0000 (18:35 +0300)]
Followup to a recent change in menu-bar.el
* lisp/fileloop.el (fileloop--operate-function): Mention in a
comment that menu-bar.el relies on the default value.
Eli Zaretskii [Sat, 26 Sep 2020 08:50:15 +0000 (11:50 +0300)]
Enable "Continue Tags Search" menu item only when it can be used
* lisp/menu-bar.el (menu-bar-search-menu) <tags-continue>: Enable
only when there was a previous tags search. (Bug#43569)
(menu-bar-replace-menu) <tags-repl-continue>: Enable only when
there was a previous tags-replace.
Paul Eggert [Sat, 26 Sep 2020 07:31:17 +0000 (00:31 -0700)]
Fix soap-client URL
* lisp/net/soap-client.el (soap-create-envelope):
Fix URL that I broke in 2019-09-23T06:53:30Z!eggert@cs.ucla.edu.
Problem reported by Thomas Fitzsimmons.
Paul Eggert [Thu, 9 Jul 2020 23:35:48 +0000 (16:35 -0700)]
Fix out-of-source ‘make check’ emacs-module-tests
Problem reported by Koki Fukuda in:
https://lists.gnu.org/r/emacs-devel/2020-07/msg00169.html
* test/Makefile.in (MODULE_CFLAGS):
Include from the same directories included from in ../src.
* test/src/emacs-module-tests.el (module/describe-function-1):
Strip path to source directory.
(cherry picked from commit
c86f3fe0d023cdd25edbbce91c5b32654f2b734e)
Eli Zaretskii [Fri, 25 Sep 2020 14:11:11 +0000 (17:11 +0300)]
Fix support for Zip64 zip files
* lisp/arc-mode.el (archive-zip-summarize): Fix detection of Zip64
central directory. Support 64-bit file size field used by Zip64.
(Bug#43597)
Eli Zaretskii [Fri, 25 Sep 2020 09:41:54 +0000 (12:41 +0300)]
* lisp/hi-lock.el (hi-lock-auto-select-face): Doc fix. (Bug#43600)
Eli Zaretskii [Fri, 25 Sep 2020 08:55:51 +0000 (11:55 +0300)]
Avoid infinite recursion with 'relative' line numbers display
* src/xdisp.c (display_count_lines_visually): Bind
'display-line-numbers' to 'relative' around 'start_display' as
well, since that can invoke 'move_it_to' internally, thus
causing infinite recursion. (Bug#43589)
Stefan Kangas [Mon, 21 Sep 2020 13:12:16 +0000 (15:12 +0200)]
; Fix more trivial typos
Stefan Kangas [Mon, 21 Sep 2020 13:03:57 +0000 (15:03 +0200)]
; Fix some trivial typos
Eli Zaretskii [Sun, 20 Sep 2020 14:33:55 +0000 (17:33 +0300)]
Minor improvement in the ELisp manual's Introduction
* doc/lispref/intro.texi (Printing Notation): Clarify what
"execute code" means in this context. (Bug#43463)
Eli Zaretskii [Sun, 20 Sep 2020 11:08:35 +0000 (14:08 +0300)]
Mention in PROBLEMS the problems with fonts and Uniscribe
* etc/PROBLEMS: Mention font-related problems with Uniscribe on
MS-Windows. (Bug#39340)
Eli Zaretskii [Sat, 19 Sep 2020 19:22:08 +0000 (22:22 +0300)]
Minor copyedits in 'line-height' documentation
* doc/lispref/display.texi (Line Height): Describe the possible
values of the 'line-height' property in a more consistent format.
Eli Zaretskii [Sat, 19 Sep 2020 18:57:20 +0000 (21:57 +0300)]
; * src/frame.c (syms_of_frame) <make-pointer-invisible>: Doc fix.
Gregor Zattler [Sat, 19 Sep 2020 17:25:24 +0000 (19:25 +0200)]
* doc/misc/eww.texi: Document the `w' key's double function
* doc/misc/eww.texi (Basics): Describe what the `w' command does
in eww (bug#43517).
Eli Zaretskii [Sat, 19 Sep 2020 16:54:01 +0000 (19:54 +0300)]
Fix a rare segfault in syntax.c
* src/syntax.c (Fforward_comment): Prevent the loop for COUNT < 0
from going outside the valid range of character/byte positions.
(Bug#43499)
* doc/lispref/syntax.texi (Syntax Class Table): Mention the
"comment-fence" and "string-fence" as alternative names of 2
syntax classes.
Alan Mackenzie [Sat, 19 Sep 2020 16:50:27 +0000 (16:50 +0000)]
Add doc to syntax-propertize-function saying it must do a 100% job
and cannot be combined with other ways of applying syntax-table text
properties.
* lisp/emacs-lisp/syntax.el (syntax-propertize-function): Amend doc string.
* doc/lispref/syntax.texi (Syntax Properties): Amend the description of the
variable.
Eli Zaretskii [Sat, 19 Sep 2020 08:30:57 +0000 (11:30 +0300)]
Minor copyedits of doc of 'with-silent-modifications'
* doc/lispref/text.texi (Changing Properties):
* doc/lispref/buffers.texi (Buffer Modification): Improve
documentation and indexing of 'with-silent-modifications'.
Eli Zaretskii [Fri, 18 Sep 2020 19:50:36 +0000 (22:50 +0300)]
Improve documentation of 'max-mini-window-height'
* src/xdisp.c (syms_of_xdisp):
* doc/lispref/minibuf.texi (Minibuffer Windows): More accurate
wording in the documentation of 'max-mini-window-height', to
clarify the meaning of an integer value.
Daniel Martín [Fri, 18 Sep 2020 11:36:47 +0000 (13:36 +0200)]
Use modern constant names for the NS pasteboard
Use the same pasteboard constant names defined in
ns_drag_types. (Bug#43470).
* src/nsterm.m: Rename NSURLPboardType to NSPasteboardTypeURL,
NSStringPboardType to NSPasteboardTypeString, and
NSTabularTextPboardType to NSPasteboardTypeTabularText
Eli Zaretskii [Wed, 16 Sep 2020 16:16:25 +0000 (19:16 +0300)]
Fix doc string of 'toggle-menu-bar-mode-from-frame'
* lisp/menu-bar.el (toggle-menu-bar-mode-from-frame): Improve the
wording of the doc string. (Bug#43383)
Glenn Morris [Sat, 12 Sep 2020 16:51:32 +0000 (09:51 -0700)]
Make vc-bzr tests work with brz 3.1 (bug#43314)
* test/lisp/vc/vc-bzr-tests.el (vc-bzr-test-bug9726)
(vc-bzr-test-bug9781, vc-bzr-test-faulty-bzr-autoloads):
Make them work with brz 3.1.
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.
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)
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).
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)
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.
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.
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.
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)
Stefan Kangas [Mon, 31 Aug 2020 18:47:50 +0000 (20:47 +0200)]
; * lisp/man.el (Man-mode): Fix formatting.
Stefan Kangas [Tue, 1 Sep 2020 21:59:11 +0000 (23:59 +0200)]
; Fix typos; change "Emacs-Lisp" to "Emacs Lisp"
Glenn Morris [Tue, 1 Sep 2020 13:12:02 +0000 (06:12 -0700)]
; Auto-commit of loaddefs files.
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)
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.
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.
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)
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.
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.
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)
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.
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'.
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).
Michael Albinus [Tue, 25 Aug 2020 13:19:11 +0000 (15:19 +0200)]
* admin/admin.el (reminder-for-release-blocking-bugs): New command.
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.
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.
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
Eli Zaretskii [Fri, 21 Aug 2020 15:15:05 +0000 (18:15 +0300)]
; * src/character.c (str_as_multibyte): Fix the commentary.
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.
Glenn Morris [Wed, 19 Aug 2020 19:52:08 +0000 (20:52 +0100)]
* admin/admin.el (set-version): Trap yet another NEWS error.
Stefan Kangas [Wed, 19 Aug 2020 17:51:52 +0000 (19:51 +0200)]
; * etc/NEWS: Remove temporary note on documentation. (Bug#42917)
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.
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).
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).
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).