]> git.eshelyaron.com Git - emacs.git/log
emacs.git
4 years agoMention floating rounding issues
Paul Eggert [Thu, 9 Jul 2020 15:40:17 +0000 (08:40 -0700)]
Mention floating rounding issues

* doc/lispref/numbers.texi (Float Basics): Mention floating-point
rounding issues uncovered by the discussion in Bug#42417.

4 years agoRepair global-auto-revert-ignore-modes (bug#42271)
Mattias Engdegård [Thu, 9 Jul 2020 07:28:12 +0000 (09:28 +0200)]
Repair global-auto-revert-ignore-modes (bug#42271)

Reported by Gustavo Tavares Cabral.

* lisp/autorevert.el (auto-revert--global-add-current-buffer): Fix typo.

4 years ago; * src/xdisp.c (decode_mode_spec): Fix commentary.
Eli Zaretskii [Wed, 8 Jul 2020 16:45:30 +0000 (19:45 +0300)]
; * src/xdisp.c (decode_mode_spec): Fix commentary.

4 years agoOne more improvement of left/right-fringe display spec docs
Eli Zaretskii [Wed, 8 Jul 2020 14:39:13 +0000 (17:39 +0300)]
One more improvement of left/right-fringe display spec docs

* doc/lispref/display.texi (Fringe Bitmaps): Yet another
clarification of how to use FACE in left/right-fringe display
spec.

4 years agoAnother clarification of left/right-fringe display spec
Eli Zaretskii [Tue, 7 Jul 2020 14:55:24 +0000 (17:55 +0300)]
Another clarification of left/right-fringe display spec

* doc/lispref/display.texi (Fringe Bitmaps): More accurate
description of what FACE means in the left/right-fringe display
spec.

4 years agoAvoid infloop in 'format-mode-line'
Eli Zaretskii [Tue, 7 Jul 2020 14:08:19 +0000 (17:08 +0300)]
Avoid infloop in 'format-mode-line'

* src/xdisp.c (decode_mode_spec): Don't use W->start if it is
outside of the buffer's accessible region.  (Bug#42220)

4 years agoClarify the documentation of 'left/right-fringe' display spec
Eli Zaretskii [Sun, 5 Jul 2020 15:30:21 +0000 (18:30 +0300)]
Clarify the documentation of 'left/right-fringe' display spec

* doc/lispref/display.texi (Other Display Specs, Fringe Bitmaps):
Clarify how the optional FACE parameter of the left-fringe and
right-fringe display spec is used.  Reported by Gregory Heytings
<ghe@sdf.org>.

4 years agoMinor improvement in ELisp manual
Eli Zaretskii [Sat, 4 Jul 2020 07:19:56 +0000 (10:19 +0300)]
Minor improvement in ELisp manual

* doc/lispref/frames.texi (Position Parameters): Clarify the
description of the 'above' frame parameter.  (Bug#42154)

4 years ago* doc/misc/tramp.texi (Customizing Methods): Fix typo.
Michael Albinus [Thu, 2 Jul 2020 11:06:25 +0000 (13:06 +0200)]
* doc/misc/tramp.texi (Customizing Methods): Fix typo.

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

4 years agoFix undefined behavior in json.c (Bug#42113)
Philipp Stephani [Mon, 29 Jun 2020 10:32:56 +0000 (12:32 +0200)]
Fix undefined behavior in json.c (Bug#42113)

* src/json.c (lisp_to_json_toplevel_1, Fjson_parse_string): Check
whether input strings are actually strings.

* test/src/json-tests.el (json-parse-string/wrong-type)
(json-serialize/wrong-hash-key-type): New regression tests.

4 years agoFix ACTION argument of 'display-buffer' call in gud.el
Richard Kim [Tue, 16 Jun 2020 06:20:57 +0000 (23:20 -0700)]
Fix ACTION argument of 'display-buffer' call in gud.el

* lisp/progmodes/gud.el (gud-common-init): The ACTION argument of
'display-buffer' should be a list of list of functions.  (Bug#41888)

4 years ago* src/keyboard.c (Fclear_this_command_keys): Doc fix.
Eli Zaretskii [Sat, 27 Jun 2020 08:35:34 +0000 (11:35 +0300)]
* src/keyboard.c (Fclear_this_command_keys): Doc fix.

4 years agoImprove do string of 'man'
Eli Zaretskii [Sat, 27 Jun 2020 07:48:02 +0000 (10:48 +0300)]
Improve do string of 'man'

* lisp/man.el (man): Mention the need to use C-q for quoting the
SPC character in the man-page input.  (Bug#41859)

4 years ago; * src/xdisp.c (pos_visible_p): Yet another minor fix for bug#42039.
Eli Zaretskii [Fri, 26 Jun 2020 19:33:44 +0000 (22:33 +0300)]
; * src/xdisp.c (pos_visible_p): Yet another minor fix for bug#42039.

4 years ago; * src/xdisp.c (pos_visible_p): Fix last change. (Bug#42039)
Eli Zaretskii [Fri, 26 Jun 2020 13:34:50 +0000 (16:34 +0300)]
; * src/xdisp.c (pos_visible_p): Fix last change.  (Bug#42039)

4 years agoFix posn-at-point at beginning of a display string
Eli Zaretskii [Fri, 26 Jun 2020 12:01:44 +0000 (15:01 +0300)]
Fix posn-at-point at beginning of a display string

* src/xdisp.c (pos_visible_p): Account for the line-number width
when the display string at CHARPOS ends in a newline.  (Bug#42039)

4 years agoImprove documentation of Info node movement commands
Eli Zaretskii [Fri, 26 Jun 2020 07:41:09 +0000 (10:41 +0300)]
Improve documentation of Info node movement commands

* lisp/info.el (Info-next, Info-prev, Info-forward-node)
(Info-backward-node): More detailed descriptions of what each
commands does with respect to child and parent nodes.  (Bug#42050)

4 years agoAdd Jansson dependency to Windows Build
Phillip Lord [Mon, 22 Jun 2020 17:14:48 +0000 (18:14 +0100)]
Add Jansson dependency to Windows Build

* admin/nt/dist-build/build-dep-zips.py: Add dependency

4 years agoUnbreak 'reverse-region'
Richard Copley [Thu, 18 Jun 2020 17:59:21 +0000 (18:59 +0100)]
Unbreak 'reverse-region'

* lisp/sort.el (reverse-region): Unbreak the function.  It was
broken by a fix for bug#39376.

Copyright-paperwork-exempt: yes

4 years agoFix typos and markup in fill column indicator docs
Basil L. Contovounesios [Mon, 22 Jun 2020 13:43:53 +0000 (14:43 +0100)]
Fix typos and markup in fill column indicator docs

* doc/emacs/display.texi (Displaying Boundaries): Fix typos and
Texinfo markup.

4 years ago; * CONTRIBUTE: Clarify the preferences for patch formatting.
Eli Zaretskii [Sat, 20 Jun 2020 08:42:41 +0000 (11:42 +0300)]
; * CONTRIBUTE: Clarify the preferences for patch formatting.

4 years agoAvoid crashes in 'defconst'
Stephen Berman [Thu, 11 Jun 2020 21:10:07 +0000 (23:10 +0200)]
Avoid crashes in 'defconst'

* src/eval.c (Fdefconst): Verify that SYMBOL is a known symbol.
(Bug#41817)

4 years agoFix text about Lisp archives in the Emacs FQ
Richard Stallman [Thu, 11 Jun 2020 03:41:39 +0000 (23:41 -0400)]
Fix text about Lisp archives in the Emacs FQ

* doc/misc/efaq.texi (Packages that do not come with Emacs): Warn
about using Lisp archives other than GNU ELPA.

4 years agoDon't use 'cl' functions in ELisp manual's examples
Eli Zaretskii [Sat, 20 Jun 2020 07:29:37 +0000 (10:29 +0300)]
Don't use 'cl' functions in ELisp manual's examples

* doc/lispref/control.texi (pcase Macro): Use 'cl-evenp' instead
of 'evenp'.  (Bug#41947)

4 years agoFix some Texinfo markup
Basil L. Contovounesios [Wed, 17 Jun 2020 11:53:40 +0000 (12:53 +0100)]
Fix some Texinfo markup

* doc/misc/gnus-faq.texi (FAQ 3-11):
* doc/emacs/frames.texi (Tab Bars): Consistently use @var with
lower-case metasyntactic variables and @minus instead of a dash.
(Text-Only Mouse):
* doc/emacs/files.texi (Auto Revert):
* doc/emacs/misc.texi (emacsclient Options)
(Embedded WebKit Widgets):
* doc/lispref/control.texi (pcase Macro):
* doc/lispref/debugging.texi (Backtraces):
* doc/lispref/files.texi (Truenames):
* doc/lispref/frames.texi (Management Parameters):
* doc/lispref/os.texi (Time Calculations):
* doc/lispref/text.texi (Parsing JSON):
* doc/misc/efaq-w32.texi (Other versions of Emacs, Debugging)
(Swap Caps NT, Printing, Bash, Developing with Emacs):
* doc/misc/efaq.texi (New in Emacs 25):
* doc/misc/emacs-gnutls.texi (Help For Users):
* doc/misc/message.texi (Using S/MIME, Passphrase caching):
* test/manual/etags/tex-src/gzip.texi (Overview): Use @. when a
sentence in the middle of a paragraph ends with an upper-case letter
as per "(texinfo) Ending a Sentence".

4 years agoFix recentf typo in Emacs manual
Basil L. Contovounesios [Wed, 17 Jun 2020 00:10:20 +0000 (01:10 +0100)]
Fix recentf typo in Emacs manual

* doc/emacs/files.texi (File Conveniences): Fix misspelling of
recentf-list.

4 years agoRename default function to next-error-buffer-unnavigated-current (bug#40919)
Juri Linkov [Tue, 16 Jun 2020 23:14:12 +0000 (02:14 +0300)]
Rename default function to next-error-buffer-unnavigated-current (bug#40919)

* lisp/simple.el (next-error-find-buffer-function): Rename default function
from next-error-no-navigation-try-current
to next-error-buffer-unnavigated-current.

4 years ago* lisp/image-mode.el (image-toggle-display-image): Fix fit of rotated images.
Juri Linkov [Tue, 16 Jun 2020 22:58:32 +0000 (01:58 +0300)]
* lisp/image-mode.el (image-toggle-display-image): Fix fit of rotated images.

When fitting rotated image to width and height, swap width and height
when changing orientation between portrait and landscape (bug#41886).

4 years ago* doc/misc/tramp.texi (Predefined connection information): Add "tmpdir".
Michael Albinus [Tue, 16 Jun 2020 10:34:00 +0000 (12:34 +0200)]
* doc/misc/tramp.texi (Predefined connection information): Add "tmpdir".

4 years agoDelete, don't kill, dir dir fragments in icomplete-fido-backward-updir
João Távora [Sat, 13 Jun 2020 17:45:40 +0000 (18:45 +0100)]
Delete, don't kill, dir dir fragments in icomplete-fido-backward-updir

Reported by: Andrew Schwartzmeyer <andrew@schwartzmeyer.com>

* lisp/icomplete.el (icomplete-fido-backward-updir): Don't save
dir fragments to kill ring.

4 years agoRevert markup change in with-coding-priority docs
Basil L. Contovounesios [Sat, 13 Jun 2020 16:53:59 +0000 (17:53 +0100)]
Revert markup change in with-coding-priority docs

This partially reverts commit fc759eb9b3
"Fix with-coding-priority markup in Elisp manual"
of 2019-10-13T15:36:02Z!contovob@tcd.ie.

For discussion, see the following thread:
https://lists.gnu.org/archive/html/emacs-devel/2019-10/msg00550.html
https://lists.gnu.org/archive/html/emacs-devel/2020-06/msg00473.html

* doc/lispref/nonascii.texi (Specifying Coding Systems): Use more
specific cross-reference to progn even if info.el displays it
suboptimally.

4 years ago* lisp/emulation/cua-rect.el (cua--rectangle-region-insert): New function.
Juri Linkov [Tue, 9 Jun 2020 23:03:06 +0000 (02:03 +0300)]
* lisp/emulation/cua-rect.el (cua--rectangle-region-insert): New function.

Add cua--insert-rectangle around region-insert-function (bug#41440).

4 years ago* lisp/simple.el (shell-command-on-region): Fix docstring.
Juri Linkov [Mon, 8 Jun 2020 23:28:53 +0000 (02:28 +0300)]
* lisp/simple.el (shell-command-on-region): Fix docstring.

* lisp/simple.el (shell-command-on-region): Mention REGION-NONCONTIGUOUS-P
in docstring (bug#41440)

* etc/NEWS: Better example for 'windmove-display-default-keybindings'.

4 years agoClean up D-Bus documentation (bug#41744)
Basil L. Contovounesios [Fri, 5 Jun 2020 23:58:37 +0000 (00:58 +0100)]
Clean up D-Bus documentation (bug#41744)

* doc/lispref/errors.texi (Standard Errors): The error symbol
dbus-error is defined even when Emacs is built without D-Bus.

* doc/misc/dbus.texi (Bus Names, Introspection)
(Nodes and Interfaces, Methods and Signal)
(Properties and Annotations, Arguments and Signatures)
(Synchronous Methods, Receiving Method Calls, Signals)
(Alternative Buses, Errors and Events): Clarify wording.  Fix
indentation of and simplify examples where possible.  Improve
Texinfo markup and cross-referencing where possible.
(Type Conversion): Ditto.  Remove mentions of Emacs' fixnum range
now that we have bignums.

* lisp/net/dbus.el (dbus-return-values-table)
(dbus-call-method-asynchronously, dbus-send-signal)
(dbus-register-signal, dbus-register-method)
(dbus-string-to-byte-array, dbus-byte-array-to-string)
(dbus-escape-as-identifier, dbus-check-event, dbus-event-bus-name)
(dbus-event-message-type, dbus-event-serial-number)
(dbus-event-service-name, dbus-event-path-name)
(dbus-event-interface-name, dbus-event-member-name)
(dbus-list-activatable-names, dbus-list-queued-owners, dbus-ping)
(dbus-introspect-get-interface-names, dbus-introspect-get-interface)
(dbus-introspect-get-method, dbus-introspect-get-signal)
(dbus-introspect-get-property, dbus-introspect-get-annotation-names)
(dbus-introspect-get-annotation, dbus-introspect-get-argument-names)
(dbus-introspect-get-argument, dbus-introspect-get-signature)
(dbus-set-property, dbus-register-property)
(dbus-get-all-managed-objects, dbus-init-bus): Clarify docstring and
improve formatting where possible.
(dbus-call-method): Ditto.  Remove mentions of Emacs' fixnum range
now that we have bignums.

4 years ago* lisp/image-mode.el (image-transform-original): New command (bug#41222).
Juri Linkov [Mon, 8 Jun 2020 00:30:27 +0000 (03:30 +0300)]
* lisp/image-mode.el (image-transform-original): New command (bug#41222).

(image-mode-map): Bind it to "so" and add to menu.

4 years agoMove tab-bar and tab-line faces to faces.el (part of bug#41200)
Juri Linkov [Mon, 8 Jun 2020 00:21:42 +0000 (03:21 +0300)]
Move tab-bar and tab-line faces to faces.el (part of bug#41200)

These are basic faces, so they need to be defined in
faces.el, otherwise (get 'tab-line 'face) returns 0.

* lisp/faces.el (tab-bar, tab-line): Move faces here
from tab-bar.el and tab-line.el.

* lisp/tab-bar.el (tab-bar): Move face to faces.el.
(tab-bar-faces): Add '((tab-bar custom-face))
to the second arg MEMBERS of 'defgroup'.

* lisp/tab-line.el (tab-line): Move face to faces.el.
(tab-line-faces): Add '((tab-line custom-face))
to the second arg MEMBERS of 'defgroup'.

4 years agoFix typo in "(elisp) Type Keywords"
Basil L. Contovounesios [Sun, 7 Jun 2020 15:46:12 +0000 (16:46 +0100)]
Fix typo in "(elisp) Type Keywords"

* doc/lispref/customize.texi (Type Keywords): Fix typo of 'choice'
composite type.  (Bug#41749)

4 years agoGnus nnir-summary-line-format has no effect
Tassilo Horn [Sun, 7 Jun 2020 08:01:41 +0000 (10:01 +0200)]
Gnus nnir-summary-line-format has no effect

* lisp/gnus/nnir.el (nnir-mode): Update summary format specs if
nnir-summary-line-format is set and different from
gnus-summary-line-format.
(nnir-open-server): Run nnir-mode in gnus-summary-generate-hook
instead of gnus-summary-prepared-hook.

4 years agoImprove documentation of 'window-text-pixel-size'
Eli Zaretskii [Sat, 6 Jun 2020 17:10:37 +0000 (20:10 +0300)]
Improve documentation of 'window-text-pixel-size'

* doc/lispref/display.texi (Size of Displayed Text): Clarify the
description of 'window-text-pixel-size'.

4 years ago* src/xdisp.c (Fwindow_text_pixel_size): Doc fix. (Bug#41737)
Eli Zaretskii [Sat, 6 Jun 2020 16:53:08 +0000 (19:53 +0300)]
* src/xdisp.c (Fwindow_text_pixel_size): Doc fix.  (Bug#41737)

4 years agoMinor improvements to EDE and EIEIO manuals
Basil L. Contovounesios [Wed, 3 Jun 2020 16:31:44 +0000 (17:31 +0100)]
Minor improvements to EDE and EIEIO manuals

For discussion, see the following threads:
https://lists.gnu.org/archive/html/emacs-devel/2020-05/msg00630.html
https://lists.gnu.org/archive/html/emacs-devel/2020-06/msg00099.html

* doc/misc/ede.texi (ede-generic-project): Clean up example.
* doc/misc/eieio.texi (Accessing Slots): Document slot-value as a
generalized variable and set-slot-value as obsolete.
(Predicates): Fix typo.
(Introspection): Document eieio-class-slots in place of the obsolete
object-slots.

4 years agoHave Fido mode also imitate Ido mode in ignore-case options
João Távora [Fri, 5 Jun 2020 22:36:55 +0000 (23:36 +0100)]
Have Fido mode also imitate Ido mode in ignore-case options

Suggested by Sean Whitton <spwhitton@spwhitton.name>.

* lisp/icomplete.el (icomplete--fido-mode-setup): Set ignore-case
options.

4 years agoUpdate package-menu-quick-help
Basil L. Contovounesios [Fri, 5 Jun 2020 13:02:41 +0000 (14:02 +0100)]
Update package-menu-quick-help

* lisp/emacs-lisp/package.el (package--quick-help-keys): Filtering
is now bound to the prefix '/', not the key 'f' (bug#41721).
Advertise only the standard 'g' binding now that both it and 'r' are
bound to revert-buffer (bug#35504).
(package--prettify-quick-help-key): Avoid modifying string literals.
(package-menu-filter): Reintroduce as obsolete alias of
package-menu-filter-by-keyword for backward
compatibility (bug#36981).

4 years agoImprove documentation of 'sort-subr'
Eli Zaretskii [Fri, 5 Jun 2020 08:30:03 +0000 (11:30 +0300)]
Improve documentation of 'sort-subr'

* doc/lispref/text.texi (Sorting): Clarify the meaning and use of
PREDICATE argument to 'sort-subr'.  (Bug#41706)

4 years agoUpdate Ukrainian transliteration
Andrii Kolomoiets [Wed, 3 Jun 2020 11:14:57 +0000 (14:14 +0300)]
Update Ukrainian transliteration

* lisp/language/cyril-util.el (standard-display-cyrillic-translit):
Add missing letter "ґ"; tweak letter "г".  (Bug#41683)

4 years agoFix Arabic shaping when eww/shr fill the text to be rendered
Eli Zaretskii [Fri, 5 Jun 2020 07:56:01 +0000 (10:56 +0300)]
Fix Arabic shaping when eww/shr fill the text to be rendered

* src/hbfont.c (hbfont_shape): Don't use DIRECTION if the current
buffer has bidi reordering disabled.  (Bug#41005)

4 years agoSilence some byte-compiler warnings in tests
Basil L. Contovounesios [Tue, 2 Jun 2020 22:14:23 +0000 (23:14 +0100)]
Silence some byte-compiler warnings in tests

* test/lisp/emacs-lisp/cl-generic-tests.el:
* test/lisp/progmodes/elisp-mode-tests.el: Declare functions
referred to within macroexpansions.
(xref-elisp-overloadable-no-default)
(xref-elisp-overloadable-co-located-default)
(xref-elisp-overloadable-separate-default): Prefix unused arguments
with underscore.

* test/lisp/international/ccl-tests.el:
* test/lisp/wdired-tests.el:
* test/lisp/emacs-lisp/package-tests.el: Declare functions used.
(package-test-update-archives, package-test-signed): Use
revert-buffer in place of its obsolete alias package-menu-refresh.

* test/lisp/eshell/eshell-tests.el:
* test/lisp/mail/footnote-tests.el:
* test/src/buffer-tests.el: Require dependencies used.

* test/lisp/image/exif-tests.el: Remove unneeded (require 'seq).
(test-exit-direct-ascii-value): Actually perform the test.
* test/lisp/progmodes/sql-tests.el (sql-test-add-existing-product):
Fix typo.

* test/lisp/simple-tests.el (with-shell-command-dont-erase-buffer):
* test/src/data-tests.el (test-bool-vector-bv-from-hex-string)
(test-bool-vector-apply-mock-op): Remove unused local variables.

4 years ago* test/lisp/battery-tests.el: New file.
Basil L. Contovounesios [Tue, 2 Jun 2020 20:05:28 +0000 (21:05 +0100)]
* test/lisp/battery-tests.el: New file.

4 years agoImprove format-spec documentation (bug#41571)
Basil L. Contovounesios [Wed, 27 May 2020 23:53:42 +0000 (00:53 +0100)]
Improve format-spec documentation (bug#41571)

* doc/lispref/text.texi (Interpolated Strings): Move from here...
* doc/lispref/strings.texi (Custom Format Strings): ...to here,
renaming the node and clarifying the documentation.
(Formatting Strings): End node with sentence referring to the next
one.
* lisp/format-spec.el (format-spec): Clarify docstring.

4 years agoDon't call 'mbrtowc' on WINDOWSNT
Eli Zaretskii [Mon, 1 Jun 2020 15:57:39 +0000 (18:57 +0300)]
Don't call 'mbrtowc' on WINDOWSNT

* src/emacs.c (using_utf8): Don't call 'mbrtowc' on WINDOWSNT
systems, as it's not available on Windows 9X.

4 years ago; Auto-commit of loaddefs files.
Glenn Morris [Mon, 1 Jun 2020 13:11:55 +0000 (06:11 -0700)]
; Auto-commit of loaddefs files.

4 years ago* doc/emacs/buffers.texi (Icomplete): Mention icomplete-minibuffer-setup-hook.
João Távora [Mon, 1 Jun 2020 00:29:50 +0000 (01:29 +0100)]
* doc/emacs/buffers.texi (Icomplete): Mention icomplete-minibuffer-setup-hook.

4 years agoBe more aggressive in marking objects during GC
Paul Eggert [Sun, 31 May 2020 22:29:23 +0000 (15:29 -0700)]
Be more aggressive in marking objects during GC

Simplified version of a patch from Pip Cet (Bug#41321#299).
* src/alloc.c (maybe_lisp_pointer): Remove.  All uses removed.
(mark_memory): Also look at the pointer offset by ‘lispsym’,
for symbols.

4 years ago; * src/xdisp.c (find_last_unchanged_at_beg_row): Fix a typo.
Eli Zaretskii [Sun, 31 May 2020 17:34:00 +0000 (20:34 +0300)]
; * src/xdisp.c (find_last_unchanged_at_beg_row): Fix a typo.

4 years agoFix bug #41618 "(byte-compile 'foo) errors when foo is a macro."
Alan Mackenzie [Sun, 31 May 2020 16:46:06 +0000 (16:46 +0000)]
Fix bug #41618 "(byte-compile 'foo) errors when foo is a macro."

* lisp/emacs-lisp/bytecomp.el (byte-compile): Disentangle the eval of the
final form from the pushing of 'macro onto it, doing the former first.

4 years agoAvoid crashes due to bidi cache being reset during redisplay
Eli Zaretskii [Sun, 31 May 2020 14:23:11 +0000 (17:23 +0300)]
Avoid crashes due to bidi cache being reset during redisplay

If automatic character composition triggers GC, and
'garbage-collection-messages' are turned on, we could have the
bidi cache reset while processing RTL text, which would then
consistently crash.
* src/xdisp.c (display_echo_area_1): Protect the bidi cache
against changes inside 'try_window'.

4 years ago* lisp/tab-bar.el (switch-to-buffer-other-tab): Normalize buffer.
Juri Linkov [Sat, 30 May 2020 22:30:34 +0000 (01:30 +0300)]
* lisp/tab-bar.el (switch-to-buffer-other-tab): Normalize buffer.

* lisp/tab-bar.el (switch-to-buffer-other-tab): Use
'window-normalize-buffer-to-switch-to' on 'buffer-or-name',
like does 'pop-to-buffer' used by 'switch-to-buffer-other-frame',
instead of raising the error "Invalid buffer" on a non-existent buffer name.

4 years ago; * etc/TODO: Fix formatting. (Bug#41497)
Eli Zaretskii [Sat, 30 May 2020 16:10:14 +0000 (19:10 +0300)]
; * etc/TODO: Fix formatting.  (Bug#41497)

4 years agoFix mingw.org's MinGW GCC 9 warning about 'execve'
Eli Zaretskii [Sat, 30 May 2020 10:19:13 +0000 (13:19 +0300)]
Fix mingw.org's MinGW GCC 9 warning about 'execve'

* nt/inc/ms-w32.h (execve) [__GNUC__ > 9]: Provide a different
prototype for mingw.org's MinGW as well, to match the GCC builtin.

4 years agoTiny texinfo markup fixes
Glenn Morris [Wed, 27 May 2020 23:29:19 +0000 (16:29 -0700)]
Tiny texinfo markup fixes

* doc/lispref/edebug.texi (Edebug Views):
* doc/lispref/loading.texi (Library Search):
* doc/lispref/os.texi (User Identification): Markup fixes.

4 years ago; Fix more @var/@code mixups in Elisp manual
Basil L. Contovounesios [Wed, 27 May 2020 23:12:54 +0000 (00:12 +0100)]
; Fix more @var/@code mixups in Elisp manual

* doc/lispref/text.texi (Replacing): Fix markup for function
arguments.

4 years ago; Fix another format-spec typo in the Elisp manual
Basil L. Contovounesios [Wed, 27 May 2020 22:43:14 +0000 (23:43 +0100)]
; Fix another format-spec typo in the Elisp manual

* doc/lispref/text.texi (Interpolated Strings): Correct markup for
function argument.

4 years agoMake next-error behavior a bit more flexible
Dmitry Gutov [Wed, 27 May 2020 19:15:41 +0000 (22:15 +0300)]
Make next-error behavior a bit more flexible

* lisp/simple.el (next-error-no-navigation-try-current):
Extract from the case #2 in next-error-find-buffer (bug#40919).
(next-error-find-buffer-function): Use it as the default.

4 years ago* etc/NEWS.25: Belatedly announce upcase-dwim and downcase-dwim.
Noam Postavsky [Wed, 27 May 2020 18:04:46 +0000 (14:04 -0400)]
* etc/NEWS.25: Belatedly announce upcase-dwim and downcase-dwim.

4 years agoFix access to single-byte characters in buffer text
Eli Zaretskii [Mon, 25 May 2020 14:07:22 +0000 (17:07 +0300)]
Fix access to single-byte characters in buffer text

* src/xdisp.c (get_visually_first_element)
(Fbidi_find_overridden_directionality):
* src/cmds.c (Fend_of_line): Use FETCH_BYTE instead of FETCH_CHAR,
and byte position instead of character position, to access
individual bytes of buffer text.  This avoids producing invalid
characters and accessing wrong buffer positions.  (Bug#41520)

4 years agoRevert "Fix eshell-mode-map initialization"
Noam Postavsky [Mon, 25 May 2020 00:12:30 +0000 (20:12 -0400)]
Revert "Fix eshell-mode-map initialization"

It makes eshell-return-exits-minibuffer permanently affect the
eshell-mode-map (Bug#41370).

Do not merge to master, we will fix it properly there.

4 years agoFix tab-bar-tab-name-ellipsis initialization
Matthias Meulien [Sun, 17 May 2020 22:32:47 +0000 (00:32 +0200)]
Fix tab-bar-tab-name-ellipsis initialization

* lisp/tab-bar.el (tab-bar-tab-name-truncated): Evaluate displayable
character when generating tab name.

4 years agoFix Elisp manual entry for format-spec
Basil L. Contovounesios [Sun, 24 May 2020 21:10:54 +0000 (22:10 +0100)]
Fix Elisp manual entry for format-spec

* doc/lispref/text.texi (Interpolated Strings): Fix typos.  Don't
document modifier for default space padding as it's redundant and
inconsistent with the docstring and implementation of format-spec.

4 years agoFix rare assertion violations in 'etags'
Eli Zaretskii [Sun, 24 May 2020 15:01:45 +0000 (18:01 +0300)]
Fix rare assertion violations in 'etags'

* lib-src/etags.c (pfnote): Instead of raising an assertion when
we get an empty tag name, return immediately.  (Bug#41465)

* test/manual/etags/ETAGS.good_1:
* test/manual/etags/ETAGS.good_2:
* test/manual/etags/ETAGS.good_3:
* test/manual/etags/ETAGS.good_4:
* test/manual/etags/ETAGS.good_5:
* test/manual/etags/ETAGS.good_6: Adapt to latest changes in
etags.

4 years ago; * lisp/format-spec.el (format-spec): Fix typo.
Basil L. Contovounesios [Sun, 24 May 2020 13:00:12 +0000 (14:00 +0100)]
; * lisp/format-spec.el (format-spec): Fix typo.

4 years ago* lisp/subr.el (save-match-data): Clarify use in docstring
Stefan Monnier [Sat, 23 May 2020 13:33:41 +0000 (09:33 -0400)]
* lisp/subr.el (save-match-data): Clarify use in docstring

4 years agoImprove the documentation of setting up fontsets
Eli Zaretskii [Sat, 23 May 2020 12:14:27 +0000 (15:14 +0300)]
Improve the documentation of setting up fontsets

* doc/lispref/display.texi (Fontsets): Improve the accuracy of a
cross-reference to "Character Properties".

* doc/emacs/mule.texi (Fontsets, Modifying Fontsets): Improve the
documentation of fontsets and how to modify them.

4 years ago; * etc/TODO (Ligatures): Update the entry based on recent discussions.
Eli Zaretskii [Sat, 23 May 2020 08:01:09 +0000 (11:01 +0300)]
; * etc/TODO (Ligatures): Update the entry based on recent discussions.

4 years ago; * etc/TODO (Ligatures): Update the entry based on recent discussions.
Eli Zaretskii [Sat, 23 May 2020 07:59:39 +0000 (10:59 +0300)]
; * etc/TODO (Ligatures): Update the entry based on recent discussions.

4 years ago* doc/emacs/killing.texi (Rectangles): Improve indexing.
Eli Zaretskii [Sat, 23 May 2020 07:33:35 +0000 (10:33 +0300)]
* doc/emacs/killing.texi (Rectangles): Improve indexing.

4 years agoFix accessing files on networked drives on MS-Windows
Eli Zaretskii [Sat, 23 May 2020 05:50:22 +0000 (08:50 +0300)]
Fix accessing files on networked drives on MS-Windows

* src/w32.c (acl_get_file): Set errno to ENOTSUP if
get_file_security returns ERROR_NOT_SUPPORTED.  (Bug#41463)

4 years agoCC Mode: Fix bug #39972, by fixing c-display-defun-name for nested defuns
Alan Mackenzie [Wed, 20 May 2020 19:02:26 +0000 (19:02 +0000)]
CC Mode: Fix bug #39972, by fixing c-display-defun-name for nested defuns

* lisp/progmodes/cc-mode.el (c-common-init): Build
add-log-current-defun-function out of c-defun-name-and-limits instead of the
former c-defun-name.

4 years agoRedo RCS Id for pdumper
Paul Eggert [Mon, 18 May 2020 22:19:49 +0000 (15:19 -0700)]
Redo RCS Id for pdumper

* lisp/version.el: Don’t put an RCS Id style string into the
executable via purecopy, as this does not work with the pdumper.
* src/emacs.c (RCS_Id): New constant, for 'ident'.

(cherry picked from commit 3d1bcfba5e21b29be8669aa2a8f27b344c9e02fd)

4 years agoSecond attempt at improving indexing in control.texi
Stefan Kangas [Tue, 19 May 2020 22:43:40 +0000 (00:43 +0200)]
Second attempt at improving indexing in control.texi

* doc/lispref/control.texi (Processing of Errors): Improve indexing by
adding the word form "handle" in addition to "handling".  With thanks
to Eli Zaretskii.

4 years ago; * etc/PROBLEMS: Add note about color list issues on macOS.
Alan Third [Wed, 20 May 2020 20:23:01 +0000 (21:23 +0100)]
; * etc/PROBLEMS: Add note about color list issues on macOS.

; Do not merge to master.

4 years ago; Update TODO item about ligature support
Eli Zaretskii [Tue, 19 May 2020 15:46:27 +0000 (18:46 +0300)]
; Update TODO item about ligature support

* etc/TODO: Add the todo item for moving cursor "inside" a
ligature.

4 years ago* doc/lispref/control.texi (Processing of Errors): Improve indexing.
Stefan Kangas [Tue, 19 May 2020 00:33:57 +0000 (02:33 +0200)]
* doc/lispref/control.texi (Processing of Errors): Improve indexing.

4 years agoMinor fixups for mutability doc
Paul Eggert [Sun, 17 May 2020 01:16:23 +0000 (18:16 -0700)]
Minor fixups for mutability doc

* doc/lispref/objects.texi (Mutability): Minor fixups in
response to a comment by Dmitry Gutov (Bug#40671#477).

4 years agoDon’t use “constant” for values you shouldn’t change
Paul Eggert [Sun, 17 May 2020 00:17:00 +0000 (17:17 -0700)]
Don’t use “constant” for values you shouldn’t change

Inspired by patch proposed by Dmitry Gutov (Bug#40671#393)
and by further comments by him and by Michael Heerdegen
in the same bug report.
* doc/lispintro/emacs-lisp-intro.texi (setcar):
Don’t push mutability here.
* doc/lispref/eval.texi (Self-Evaluating Forms, Quoting)
(Backquote):
* doc/lispref/lists.texi (Modifying Lists):
* doc/lispref/objects.texi (Lisp Data Types, Mutability):
* doc/lispref/sequences.texi (Array Functions, Vectors):
* doc/lispref/strings.texi (String Basics, Modifying Strings):
Don’t use the word “constant” to describe all values that
a program should not change.
* doc/lispref/objects.texi (Mutability):
Rename from “Constants and Mutability”.  All uses changed.
In a footnote, contrast the Emacs behavior with that of Common
Lisp, Python, etc. for clarity, and say the goal is to be nicer.

4 years agoImprove documentation of manually installing Lisp packages
Eli Zaretskii [Sat, 16 May 2020 08:54:37 +0000 (11:54 +0300)]
Improve documentation of manually installing Lisp packages

* doc/emacs/building.texi (Lisp Libraries): Describe how to
manually load packages in the init file.  Mention the 'site-lisp'
subdirectory of the default 'load-path'.

* doc/emacs/package.texi (Packages): Describe manual installation
of ELisp packages.  Suggested by Jean-Christophe Helary
<jean.christophe.helary@traduction-libre.org>.

4 years agoReflect the emacs-devel ELPA/MELPA dispute in FAQ
Eli Zaretskii [Sat, 16 May 2020 07:30:43 +0000 (10:30 +0300)]
Reflect the emacs-devel ELPA/MELPA dispute in FAQ

* doc/misc/efaq.texi (Packages that do not come with Emacs): Warn
that some MELPA packages may require non-free software.

4 years agoConsider face inheritance when checking region face background.
Tassilo Horn [Fri, 15 May 2020 20:24:29 +0000 (22:24 +0200)]
Consider face inheritance when checking region face background.

Some themes (like dracula) make the region face inherit from some
other face.  If the background color of the region was inherited,
`indicate-copied-region' did the switch-point-and-mark-twice dance
which is not visible in case the region is highlighted.  It just
looked like Emacs would hang for a second after M-w.

* lisp/simple.el (indicate-copied-region): Consider face inheritance
when checking region face background.

4 years agoFix dired default file operation (bug#41261)
Leo Vivier [Thu, 14 May 2020 22:03:18 +0000 (00:03 +0200)]
Fix dired default file operation (bug#41261)

* lisp/dired-aux.el (dired-dwim-target-directories): Restore
pre-emacs-27 behavior of 'dired-dwim-target'.

4 years agoFix documentation related to 'command-switch-alist'.
Philipp Stephani [Thu, 14 May 2020 17:26:43 +0000 (19:26 +0200)]
Fix documentation related to 'command-switch-alist'.

While there, add a unit test to verify the behavior.

* doc/lispref/os.texi (Command-Line Arguments): Fix documentation: the
option string in 'command-switch-alist' does include leading hyphens.
Also mention that 'command-switch-alist' parsing ignores equals signs
in options.

* test/lisp/startup-tests.el
(startup-tests/command-switch-alist): New unit test.

4 years agoImprove ediff readability in misterioso theme (Bug#41221)
Simon Lang [Tue, 12 May 2020 21:54:52 +0000 (22:54 +0100)]
Improve ediff readability in misterioso theme (Bug#41221)

* etc/themes/misterioso-theme.el: Add ediff faces.

Copyright-paperwork-exempt: yes

4 years agoFix a crash in handle_display_spec
Clément Pit-Claudel [Wed, 13 May 2020 14:37:05 +0000 (10:37 -0400)]
Fix a crash in handle_display_spec

* src/xdisp.c (handle_display_spec): Check that the cdr of the
disable-eval spec is a cons before taking its car.  (Bug#41232)

4 years agoIn x_hide_tip reset tip_last_frame for GTK+ tooltips only (Bug#41200)
Martin Rudalics [Wed, 13 May 2020 08:31:50 +0000 (10:31 +0200)]
In x_hide_tip reset tip_last_frame for GTK+ tooltips only (Bug#41200)

* src/xfns.c (x_hide_tip): Reset tip_last_frame only when
using GTK+ system tooltips (Bug#41200).

4 years agoFix docstring of flymake-make-diagnostic (bug#40351)
João Távora [Tue, 12 May 2020 18:33:19 +0000 (19:33 +0100)]
Fix docstring of flymake-make-diagnostic (bug#40351)

* lisp/progmodes/flymake.el (flymake-make-diagnostic): Fix docstring

4 years agoGo back to “Bahá’í”
Paul Eggert [Sun, 10 May 2020 15:47:47 +0000 (08:47 -0700)]
Go back to “Bahá’í”

* doc/emacs/calendar.texi (Holidays): Revert previous change, as
bahai.org spells it “Bahá’í” (with U+2019 RIGHT SINGLE QUOTATION
MARK) and that’s good enough for us.

4 years ago* lisp/dired.el (dired-toggle-marks): Doc fix. (Bug#41097)
Eli Zaretskii [Sun, 10 May 2020 16:04:51 +0000 (19:04 +0300)]
* lisp/dired.el (dired-toggle-marks): Doc fix.  (Bug#41097)

4 years agoSmall fix for type of 'display-fill-column-indicator-character'
Philipp Stephani [Sat, 9 May 2020 12:33:05 +0000 (14:33 +0200)]
Small fix for type of 'display-fill-column-indicator-character'

* lisp/cus-start.el (standard): Don't mark t as safe file-local value
for 'display-fill-column-indicator-character', as that value isn't
allowed.

4 years agoFix customization of 'display-fill-column-indicator-character'
Eli Zaretskii [Sat, 9 May 2020 09:34:58 +0000 (12:34 +0300)]
Fix customization of 'display-fill-column-indicator-character'

* lisp/cus-start.el (display-fill-column-indicator-character): Fix
the customization form.  (Bug#41145)

4 years agoRefer to fill column indicator Info node in some places.
Philipp Stephani [Sat, 9 May 2020 08:20:47 +0000 (10:20 +0200)]
Refer to fill column indicator Info node in some places.

* src/xdisp.c (syms_of_xdisp): Add reference to manual in
documentation strings for variables related to fill column indicators.

* lisp/display-fill-column-indicator.el (display-fill-column-indicator)
(display-fill-column-indicator-mode): Add reference to manual.

4 years agoMerge branch 'emacs-27' of git.sv.gnu.org:/srv/git/emacs into emacs-27
Martin Rudalics [Sat, 9 May 2020 07:39:40 +0000 (09:39 +0200)]
Merge branch 'emacs-27' of git.sv.gnu.org:/srv/git/emacs into emacs-27