]> git.eshelyaron.com Git - emacs.git/log
emacs.git
5 years ago* doc/lispref/display.texi (Defining Faces): Say a face can't be undefined.
Alan Mackenzie [Mon, 22 Jul 2019 14:57:41 +0000 (14:57 +0000)]
* doc/lispref/display.texi (Defining Faces): Say a face can't be undefined.

5 years agoHandle completely undecoded input in term (Bug#29918)
Noam Postavsky [Wed, 17 Jul 2019 11:20:20 +0000 (07:20 -0400)]
Handle completely undecoded input in term (Bug#29918)

* lisp/term.el (term-emulate-terminal): Avoid errors if the whole
decoded string is eight-bit characters.  Don't attempt to save the
string for next iteration in that case.
* test/lisp/term-tests.el (term-decode-partial)
(term-undecodable-input): New tests.

5 years ago* doc/misc/forms.texi (Control File Format): Fix a doc error.
N. Jackson [Mon, 15 Jul 2019 22:22:44 +0000 (18:22 -0400)]
* doc/misc/forms.texi (Control File Format): Fix a doc error.

(Bug#36693)

Copyright-paperwork-exempt: yes

5 years agoFix typo in package-alist docstring
Basil L. Contovounesios [Wed, 17 Jul 2019 14:02:21 +0000 (15:02 +0100)]
Fix typo in package-alist docstring

Pointed out by Michael Heerdegen <michael_heerdegen@web.de>.
* lisp/emacs-lisp/package.el (package-alist): Fix docstring
grammar (bug#17403).

5 years ago* doc/lispref/text.texi (Mode-Specific Indent): Fix a typo (bug#36646).
Markus Triska [Sun, 14 Jul 2019 07:31:26 +0000 (09:31 +0200)]
* doc/lispref/text.texi (Mode-Specific Indent): Fix a typo (bug#36646).

5 years ago; Another minor change in 'bidi-display-reordering's doc string.
Eli Zaretskii [Sat, 13 Jul 2019 11:24:15 +0000 (14:24 +0300)]
; Another minor change in 'bidi-display-reordering's doc string.

5 years agoImprove doc string of 'bidi-display-reordering'
Eli Zaretskii [Sat, 13 Jul 2019 11:21:41 +0000 (14:21 +0300)]
Improve doc string of 'bidi-display-reordering'

* src/buffer.c (syms_of_buffer) <bidi-display-reordering>:
Further doc fix.

5 years agoAdd warning to bidi-display-reordering doc string
Stefan Kangas [Sat, 13 Jul 2019 10:11:19 +0000 (12:11 +0200)]
Add warning to bidi-display-reordering doc string

This explanation was given by Eli Zaretskii on emacs-devel.
For discussion, see:
https://lists.gnu.org/archive/html/emacs-devel/2019-07/msg00294.html

* src/buffer.c (syms_of_buffer): Add warning to doc string of
bidi-display-reordering to explain that it should only be used for
debugging.

5 years agoRaise required librsvg version so as to match the current use
YAMAMOTO Mitsuharu [Fri, 12 Jul 2019 00:03:39 +0000 (09:03 +0900)]
Raise required librsvg version so as to match the current use

* configure.ac: Set RSVG_REQUIRED to 2.14.0 as rsvg_handle_get_dimensions
needs it.

5 years ago* lisp/net/tramp-sh.el (tramp-inline-compress-start-size): Set nil on w32.
Michael Albinus [Wed, 10 Jul 2019 08:34:02 +0000 (10:34 +0200)]
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size): Set nil on w32.

5 years ago* lisp/progmodes/verilog-mode.el: One more ELPA Version:
Stefan Monnier [Tue, 9 Jul 2019 13:27:07 +0000 (09:27 -0400)]
* lisp/progmodes/verilog-mode.el: One more ELPA Version:

5 years ago; * doc/emacs/killing.texi (Secondary Selection): Fix last change.
Eli Zaretskii [Sat, 6 Jul 2019 18:33:45 +0000 (21:33 +0300)]
; * doc/emacs/killing.texi (Secondary Selection): Fix last change.

5 years ago* lisp/svg.el, lisp/progmodes/ada-mode.el: Fix bug#36360.
Stefan Monnier [Sat, 6 Jul 2019 16:16:24 +0000 (12:16 -0400)]
* lisp/svg.el, lisp/progmodes/ada-mode.el: Fix bug#36360.

Tell package.el their version number, for better behavior w.r.t the
versions available in GNU ELPA

5 years agoMinor copyedit of "Font Lock" in user manual
Eli Zaretskii [Sat, 6 Jul 2019 14:25:46 +0000 (17:25 +0300)]
Minor copyedit of "Font Lock" in user manual

* doc/emacs/display.texi (Font Lock): Make the wording about
"enabling Font Lock" crystal clear.  (Bug#36529)

5 years agoImprove description of image descriptors
Eli Zaretskii [Sat, 6 Jul 2019 12:32:20 +0000 (15:32 +0300)]
Improve description of image descriptors

* doc/lispref/display.texi (Image Descriptors): More accurate
description of where image files are looked up.  (Bug#36523)

5 years ago; * src/lread.c (Fread): Make the comment wording more accurate.
Eli Zaretskii [Sat, 6 Jul 2019 08:40:49 +0000 (11:40 +0300)]
; * src/lread.c (Fread): Make the comment wording more accurate.

5 years agoImprove documentation of secondary selections
Eli Zaretskii [Sat, 6 Jul 2019 08:30:35 +0000 (11:30 +0300)]
Improve documentation of secondary selections

* doc/emacs/killing.texi (Secondary Selection): Improve
wording.  Mention that 'M-mouse-1' can be used to cancel
secondary selections.  (Bug#36365)

5 years ago* src/fns.c (Fmapconcat): Doc fix. (Bug#36418)
Eli Zaretskii [Sat, 6 Jul 2019 07:31:06 +0000 (10:31 +0300)]
* src/fns.c (Fmapconcat): Doc fix.  (Bug#36418)

5 years agoAvoid crash inside CFCharacterSetIsLongCharacterMember (Bug#36507)
YAMAMOTO Mitsuharu [Sat, 6 Jul 2019 05:24:34 +0000 (14:24 +0900)]
Avoid crash inside CFCharacterSetIsLongCharacterMember (Bug#36507)

* src/macfont.m (macfont_supports_charset_and_languages_p)
(macfont_has_char): Don't pass integers outside the Unicode codespace to
CFCharacterSetIsLongCharacterMember.  Do not merge to master.

5 years agoFix python.el docstring (Bug#36458)
Noam Postavsky [Sat, 6 Jul 2019 01:34:16 +0000 (21:34 -0400)]
Fix python.el docstring (Bug#36458)

* lisp/progmodes/python.el (python-shell--prompt-calculated-output-regexp):
python-shell-set-prompt-regexp doesn't exist, presumably
python-shell-prompt-set-calculated-regexps was meant.

5 years ago; Add thing-at-point-looking-at test (Bug#35708)
Noam Postavsky [Mon, 13 May 2019 12:39:00 +0000 (08:39 -0400)]
; Add thing-at-point-looking-at test (Bug#35708)

* test/lisp/thingatpt-tests.el (thing-at-point-looking-at): New test.

5 years ago; Fix typo, insure -> ensure in ChangeLogs
Noam Postavsky [Thu, 30 May 2019 12:16:46 +0000 (08:16 -0400)]
; Fix typo, insure -> ensure in ChangeLogs

5 years ago* lisp/hi-lock.el (hi-lock-line-face-buffer): Doc fix. (Bug36448)
Eli Zaretskii [Wed, 3 Jul 2019 12:55:10 +0000 (15:55 +0300)]
* lisp/hi-lock.el (hi-lock-line-face-buffer): Doc fix.  (Bug36448)

5 years ago; Auto-commit of loaddefs files.
Glenn Morris [Mon, 1 Jul 2019 13:08:24 +0000 (06:08 -0700)]
; Auto-commit of loaddefs files.

5 years agoFix typo in doc string of file-exists-p (bug#36408)
Stefan Kangas [Fri, 28 Jun 2019 00:08:14 +0000 (02:08 +0200)]
Fix typo in doc string of file-exists-p (bug#36408)

* src/fileio.c (Ffile_exists_p): Fix typo in doc string.

5 years ago* test/lisp/url/url-file-tests.el (url-file): Fix for POSIX filenames.
Juanma Barranquero [Fri, 28 Jun 2019 13:22:00 +0000 (15:22 +0200)]
* test/lisp/url/url-file-tests.el (url-file): Fix for POSIX filenames.

5 years agoFix typo in windows.texi
Stefan Kangas [Fri, 28 Jun 2019 01:16:57 +0000 (03:16 +0200)]
Fix typo in windows.texi

* doc/lispref/windows.texi (Window History): Fix typo.  (Bug#36412)

5 years agoClarify & update (elisp) Writing Emacs Primitives
Basil L. Contovounesios [Wed, 26 Jun 2019 21:13:34 +0000 (22:13 +0100)]
Clarify & update (elisp) Writing Emacs Primitives

* doc/lispref/internals.texi (Writing Emacs Primitives): Update some
of the sample code listings, fixing argument lists and parentheses.
Replace ... with @dots{}.  Describe UNEVALLED special forms as
taking a single argument. (bug#36392)

5 years agoClarify a subtle issue in the Internals chapter of lispref
Eli Zaretskii [Wed, 26 Jun 2019 15:02:26 +0000 (18:02 +0300)]
Clarify a subtle issue in the Internals chapter of lispref

* doc/lispref/internals.texi (Writing Emacs Primitives):
Clarify the issue with relocation of buffer or string text as
side effect of Lisp evaluation.  (Bug#36392)

5 years agoFix sgml-mode handling of quotes within parens (Bug#36347)
Noam Postavsky [Mon, 24 Jun 2019 01:27:43 +0000 (21:27 -0400)]
Fix sgml-mode handling of quotes within parens (Bug#36347)

* lisp/textmodes/sgml-mode.el (sgml-syntax-propertize): Use
syntax-ppss-table if set.  This is only needed on the release branch,
on master the caller (syntax-propertize) already does this.
(sgml-mode): Set syntax-ppss-table to sgml-tag-syntax-table.  This
correctly classifies parens as punctuation, so they won't confuse the
parser.
* test/lisp/textmodes/sgml-mode-tests.el (sgml-tests--quotes-syntax):
New test copied from master, with two cases added for this bug.

5 years ago; * lisp/frame.el: Enhance add-variable-watcher commentary.
Noam Postavsky [Tue, 25 Jun 2019 22:57:30 +0000 (18:57 -0400)]
; * lisp/frame.el: Enhance add-variable-watcher commentary.

5 years agoRename 'make-symbolic-link' argument NEWNAME to LINKNAME
Juanma Barranquero [Fri, 21 Jun 2019 19:41:47 +0000 (21:41 +0200)]
Rename 'make-symbolic-link' argument NEWNAME to LINKNAME

* src/fileio.c (Fmake_symbolic_link): Fix docstring.
* doc/lispref/files.texi (Changing Files): Doc fix.

5 years agoCheck that length of data returned by sysctl is non-zero
Robert Pluim [Wed, 19 Jun 2019 06:52:50 +0000 (08:52 +0200)]
Check that length of data returned by sysctl is non-zero

The length of the data returned by sysctl can be zero, which was not
checked for.  This could cause crashes, e.g. when querying
non-existent processes.  (Bug#36279)

* src/sysdep.c (list_system_processes) [DARWIN_OS || __FreeBSD__]:
(system_process_attributes) [__FreeBSD__]:
(system_process_attributes) [DARWIN_OS]:
* src/filelock.c (get_boot_time) [CTL_KERN && KERN_BOOTTIME]: Check
  for zero length data returned by sysctl.

5 years ago* test/lisp/progmodes/python-tests.el (python-virt-bin): Doc fix.
Juanma Barranquero [Mon, 17 Jun 2019 01:12:45 +0000 (03:12 +0200)]
* test/lisp/progmodes/python-tests.el (python-virt-bin): Doc fix.

5 years agoFix Python tests depending on system-type
Juanma Barranquero [Mon, 17 Jun 2019 00:48:21 +0000 (02:48 +0200)]
Fix Python tests depending on system-type

* test/lisp/progmodes/python-tests.el (python-virt-bin): New function.
(python-shell-calculate-exec-path-2)
(python-shell-calculate-exec-path-3)
(python-shell-calculate-exec-path-4)
(python-shell-with-environment-1, python-shell-with-environment-2):
Use it.

5 years agoFix problem with wdired test when symlinks cannot be created.
Juanma Barranquero [Sun, 16 Jun 2019 19:57:44 +0000 (21:57 +0200)]
Fix problem with wdired test when symlinks cannot be created.

* test/lisp/wdired-tests.el (wdired-test-symlink-name):
Skip test if 'make-symbolic-link' fails for whatever reason;
that's not what's being tested.

5 years agoImprove wording of documentation of click events
Eli Zaretskii [Sun, 16 Jun 2019 15:29:21 +0000 (18:29 +0300)]
Improve wording of documentation of click events

* doc/lispref/commands.texi (Click Events, Accessing Mouse):
Improve and clarify wording.  (Bug#36232)

5 years agoBackport: Fix typo in regexp-opt example code
Mattias Engdegård [Sun, 31 Mar 2019 13:53:52 +0000 (15:53 +0200)]
Backport: Fix typo in regexp-opt example code

* doc/lispref/searching.texi (Regexp Functions):
Fix typo in example code (Bug#34596).

5 years agoRemove outdated comment in winner.el (Bug#36185)
Stefan Kangas [Wed, 12 Jun 2019 17:58:28 +0000 (19:58 +0200)]
Remove outdated comment in winner.el (Bug#36185)

* lisp/winner.el: Remove outdated comment.

5 years agoFix accidential change in tramp-tests; do not merge with master
Michael Albinus [Sat, 15 Jun 2019 19:38:11 +0000 (21:38 +0200)]
Fix accidential change in tramp-tests; do not merge with master

* lisp/net/trampver.el: Change version to "2.3.5.26.3".
(customize-package-emacs-version-alist): Add Tramp version
integrated in Emacs 26.3.

* test/lisp/net/tramp-tests.el (tramp-test42-auto-load):
Add skip for w32.

5 years agotramp-test42-auto-load: Add expected-result.
Juanma Barranquero [Sat, 15 Jun 2019 05:23:25 +0000 (07:23 +0200)]
tramp-test42-auto-load: Add expected-result.

* test/lisp/net/tramp-tests.el (tramp-test42-auto-load):
Expect a failed result if remote file access is not enabled,
as it happens while doing the test on Windows.

5 years ago* test/lisp/url/url-file-tests.el (url-file): Use file:///, not file://.
Juanma Barranquero [Sat, 15 Jun 2019 03:29:03 +0000 (05:29 +0200)]
* test/lisp/url/url-file-tests.el (url-file): Use file:///, not file://.

5 years agoFix doc of srecompile-compile-split-code (Bug#36200)
Juanma Barranquero [Fri, 14 Jun 2019 23:37:27 +0000 (01:37 +0200)]
Fix doc of srecompile-compile-split-code (Bug#36200)

* lisp/cedet/srecode/compile.el (srecode-compile-split-code):
Remove leftover text from docstring.

5 years agoMake sure Gnus imap group names are decoded before searching
Eric Abrahamsen [Thu, 13 Jun 2019 22:09:24 +0000 (15:09 -0700)]
Make sure Gnus imap group names are decoded before searching

do not merge (fix unnecessary in Emacs 27)

* lisp/gnus/nnir.el (nnir-run-imap): Ensure that non-ascii group names
  have been fully decoded before passing them to imap search.

5 years agoRemove failing test erroneously added in backport
Eli Zaretskii [Fri, 14 Jun 2019 06:40:40 +0000 (09:40 +0300)]
Remove failing test erroneously added in backport

* test/src/thread-tests.el (threads-test-bug33073): Remove
test which cannot work on the emacs-26 branch.  Do not merge
to master.  Reported by Juanma Barranquero <lekktu@gmail.com>.

5 years ago* lisp/net/sieve-manage.el (sieve-manage-parse-capability): Doc fix.
Juanma Barranquero [Fri, 14 Jun 2019 00:24:52 +0000 (02:24 +0200)]
* lisp/net/sieve-manage.el (sieve-manage-parse-capability): Doc fix.

5 years ago; * lisp/ldefs-boot.el: Update. emacs-26.2.90
Nicolas Petton [Wed, 12 Jun 2019 11:56:27 +0000 (13:56 +0200)]
; * lisp/ldefs-boot.el: Update.

5 years agoBump Emacs version to 26.2.90
Nicolas Petton [Wed, 12 Jun 2019 11:02:08 +0000 (13:02 +0200)]
Bump Emacs version to 26.2.90

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

5 years ago* etc/AUTHORS: Update.
Nicolas Petton [Wed, 12 Jun 2019 11:00:06 +0000 (13:00 +0200)]
* etc/AUTHORS: Update.

5 years ago; ChangeLog.3 update
Nicolas Petton [Wed, 12 Jun 2019 10:58:53 +0000 (12:58 +0200)]
; ChangeLog.3 update

5 years agoFix description of 'display-buffer-in-previous-window' again (Bug#36161)
Martin Rudalics [Wed, 12 Jun 2019 09:02:02 +0000 (11:02 +0200)]
Fix description of 'display-buffer-in-previous-window' again (Bug#36161)

* lisp/window.el (display-buffer-in-previous-window): Make
doc-string more explicit (Bug#36161).
* doc/lispref/windows.texi (Buffer Display Action Functions):
Make description of 'display-buffer-in-previous-window' more
explicit.
(Buffer Display Action Alists): Mention
'display-buffer-in-previous-window' in description of
'reusable-frames' entry.

5 years agoConsistently use @minus{} for negative arguments
Eli Zaretskii [Tue, 11 Jun 2019 16:55:14 +0000 (19:55 +0300)]
Consistently use @minus{} for negative arguments

* doc/emacs/mark.texi (Marking Objects):
* doc/misc/gnus.texi (Selecting a Group):
* doc/emacs/programs.texi (Comment Commands):
* doc/emacs/killing.texi (Deletion):
* doc/emacs/display.texi (Recentering):
* doc/lispref/display.texi (Face Attributes):
* doc/lispref/searching.texi (String Search, Regexp Search):
Make the markup of "-N" use @minus{} uniformly.  (Bug#35885)

5 years agoFix doc of 'display-buffer-in-previous-window' (Bug#36161)
Martin Rudalics [Tue, 11 Jun 2019 07:28:29 +0000 (09:28 +0200)]
Fix doc of 'display-buffer-in-previous-window' (Bug#36161)

* doc/lispref/windows.texi (Buffer Display Action Functions):
* lisp/window.el (display-buffer-in-previous-window): Tell
that 'display-buffer-in-previous-window' prefers
non-selected windows (Bug#36161).

5 years agolisp/*.el: Minor docstring fixes
Juanma Barranquero [Mon, 10 Jun 2019 21:47:01 +0000 (23:47 +0200)]
lisp/*.el: Minor docstring fixes

* lisp/subr.el (definition-prefixes): Reflow docstring.

* lisp/svg.el (svg-create): Doc fix to allow arg higlighting.
(svg-gradient, svg-rectangle): Improve docstring formatting.

5 years agoAvoid assertion violation when comparing with main-thread
Eli Zaretskii [Wed, 17 Oct 2018 15:19:47 +0000 (18:19 +0300)]
Avoid assertion violation when comparing with main-thread

* src/thread.c (unmark_main_thread): New function.
* src/lisp.h (unmark_main_thread): Prototype it.
* src/alloc.c (garbage_collect_1): Call it after sweeping.
(Bug#33073)

* test/src/thread-tests.el (threads-test-bug33073): New test.

5 years agoRevert "Don't mark main_thread (Bug#36155)"
Andreas Schwab [Mon, 10 Jun 2019 10:52:21 +0000 (12:52 +0200)]
Revert "Don't mark main_thread (Bug#36155)"

This reverts commit 1877b7b4d79b3434379fd5a4abd85906c25df00c.

5 years agoDon't mark main_thread (Bug#36155)
Andreas Schwab [Mon, 10 Jun 2019 10:34:38 +0000 (12:34 +0200)]
Don't mark main_thread (Bug#36155)

* thread.c (mark_threads_callback): Don't mark main_thread.

5 years agoMore quotation fixes (Bug#35885)
Eli Zaretskii [Sun, 9 Jun 2019 08:28:36 +0000 (11:28 +0300)]
More quotation fixes (Bug#35885)

* doc/emacs/text.texi (Quotation Marks): Fix a typo.
* doc/emacs/modes.texi (Minor Modes): Fix another case of
showing quotations.

5 years ago; * src/keyboard.c (tool_bar_items): Fix a typo. (Bug#36143)
Stefan Kangas [Sun, 9 Jun 2019 03:02:39 +0000 (05:02 +0200)]
; * src/keyboard.c (tool_bar_items): Fix a typo.  (Bug#36143)

5 years agoMinor copyedits in efaq-w32
Eli Zaretskii [Sat, 8 Jun 2019 15:48:33 +0000 (18:48 +0300)]
Minor copyedits in efaq-w32

* doc/misc/efaq-w32.texi (Grep, Recursive grep): More accurate
description of using 'findstr' as a poor-man's replacement for
'grep'.  Reported by 范凯 <m_pupil@163.com>

5 years agoTiny improvement of documentation of major mode conventions
Eli Zaretskii [Sat, 8 Jun 2019 08:24:47 +0000 (11:24 +0300)]
Tiny improvement of documentation of major mode conventions

* doc/lispref/modes.texi (Major Mode Conventions): More
accurate advice regarding customization of 'C-M-a' by major
modes.

5 years ago* nt/addpm.c (main): Fix buffer overflow
Juanma Barranquero [Sat, 8 Jun 2019 07:02:45 +0000 (09:02 +0200)]
* nt/addpm.c (main): Fix buffer overflow

5 years agoResurrect display-line-number-mode in client frames
Eli Zaretskii [Fri, 7 Jun 2019 14:32:17 +0000 (17:32 +0300)]
Resurrect display-line-number-mode in client frames

* lisp/linum.el (linum-on): Mention bug#35726 in a comment.
* lisp/display-line-numbers.el
(display-line-numbers--turn-on): Don't check for daemon.
(Bug#35726)

5 years ago* src/fns.c (Fmapconcat): Doc fix. (Bug#35710)
Eli Zaretskii [Fri, 7 Jun 2019 12:59:50 +0000 (15:59 +0300)]
* src/fns.c (Fmapconcat): Doc fix.  (Bug#35710)

5 years agoFix typo
Phillip Lord [Fri, 7 Jun 2019 10:37:56 +0000 (11:37 +0100)]
Fix typo

* nt/README.W32:

5 years ago* lisp/term/w32-win.el ([noname]): Bind to 'ignore'. (Bug#36083)
Eli Zaretskii [Thu, 6 Jun 2019 13:28:04 +0000 (16:28 +0300)]
* lisp/term/w32-win.el ([noname]): Bind to 'ignore'.  (Bug#36083)

5 years agoFix styling of Unicode codepoints in manuals
Eli Zaretskii [Wed, 5 Jun 2019 16:52:00 +0000 (19:52 +0300)]
Fix styling of Unicode codepoints in manuals

* doc/lispref/nonascii.texi (Character Properties):
* doc/lispref/display.texi (Glyphless Chars)
(Bidirectional Display):
* doc/emacs/search.texi (Lax Search):
* doc/emacs/text.texi (Quotation Marks):
* doc/emacs/basic.texi (Inserting Text): Canonicalize the
style of "U+NNNN CHARACTER NAME".  (Bug#35885)

5 years agoFix a few uses of quotes in user manual
Eli Zaretskii [Tue, 4 Jun 2019 15:11:37 +0000 (18:11 +0300)]
Fix a few uses of quotes in user manual

* doc/emacs/text.texi (Quotation Marks):
* doc/emacs/display.texi (Text Display):
* doc/emacs/basic.texi (Inserting Text): Fix some more
quotes.  (Bug#35885)

5 years agoMore minor copyedits in the Emacs manual
Eli Zaretskii [Mon, 3 Jun 2019 16:30:47 +0000 (19:30 +0300)]
More minor copyedits in the Emacs manual

* doc/emacs/basic.texi (Arguments):
* doc/emacs/display.texi (Recentering, Text Display):
* doc/emacs/regs.texi (Text Registers, Rectangle Registers):
* doc/emacs/mark.texi (Disabled Transient Mark): Fix
inaccuracies and typos.  (Bug#35885)

5 years agoFix minor issues in the Emacs manual
Eli Zaretskii [Mon, 3 Jun 2019 16:11:42 +0000 (19:11 +0300)]
Fix minor issues in the Emacs manual

* doc/emacs/search.texi (Regexp Replace, Regexps):
* doc/emacs/kmacro.texi (Keyboard Macro Query)
(Save Keyboard Macro): Fix inaccuracies and typos.
(Bug#35885)

5 years agoTry to improve text on atomic windows in Elisp manual
Martin Rudalics [Mon, 3 Jun 2019 08:36:00 +0000 (10:36 +0200)]
Try to improve text on atomic windows in Elisp manual

* doc/lispref/windows.texi (Deleting Windows): Mention how
'delete-window' and 'delete-other-windows' handle atomic
windows.  Minor rewrite.
(Quitting Windows): Mention how 'quit-restore-window' handles
atomic windows and that it tries to avoid raising an error.
(Atomic Windows): Tell how to dissolve atomic windows.

5 years agoDon't recommend insert-before-markers in process filters
Noam Postavsky [Sat, 1 Jun 2019 16:40:11 +0000 (12:40 -0400)]
Don't recommend insert-before-markers in process filters

See <https://lists.gnu.org/r/emacs-devel/2019-05/msg00062.html> and
Bug#35334.
* doc/lispref/processes.texi (Filter Functions): Go back to using
plain insert in the example filter.  Add note about updating window
point.

5 years agoDisable byte-compile-cond-use-jump-table (Bug#35770)
Noam Postavsky [Sat, 1 Jun 2019 13:53:35 +0000 (09:53 -0400)]
Disable byte-compile-cond-use-jump-table (Bug#35770)

* lisp/emacs-lisp/bytecomp.el (byte-compile-cond-use-jump-table): Set
to nil by default.

Don't merge to master, the bug is already fixed there.

5 years agoAllow macros autoloaded as functions during bytecomp (Bug#36022)
Noam Postavsky [Fri, 31 May 2019 12:24:56 +0000 (08:24 -0400)]
Allow macros autoloaded as functions during bytecomp (Bug#36022)

* lisp/emacs-lisp/bytecomp.el (byte-compile-callargs-warn): Don't pass
symbols which don't have a known definition to
byte-compile--function-signature, it fails to compile code which
previously compiled successfully (for example, gnus.el until
2019-06-01 "* lisp/gnus/gnus.el: Mark autoloaded macros as such" which
autoloads some macros as if they were functions).

5 years ago* lisp/gnus/gnus.el: Mark autoloaded macros as such.
Glenn Morris [Sat, 1 Jun 2019 18:33:25 +0000 (11:33 -0700)]
* lisp/gnus/gnus.el: Mark autoloaded macros as such.

This avoids a build failure.

5 years agoSpeed up redisplay of HELLO
Eli Zaretskii [Sat, 1 Jun 2019 15:52:11 +0000 (18:52 +0300)]
Speed up redisplay of HELLO

* etc/HELLO: Set 'inhibit-compacting-font-caches' non-nil
locally.  (Bug#36032)

* lisp/files.el: Add 'inhibit-compacting-font-caches' to the
list of built-in variables for which we set up
'safe-local-variable' properties.

5 years agoImprove documentation of 'safe-local-variable' property
Eli Zaretskii [Sat, 1 Jun 2019 07:28:30 +0000 (10:28 +0300)]
Improve documentation of 'safe-local-variable' property

* doc/lispref/variables.texi (File Local Variables): Document
how to define 'safe-local-variable' properties for built-in
variables.

5 years ago* lisp/emacs-lisp/package.el: Obey buffer-file-coding-system (bug#35739)
Stefan Monnier [Fri, 31 May 2019 04:54:05 +0000 (00:54 -0400)]
* lisp/emacs-lisp/package.el: Obey buffer-file-coding-system (bug#35739)

`url-insert-file-contents` saves in buffer-file-coding-system
the coding-system used to decode the contents.  Preserve this
as the contents is moved from buffer to string to buffer, and use
it when saving the contents to file, so as to try and better preserve
the original byte sequence.

(package--buffer-string, package--cs): New functions.
(package--check-signature): Encode `string` if a coding-system
was specified in buffer-file-coding-system.
(package--download-one-archive, package-install-from-archive):
Obey and preserve the buffer-file-coding-system if specified.

Do not merge.

5 years agoWarn about wrong number of args for subrs (Bug#35767)
Noam Postavsky [Tue, 28 May 2019 00:36:41 +0000 (20:36 -0400)]
Warn about wrong number of args for subrs (Bug#35767)

* lisp/emacs-lisp/bytecomp.el (byte-compile-callargs-warn): Don't
assume byte-compile-fdefinition will return non-nil.
* test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-warn-wrong-args)
(bytecomp-warn-wrong-args-subr): New tests.

5 years agoUse plain symbols for eieio type descriptors (Bug#29220)
Noam Postavsky [Mon, 27 May 2019 23:05:56 +0000 (19:05 -0400)]
Use plain symbols for eieio type descriptors (Bug#29220)

Since Emacs 26, eieio objects use a class record (with circular
references) as the type descriptor of the object record.  This causes
problems when reading back an object from a string, because the class
record is not `eq' to the canonical one (which means that read objects
don't satisfy the foo-p predicate).
* lisp/emacs-lisp/eieio.el (make-instance): As a (partial) fix, set
the record's type descriptor to a plain symbol for the type descriptor
when eieio-backward-compatibility is non-nil (the default).
* lisp/emacs-lisp/eieio-core.el (eieio--object-class): Call
eieio--class-object on the type tag when eieio-backward-compatibility
is non-nil.
(eieio-object-p): Use eieio--object-class instead of
eieio--object-class-tag.
* test/lisp/emacs-lisp/eieio-tests/eieio-test-persist.el
(eieio-test-persist-hash-and-vector)
(eieio-test-persist-interior-lists): Make into functions.
(eieio-persist-hash-and-vector-backward-compatibility)
(eieio-persist-hash-and-vector-no-backward-compatibility)
(eieio-test-persist-interior-lists-backward-compatibility)
(eieio-test-persist-interior-lists-no-backward-compatibility): New
tests which call them, eieio-backward-compatibility let-bound.

5 years agoPacify GCC 9 -Wredundant-decls
Paul Eggert [Thu, 30 May 2019 22:06:39 +0000 (15:06 -0700)]
Pacify GCC 9 -Wredundant-decls

* src/gmalloc.c (_fraghead) [!HYBRID_MALLOC]:
Make it static in this case, too.  This avoids having both
‘extern struct list _fraghead[];’ and
‘static struct list _fraghead[BLOCKLOG];’, which
GCC 9 complains about.

5 years agoPacify librsvg 2.45.1 and later
Paul Eggert [Thu, 30 May 2019 22:06:39 +0000 (15:06 -0700)]
Pacify librsvg 2.45.1 and later

* src/image.c (svg_load_image): Pacify librsvg 2.45.1 and later,
and add a FIXME comment about the deprecated librsvg functions.
Backport from master.

5 years agoSimplify xd_signature to pacify GCC 9
Paul Eggert [Thu, 30 May 2019 22:06:39 +0000 (15:06 -0700)]
Simplify xd_signature to pacify GCC 9

* src/dbusbind.c (xd_signature): Use simpler way to set up
the subsignature.  This also pacifies GCC 9 on Fedora 30 x86-64.
Backport from master.

5 years agoPacify GCC when compiling unexelf.c on Fedora 30
Paul Eggert [Thu, 30 May 2019 22:06:39 +0000 (15:06 -0700)]
Pacify GCC when compiling unexelf.c on Fedora 30

* src/unexelf.c (unexec): Pacify GCC 9.

5 years agoSuppress GCC 9 “no longer supported” messages
Paul Eggert [Thu, 30 May 2019 22:06:39 +0000 (15:06 -0700)]
Suppress GCC 9 “no longer supported” messages

* m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wchkp.
This suppresses a boatload of warnings of the form
“gcc: warning: switch ‘-Wchkp’ is no longer supported”.
when using GCC 9.  Do not merge to master.

5 years agoFix docstring of bookmark-get-bookmark
Stefan Kangas [Sun, 26 May 2019 10:04:56 +0000 (12:04 +0200)]
Fix docstring of bookmark-get-bookmark

* lisp/bookmark.el (bookmark-get-bookmark): Document optional
argument NOERROR. (bug#20148)

5 years agoAvoid infloop in read-multiple-choice (Bug#32257)
Noam Postavsky [Wed, 22 May 2019 00:33:09 +0000 (20:33 -0400)]
Avoid infloop in read-multiple-choice (Bug#32257)

* lisp/emacs-lisp/rmc.el (read-multiple-choice): When `read-char'
signals an error "Non-character input-event", call `read-event' to
take the non-character event out of the queue.  Don't merge to master,
we just use `read-event' directly there, rather than this solution
which relies a particular error message.

5 years ago; * doc/lispref/nonascii.texi (Explicit Encoding): Fix typo.
Noam Postavsky [Sun, 26 May 2019 12:46:15 +0000 (08:46 -0400)]
; * doc/lispref/nonascii.texi (Explicit Encoding): Fix typo.

5 years agoImprove documentation of decoding into a unibyte buffer
Eli Zaretskii [Sat, 25 May 2019 19:10:00 +0000 (22:10 +0300)]
Improve documentation of decoding into a unibyte buffer

* doc/lispref/nonascii.texi (Explicit Encoding): Document what
happens when DESTINATION of decoding is a unibyte buffer.

* src/coding.c (Fdecode_coding_region)
(Fdecode_coding_string): Document what happens if DESTINATION
is a unibyte buffer.

5 years agoRemove redundants "See" before @xref or @pxref (Bug#35793)
Mauro Aranda [Sat, 18 May 2019 20:35:04 +0000 (17:35 -0300)]
Remove redundants "See" before @xref or @pxref (Bug#35793)

* doc/lispref/control.texi (Control Structures):
* doc/lispref/modes.texi (Search-based Fontification):
* doc/misc/cc-mode.texi (Filling and Line Breaking Commands)
(Auto-newline Insertion, Other Special Indentations):
* doc/misc/dbus.texi (Errors and Events):
* doc/misc/dired-x.texi (Find File At Point):
* doc/misc/eudc.texi (Display of Query Results, Inline Query Expansion):
* doc/misc/gnus-faq.texi (FAQ 3-11):
* doc/misc/gnus.texi (Group Parameters, Posting Styles)
(Spam Package Introduction):
* doc/misc/org.texi (LaTeX fragments, Previewing LaTeX fragments):
* doc/misc/reftex.texi (Commands):
Remove redundant "See" before cross references.
* doc/lispref/functions.texi (Function Safety): Redundant "see" is in
ignored text, but remove it anyway.
* doc/lispref/positions.texi (Skipping Characters): Remove redundant
"See" before cross references.  Change @xref to @pxref, which is
more suitable when at the end of a sentence.

Most of the redundants "See" found by Noam Postavsky.

5 years ago; * src/coding.c: Improve commentary. (Bug#34765)
Eli Zaretskii [Thu, 23 May 2019 14:36:06 +0000 (17:36 +0300)]
; * src/coding.c: Improve commentary.  (Bug#34765)

5 years agoFix customization type of recentf-max-saved-items
Dario Gjorgjevski [Fri, 17 May 2019 09:46:54 +0000 (11:46 +0200)]
Fix customization type of recentf-max-saved-items

Change the customization type of recentf-max-saved-items to include
nil, as it is an allowed value (Bug#35771).
* lisp/recentf.el (recentf-max-saved-items): Change the customization
type in the defcustom.

5 years agoFix a typo in ELisp manual
Tom Levy [Tue, 21 May 2019 02:25:31 +0000 (14:25 +1200)]
Fix a typo in ELisp manual

* doc/lispref/sequences.texi (Sequence Functions): Fix a typo.
(Bug#35817)

Copyright-paperwork-exempt: yes

5 years agoAdd option to disable help completion autoloading (Bug#28607)
Noam Postavsky [Thu, 16 May 2019 00:29:38 +0000 (20:29 -0400)]
Add option to disable help completion autoloading (Bug#28607)

* lisp/help-fns.el (help-enable-completion-auto-load): New option.
(help--symbol-completion-table): Consult it.
* doc/emacs/building.texi (Lisp Libraries): Document it.
* etc/NEWS: Announce it.
* doc/lispref/loading.texi (Autoload by Prefix): New section.
(Autoload): Reference it.

5 years agoDon't segfault on force-window-update of deleted window
Noam Postavsky [Sun, 19 May 2019 17:05:55 +0000 (13:05 -0400)]
Don't segfault on force-window-update of deleted window

* src/window.c (Fforce_window_update): Do nothing for deleted
windows (Bug#35784).

5 years agoFix typo in ELisp manual
Mauro Aranda [Sun, 19 May 2019 14:36:26 +0000 (11:36 -0300)]
Fix typo in ELisp manual

* doc/lispref/variables.texi (Directory Local Variables): Fix typo in
dir-locals-set-class-variables description.  (Bug#35799)

5 years agoRemove repeated function call in picture.el
Mauro Aranda [Fri, 17 May 2019 13:00:01 +0000 (10:00 -0300)]
Remove repeated function call in picture.el

* lisp/textmodes/picture.el (picture-mode-map):  Remove repeated
define-key call.  (Bug#35772)

5 years ago; Fix mm-destroy-parts docstring typo
Basil L. Contovounesios [Sun, 19 May 2019 23:37:13 +0000 (00:37 +0100)]
; Fix mm-destroy-parts docstring typo

* lisp/gnus/mm-decode.el (mm-destroy-parts): Fix typo in docstring
copy-pasted from mm-remove-parts.

5 years agoFix Hideshow key binding typo in Emacs manual
Basil L. Contovounesios [Sun, 19 May 2019 12:52:26 +0000 (13:52 +0100)]
Fix Hideshow key binding typo in Emacs manual

* doc/emacs/programs.texi (Hideshow): Add missing function and key
index entries.  Fix hs-toggle-hiding binding typo. (bug#35798)

5 years agoBackport: Fix name of gnus-summary-sort-by-mark(s)
Eric Abrahamsen [Tue, 14 Nov 2017 05:40:17 +0000 (21:40 -0800)]
Backport: Fix name of gnus-summary-sort-by-mark(s)

* lisp/gnus/gnus-sum.el (gnus-summary-sort-by-marks): Needs the
  "s", according to docs and keymap both. (bug#35765)

(cherry picked from commit 13248f7444630508cfc3b78a07e8d96613af11c8)