Hugh Daschbach [Mon, 12 Oct 2020 09:37:27 +0000 (11:37 +0200)]
Add interface arg to D-Bus PropertiesChanged signal.
* lisp/net/dbus.el (dbus-register-property, dbus-property-handler):
Fix signal generation. (Bug#43936)
* test/lisp/net/dbus-tests.el (dbus-test06-register-property-emits-signal):
Fix test.
Stefan Monnier [Sun, 11 Oct 2020 22:21:48 +0000 (18:21 -0400)]
* lisp/proced.el: Fix behavior with variable-pitch `header-line` face
Also, use lexical-scoping. Remove redundant `:group` args.
(proced-process-alist, proced-header-line): Use `defvar-local`
(proced-header-line): Put :align-to on spaces to improve result with
variable-pitch header-line face.
(proced-filter, proced-format): Use a closure instead of `(lambda ...).
Lars Ingebrigtsen [Sun, 11 Oct 2020 22:07:58 +0000 (00:07 +0200)]
Add a reference to the shortdoc command in the Emacs manual
* doc/emacs/help.texi (Name Help): Mention shortdoc.
Lars Ingebrigtsen [Sun, 11 Oct 2020 22:03:15 +0000 (00:03 +0200)]
Add a shortdoc menu entry
* lisp/menu-bar.el (menu-bar-describe-menu): Add a shortdoc menu
entry.
Lars Ingebrigtsen [Sun, 11 Oct 2020 21:51:22 +0000 (23:51 +0200)]
Fix error in file shortdoc group
* lisp/emacs-lisp/shortdoc.el (number): Add some more numeric
stuff (and clean up some arglists).
Stefan Monnier [Sun, 11 Oct 2020 21:08:25 +0000 (17:08 -0400)]
* lisp/hexl.el: Fix behavior with variable-pitch `header-line` face
(hexl-ascii-region): Don't inherit from the `header-line`.
(hexl-font-lock-keywords): Fix text alignment.
(hexl-mode): Set `font-lock-extra-managed-props` accordingly.
Alan Third [Sun, 11 Oct 2020 19:46:07 +0000 (20:46 +0100)]
Fix GNUstep build
Fix mistakes made when removing Cocoa code from nsfont.m.
* src/nsfont.m (nsfont_draw): Remove spurious #ifdef.
(ns_uni_to_glyphs): The #if/#endif was removed from this code, but the
code itself not removed. Remove it now.
Stefan Kangas [Sun, 11 Oct 2020 17:36:41 +0000 (19:36 +0200)]
* lisp/tooltip.el: Remove redundant :group args.
Stefan Kangas [Sun, 11 Oct 2020 17:35:37 +0000 (19:35 +0200)]
* lisp/tooltip.el: Use lexical-binding.
Stefan Kangas [Sun, 11 Oct 2020 17:32:55 +0000 (19:32 +0200)]
; * lisp/help-fns.el (help-fns-describe-function-functions): Fix typo.
Eli Zaretskii [Sun, 11 Oct 2020 14:28:40 +0000 (17:28 +0300)]
Improve documentation of shortdoc features
* lisp/help-fns.el (help-fns-describe-function-functions): Doc
fix.
* lisp/emacs-lisp/shortdoc.el (define-short-documentation-group)
(shortdoc-display-group, shortdoc-add-function): Doc fixes.
* doc/lispref/help.texi (Documentation Groups): Improve the
recently-added documentation and the indexing.
Stefan Kangas [Sun, 11 Oct 2020 13:58:06 +0000 (15:58 +0200)]
* lisp/url/url-domsuf.el: Use lexical-binding.
Stefan Kangas [Sun, 11 Oct 2020 13:55:18 +0000 (15:55 +0200)]
Convert url-domsuf.el tests to ert
* lisp/url/url-domsuf.el: Move commented out tests from here...
* test/lisp/url/url-domsuf-tests.el: ...to this new file.
Stefan Kangas [Sun, 11 Oct 2020 13:03:11 +0000 (15:03 +0200)]
Update publicsuffix.txt from upstream
* etc/publicsuffix.txt: Update from
https://publicsuffix.org/list/public_suffix_list.dat
dated 2020-10-09 08:23:34 UTC.
Lars Ingebrigtsen [Sun, 11 Oct 2020 10:30:38 +0000 (12:30 +0200)]
Add more numeric shortdocs
* lisp/emacs-lisp/shortdoc.el (shortdoc-section)
(shortdoc-example): Lighten up colours on light backgrounds.
Lars Ingebrigtsen [Sun, 11 Oct 2020 10:12:47 +0000 (12:12 +0200)]
Tweak shortdoc colours on light backgrounds
* lisp/emacs-lisp/shortdoc.el (shortdoc-section)
(shortdoc-example): Lighten up colours on light backgrounds.
Lars Ingebrigtsen [Sun, 11 Oct 2020 10:05:55 +0000 (12:05 +0200)]
Autoload shortdoc command and adjust NEWS
* lisp/emacs-lisp/shortdoc.el (shortdoc-display-group): Autoload.
Lars Ingebrigtsen [Sun, 11 Oct 2020 09:21:48 +0000 (11:21 +0200)]
Use Unicode arrows in shortdoc results
* lisp/emacs-lisp/shortdoc.el (shortdoc--display-function): Use
Unicode arrows if possible.
Lars Ingebrigtsen [Sun, 11 Oct 2020 05:50:10 +0000 (07:50 +0200)]
Don't boldify the flyspell language indicator in the mode line
* lisp/textmodes/flyspell.el (flyspell-mode): Don't boldify the
language part -- it draws too much attention in the minor mode list.
Stephen Berman [Sun, 11 Oct 2020 04:05:49 +0000 (06:05 +0200)]
Allow killing files with C-k in wdired if -F is used
* lisp/wdired.el (wdired-change-to-wdired-mode): Add hook to
restore properties.
(wdired-change-to-wdired-mode): Adjust check for symlinks.
(wdired-preprocess-files): Fix parsing when using the -F flag.
(wdired-get-filename): Fix parsing of symlinks when using the -F flag.
(wdired--restore-properties): Renamed, and restore more properties
(bug#18475).
Lars Ingebrigtsen [Sun, 11 Oct 2020 03:51:16 +0000 (05:51 +0200)]
Add support for displaying short documentation for function groups
* doc/lispref/help.texi (Documentation Groups): Document it.
* lisp/help-fns.el (help-fns--mention-shortdoc-groups): Output
references to the shortdocs.
* lisp/emacs-lisp/shortdoc.el: New file.
Juri Linkov [Sun, 11 Oct 2020 03:04:40 +0000 (05:04 +0200)]
Make C-w worth in isearch when at the last match in the buffer
* lisp/isearch.el (isearch-yank-internal): Make C-w work when at
the last match in the buffer (bug#22118).
Noam Postavsky [Sun, 11 Oct 2020 02:25:52 +0000 (04:25 +0200)]
Clarify how to set single-function hooks
* doc/lispref/modes.texi (Hooks): Clarify the difference between
normal hooks and single-function "hooks" (bug#25581).
Lars Ingebrigtsen [Sun, 11 Oct 2020 02:05:41 +0000 (04:05 +0200)]
Fix link in previous display.texi change
* doc/lispref/display.texi (Fontsets): Link to the correct node in
the Elisp manual, not in the Emacs manual.
Robert Weiner [Sun, 11 Oct 2020 02:03:47 +0000 (04:03 +0200)]
Make posn-set-point work on frame events
* lisp/subr.el (event-start): Mention the frame part of the events.
(posn-window): Ditto.
(posn-set-point): Make this work if the event is a frame event
(bug#28621).
Robert Pluim [Sun, 11 Oct 2020 01:49:37 +0000 (03:49 +0200)]
Fix the documentation of char-displayable-p
* doc/lispref/display.texi (Fontsets): Make the documentation of
char-displayable-p less incorrect (bug#35230).
Rasmus [Sat, 10 Oct 2020 20:32:41 +0000 (22:32 +0200)]
gnus-icalendar.el: Fix bug in gnus-icalendar-identities
* lisp/gnus/gnus-icalendar.el (gnus-icalendar-event--find-attendee):
(gnus-icalendar-identities) `gnus-ignored-from-addresses' and
`message-alternative-emails' may be functions. This is not
supported by `gnus-icalendar-event--find-attendee' (bug#43908).
Stefan Monnier [Sat, 10 Oct 2020 20:00:51 +0000 (16:00 -0400)]
* lisp/calc/: Use lexical scoping in all the files
Includes the following pervasive changes:
- Move some defvars earlier in the file so they cover earlier let-bindings
- Change dynamically scoped `calc-FOO` or `math-FOO` function arguments
to just FOO and then let-bind the `calc-FOO` or `math-FOO` variable
explicitly in the body of the function. In some cases, the
beginning of the function was changed to refer to FOO so as to delay
the binding to a nearby `let` when I could ensure that it did
not make a difference.
- Add an underscore in front of unused vars or comment them out altogether.
- Replace unused `err` arg to `condition-case` with nil.
Plus the additional itemized changes below.
* lisp/calc/calc-map.el (calcFunc-reducer):
* lisp/calc/calc-arith.el (math-setup-declarations):
* lisp/calc/calc-help.el (calc-full-help, calc-help-index-entries)
(calc-full-help): Use `ignore-errors`.
* lisp/calc/calc-embed.el (calc-embedded-modes-change):
Declare `the-language` and `the-display-just` as dynamically scoped.
* lisp/calc/calc-forms.el (math-setup-year-holidays): Use `dolist`.
* lisp/calc/calc-graph.el (calc-graph-set-styles): Use `symbol-value`
rather than `eval.`
(calc-graph-delete-temps, calc-graph-set-styles): Use ignore-errors.
* lisp/calc/calc-macs.el (calc-with-trail-buffer): Add artificial use
of `save-buf` to silence compiler warnings in all the cases where
`body` doesn't make use of it.
* lisp/calc/calc-math.el (math-largest-emacs-expt)
(math-smallest-emacs-expt, math-use-emacs-fn): Use ignore-errors.
* lisp/calc/calc-mode.el (calc-total-algebraic-mode): Remove "P" from
interactive spec since it's not used anyway.
* lisp/calc/calc-rewr.el (calc-match): Simplify.
* lisp/calc/calc.el (calc-buffer): Give it a global nil value,
so it's automatically declared dynbound in any file that requires `calc`.
(calcDigit-nondigit): Adjust accordingly.
* lisp/calc/calcalg2.el (calcFunc-table): Declare `var-dummy` as dynbound.
(math-scan-for-limits): Comment out dead code.
* lisp/calc/calcalg3.el (math-general-fit): Declare `var-YVAL` and
`var-YVALX` as dynbound.
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`.
Glenn Morris [Sat, 10 Oct 2020 14:50:20 +0000 (07:50 -0700)]
Merge from origin/emacs-27
c00606171f (origin/emacs-27) A better fix for bug#43886
3196fd44c3 Avoid crashes when a theme is loaded with one frame suspended
0407b15500 Removed an incorrectly placed extra word in the semantic docs
040dcbe53e Fix current-line hscrolling when overlays change
c56eeba2ce Extend tests for shell-command-dont-erase-buffer
Glenn Morris [Sat, 10 Oct 2020 14:50:19 +0000 (07:50 -0700)]
; Merge from origin/emacs-27
The following commit was skipped:
6fea8699a1 Clarify what ``chrooted environment means'' for TRAMP
Glenn Morris [Sat, 10 Oct 2020 14:50:19 +0000 (07:50 -0700)]
Merge from origin/emacs-27
b6704d58e8 ; * src/xdisp.c (Fwindow_text_pixel_size): Doc fix.
Glenn Morris [Sat, 10 Oct 2020 14:50:19 +0000 (07:50 -0700)]
; Merge from origin/emacs-27
The following commit was skipped:
cbcca8159d Add missing full stop in MS-DOS processes documentation
Glenn Morris [Sat, 10 Oct 2020 14:50:18 +0000 (07:50 -0700)]
Merge from origin/emacs-27
acc9b46153 Fix merging of region face for non-ASCII characters
c2a13969e4 Make drag and drop on NS open all URLs (bug#43470)
Mattias Engdegård [Sat, 10 Oct 2020 09:29:43 +0000 (11:29 +0200)]
Improve coverage of Calc bit shift test
* test/lisp/calc/calc-tests.el (calc-tests--rsh, calc-tests--rash)
(calc-shift-binary): Test with negative word sizes.
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)
Eli Zaretskii [Fri, 9 Oct 2020 14:28:24 +0000 (17:28 +0300)]
Add Euro Sign to Latin language input methods
* lisp/leim/quail/latin-post.el ("danish-postfix")
("finnish-postfix", "french-postfix", "german-postfix")
("icelandic-postfix", "italian-postfix", "norwegian-postfix")
("scandinavian-postfix", "spanish-postfix", "swedish-postfix"):
Add "E=" for the Euro Sign. (Bug#43866)
Stefan Kangas [Fri, 9 Oct 2020 10:23:02 +0000 (12:23 +0200)]
; shorten https://lists.gnu.org/archive/html/... links
Stefan Kangas [Fri, 9 Oct 2020 09:51:32 +0000 (11:51 +0200)]
; Fix typos
Mattias Engdegård [Fri, 9 Oct 2020 09:12:53 +0000 (11:12 +0200)]
Calc: fix arithmetic right shift sign bit detection
Arithmetic right shift didn't compute the bit to shift in correctly.
For example, #x600000000 right-shifted 8 steps (with 32 bit word size)
resulted in #xff000000 rather than 0. (Bug#43764)
* lisp/calc/calc-bin.el (calcFunc-ash): Fix condition.
* test/lisp/calc/calc-tests.el (calc-tests--clip, calc-tests--lsh)
(calc-tests--rsh, calc-tests--ash, calc-tests--rash, calc-tests--rot):
New.
(calc-shift-binary): New test.
Nick Gasson [Fri, 9 Oct 2020 04:57:07 +0000 (06:57 +0200)]
Match OpenBSD doas password prompt in comint
* lisp/comint.el (comint-password-prompt-regexp): match OpenBSD doas
password prompt. OpenBSD 5.8 replaced sudo with doas in the base
install.
* test/lisp/comint-tests.el (comint-testsuite-password-strings): test
that the doas password prompt is matched (bug#43846).
Copyright-paperwork-exempt: yes
Lars Ingebrigtsen [Fri, 9 Oct 2020 04:48:51 +0000 (06:48 +0200)]
message-signature doc fix
* lisp/gnus/message.el (message-signature): Mention
message-signature-insert-empty-line (bug#43853).
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
Lars Ingebrigtsen [Fri, 9 Oct 2020 04:36:53 +0000 (06:36 +0200)]
Clarify define-minor-mode hooks
* doc/lispref/modes.texi (Defining Minor Modes): Note that the
code (and the hook) is run both when the mode is enabled and
disabled (bug#43868).
Lars Ingebrigtsen [Fri, 9 Oct 2020 04:26:17 +0000 (06:26 +0200)]
Revert "Don't eagerly store articles in the Agent by default"
This reverts commit
def34a20766ea5179afd5e5ed090a2b86fcccb5e.
This made storing articles in the Agent very slow.
Lars Ingebrigtsen [Fri, 9 Oct 2020 04:15:02 +0000 (06:15 +0200)]
Only skip directories in lgrep, not the other grep commands
* lisp/progmodes/grep.el (lgrep): Do the directory ignores here
(bug#23590).
(grep-compute-defaults): ... instead of here, because this would
affect all grep commands, not just lgrep.
Alan Mackenzie [Thu, 8 Oct 2020 16:49:49 +0000 (16:49 +0000)]
CC Mode: Move the handling of keyword auto into type handling for C++.
This should allow auto, const, static, ... to be in any order.
* lisp/progmodes/cc-engine.el (c-forward-type): New return value 'no-id for
when auto precludes the parsing of a type identifier. Adapt processing for
this.
(c-forward-decl-or-cast-1): Use the new facility from c-forward-type.
* lisp/progmodes/cc-langs.el (c-type-modifier-prefix-kwds): Insert the value
of c-no-type-kwds into the value.
(c-no-type-kwds, c-no-type-key): New lang consts/vars, basically "auto".
(c-typeless-decl-kwds, c-modifier-kwds): Remove "auto" from the C++ value.
Stefan Monnier [Thu, 8 Oct 2020 13:49:20 +0000 (09:49 -0400)]
* src/ftcrfont.c (ftcrfont_open): Initialize the `max_width` field
On a 32bit build, Emacs can otherwise crash with a !FIXNUM_OVERFLOW_P
assertion in `Ffont_info` by simply doing `emacs -Q` and then `C-s`.
* src/font.c: Try and detect uninitialized `max_width` fields.
(font_make_object): Set max_width to a silly value.
(Ffont_info): Check the value is not silly any more.
Stefan Monnier [Wed, 7 Oct 2020 14:51:35 +0000 (10:51 -0400)]
* lisp/doc-view.el: Fix "can't resize root window" error
(doc-view-fit-window-to-page): Change approach to detect when the
frame needs to be resized.
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.
Dmitry Gutov [Mon, 5 Oct 2020 00:02:10 +0000 (03:02 +0300)]
Mention two more functions in the commentary
* lisp/progmodes/project.el:
Mention two more functions in the commentary (bug#43595).
Eli Zaretskii [Wed, 7 Oct 2020 09:12:06 +0000 (12:12 +0300)]
Improve documentation of 'isearch-group-N' faces
* etc/NEWS:
* doc/emacs/search.texi (Search Customizations): Improve and
clarify the wording of the 'isearch-group-N' faces description.
* lisp/isearch.el (search-highlight-submatches): Doc fix.
Eli Zaretskii [Wed, 7 Oct 2020 08:35:59 +0000 (11:35 +0300)]
Fix last change in frame.el.
* lisp/frame.el (frame-set-background-mode): Fix last change: yet
another place where FRAME was not taken into account, using the
selected frame instead. (Bug#43837)
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 [Wed, 7 Oct 2020 07:02:20 +0000 (10:02 +0300)]
Fix face recalculation when frame's background mode changes
* lisp/frame.el (frame-set-background-mode): Use the FRAME
argument instead of the selected frame, when calling
'face-spec-match-p'. (Bug#43837)
Lars Ingebrigtsen [Wed, 7 Oct 2020 04:42:05 +0000 (06:42 +0200)]
Remove mention of the obsolete cust-print.el from the manual
* doc/lispref/edebug.texi (Printing in Edebug): Remove mention of
the obsolete cust-print.el (bug#37956) and adjust the text a bit.
Lars Ingebrigtsen [Wed, 7 Oct 2020 04:09:18 +0000 (06:09 +0200)]
Update documentation on this-command-keys to reflect new behavior
* doc/lispref/commands.texi (Command Loop Info):
`this-command-keys' does not include the C-u any more, so remove
that from the description and the example
(bug#22107).
* src/keyboard.c (Fthis_single_command_keys): Don't say that
`this-command-keys' returns the C-u prefix (bug#22111).
Alex Gramiak [Wed, 7 Oct 2020 03:41:23 +0000 (05:41 +0200)]
Default the grep commands to skip directories
* lisp/progmodes/grep.el (grep-compute-defaults): Skip directories
(bug#23590).
Lars Ingebrigtsen [Wed, 7 Oct 2020 03:23:26 +0000 (05:23 +0200)]
Make artist-mode work when display-line-numbers-mode is on
* lisp/textmodes/artist.el (artist--adjust-x): New function.
(artist-mouse-draw-continously, artist-mouse-draw-poly)
(artist-mouse-draw-1point, artist-mouse-draw-2points): Use it to
take `display-line-numbers-mode' widths into account.
Lars Ingebrigtsen [Wed, 7 Oct 2020 03:05:20 +0000 (05:05 +0200)]
Remove reference to outdated Gnus variable from the manual
* doc/misc/gnus.texi (Startup Variables): Remove reference to
gnus-use-backend-marks, which was removed in 2011 (bug#43833).
Lars Ingebrigtsen [Wed, 7 Oct 2020 02:50:52 +0000 (04:50 +0200)]
alist-get doc string further clarification
* lisp/subr.el (alist-get): Mention generalized variables again
for easier cross-referencing (bug#43836).
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).
Mauro Aranda [Wed, 7 Oct 2020 02:35:52 +0000 (04:35 +0200)]
Make the State button in Custom use extended menus
* lisp/cus-edit.el (custom-actioned-widget): New variable.
Dynamically hold the widget for which to show the menu.
(custom-variable-extended-menu, custom-face-extended-menu)
(custom-group-extended-menu): Keymap menus for the State menu. Use
custom-actioned-widget for the :enable and :selected forms. Make
related items radio buttons. (Bug#4787)
(custom-variable-menu, custom-face-menu, custom-group-menu): Keep for
backward compatibility, but default to nil, so we prefer the keymap
menus instead.
(custom-variable-action, custom-face-action, custom-group-action):
Pass the keymap menu to widget-choose when the simplified menus
are nil.
Stefan Monnier [Wed, 7 Oct 2020 02:08:02 +0000 (22:08 -0400)]
* test/lisp/progmodes/ruby-mode-tests.el: Fix obsolete warnings
Juri Linkov [Tue, 6 Oct 2020 20:14:26 +0000 (23:14 +0300)]
Add match-data to isearch state and repeat faces to highlight group matches
* lisp/isearch.el (isearch-match-data): New variable.
(isearch-mode): Set isearch-match-data to nil.
(isearch-update): Call isearch-highlight with isearch-match-data.
(isearch--state): Add isearch-match-data.
(isearch--set-state): Restore isearch-match-data.
(with-isearch-suspended): Preserve isearch-match-data.
(isearch-search): Set isearch-match-data to integers.
(isearch-group-1): Rename from isearch-group-odd and adjust colors.
(isearch-group-2): Rename from isearch-group-even and adjust colors.
(isearch-highlight): Add optional arg 'match-data'.
Rewrite search-highlight-submatches part to recycle faces.
* doc/emacs/search.texi (Search Customizations): Amend the
documentation for isearch-group faces.
(bug#6227, bug#43702)
Alan Third [Mon, 5 Oct 2020 19:38:45 +0000 (20:38 +0100)]
Fix crash when creating new NS frame (bug#43812)
* src/nsterm.m (ns_clear_under_internal_border): Check the frame is
live.
Juri Linkov [Tue, 6 Oct 2020 18:35:53 +0000 (21:35 +0300)]
Add check for bound and true 'ido-everywhere' in multi-occur--prompt
* lisp/replace.el (multi-occur--prompt): Check if 'ido-everywhere' is
bound and true (bug#41633).
Juri Linkov [Tue, 6 Oct 2020 18:33:20 +0000 (21:33 +0300)]
Fix args of truncate-string-to-width in ibuffer-compile-make-substring-form
* lisp/ibuffer.el (ibuffer-compile-make-substring-form): Fix args of
truncate-string-to-width call (bug#41250)
Eli Zaretskii [Tue, 6 Oct 2020 16:32:20 +0000 (19:32 +0300)]
; * src/xdisp.c (Fwindow_text_pixel_size): Doc fix.
Stefan Monnier [Tue, 6 Oct 2020 15:02:00 +0000 (11:02 -0400)]
* lisp/international/mule.el (define-coding-system): Revert accidental change
This was accidentally included in
a9f147af716aa026ec7778202901c4cb4bd5487d
"Use the full name of the null byte/character, not its abbreviation".
Stefan Monnier [Tue, 6 Oct 2020 13:38:25 +0000 (09:38 -0400)]
* lisp/international/mule-util.el: Revert bug#41250 workaround
(truncate-string-ellipsis): Use the '…' character itself since it
should work now and is more readable.
Stefan Monnier [Tue, 6 Oct 2020 13:34:20 +0000 (09:34 -0400)]
* lisp/international/ja-dic-cnv.el: Attempt to fix bug#41250
(skkdic-convert): Only bind `coding-system-for-read` where needed.
Mattias Engdegård [Tue, 6 Oct 2020 12:22:57 +0000 (14:22 +0200)]
Suppress obsoletion warning in test of obsolete rx function
* test/lisp/emacs-lisp/rx-tests.el (rx-compat): Add byte-compilation
warning suppression.
Eli Zaretskii [Tue, 6 Oct 2020 11:51:13 +0000 (14:51 +0300)]
; * lisp/international/mule-util.el (truncate-string-ellipsis): Fix comment.
Mattias Engdegård [Tue, 6 Oct 2020 11:09:58 +0000 (13:09 +0200)]
Fix last change
* lisp/international/mule-util.el (truncate-string-ellipsis):
Use Unicode hex escapes instead of named escapes here, because \N{...}
is not available during bootstrapping. (Bug#41250)
Eli Zaretskii [Tue, 6 Oct 2020 08:24:15 +0000 (11:24 +0300)]
Fix last change
* lisp/international/mule-util.el (truncate-string-ellipsis): Add
a FIXME comment that explains the last change. (Bug#41250)
Juri Linkov [Tue, 6 Oct 2020 07:50:46 +0000 (10:50 +0300)]
Don't use the character '…' literally in mule-util.el (bug#41250)
* lisp/international/mule-util.el (truncate-string-ellipsis):
Replace the character '…' with its Unicode name.
Lars Ingebrigtsen [Tue, 6 Oct 2020 01:51:17 +0000 (03:51 +0200)]
Fix animate test that somehow changed recently
Lars Ingebrigtsen [Tue, 6 Oct 2020 01:48:00 +0000 (03:48 +0200)]
Fix mule-util-tests after recent truncation changes
* test/lisp/international/mule-util-tests.el: Fix truncation checks.
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).
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).
Harald Jörg [Tue, 6 Oct 2020 01:39:55 +0000 (03:39 +0200)]
cperl-mode: Fix a test to ensure cperl-mode is active
* test/lisp/progmodes/cperl-mode-tests.el
(cperl-mode-test-indent-exp): Make sure that cperl-mode is active
for testing 'cperl-indent-exp', also skip this test under
perl-mode.
* test/lisp/progmodes/cperl-mode-resources/cperl-indent-exp.pl:
Eliminate dependency on unrelated customizable variables (bug#10483).
Andreas Schwab [Mon, 5 Oct 2020 17:59:00 +0000 (19:59 +0200)]
Use the full name of the null byte/character, not its abbreviation
* lisp/subr.el (inhibit-nul-byte-detection): Make it an obsolete alias.
* src/coding.c (setup_coding_system): Use original name.
(detect_coding): Rename nul_byte_found => null_byte_found.
(detect_coding_system): Use original name.
Rename nul_byte_found => null_byte_found.
(Fdefine_coding_system_internal): Use original name.
(syms_of_coding): Rename inhibit-nul-byte-detection to
inhibit-null-byte-detection.
* src/w16select.c (get_clipboard_data): Rename nul_char to null_char.
* src/json.c (check_string_without_embedded_nulls): Rename from
check_string_without_embedded_nuls.
(Fjson_parse_string): Adjust accordingly.
* src/coding.h (enum define_coding_undecided_arg_index)
(enum coding_attr_index): Rename ...nul_byte... to ...null_byte....
* lisp/info.el (info-insert-file-contents, Info-insert-dir):
* lisp/international/mule.el (define-coding-system):
* lisp/vc/vc-git.el (vc-git--call):
* doc/lispref/nonascii.texi (Lisp and Coding Systems): Use original name.
Michael Albinus [Mon, 5 Oct 2020 11:58:28 +0000 (13:58 +0200)]
* src/dbusbind.c (xd_signature): Better type check for array elements.
* test/lisp/net/dbus-tests.el (dbus-test01-compound-types): Extend test.
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)
Jared Finder [Mon, 5 Oct 2020 08:20:56 +0000 (10:20 +0200)]
Sort items in tmm properly, and allow clicking the final item
* lisp/tmm.el (tmm-menubar-keymap): Sort the final items properly.
(tmm-menubar): Allow clicking the final menu item (bug#43756).
Juri Linkov [Mon, 5 Oct 2020 07:01:03 +0000 (09:01 +0200)]
Use … in Gnus mode lines (when shortening them)
* lisp/gnus/gnus-sum.el (gnus-set-mode-line): Defer ellipsis
creation to `truncate-string-to-width' (bug#41250). This uses …
by default.
Nathan Moreau [Mon, 5 Oct 2020 06:50:08 +0000 (08:50 +0200)]
Improve support for using vc commands in indirect buffers
* lisp/vc/vc.el (vc-deduce-fileset-1): New defun.
(vc-deduce-fileset): Adapt.
(vc-maybe-buffer-sync): New defun.
(vc-diff): Adapt.
(vc-ediff): Adapt.
(vc-root-diff): Adapt.
(vc-revision-other-window): Adapt (bug#40967).
Eli Zaretskii [Mon, 5 Oct 2020 05:37:02 +0000 (08:37 +0300)]
Fix the documentation parts of a recent commit
* lisp/international/mule-util.el (truncate-string-ellipsis): Doc
fix.
* doc/lispref/display.texi (Size of Displayed Text): Improve
wording and accuracy of the documentation of
'truncate-string-to-width'. Document the function
'truncate-string-ellipsis'.
* etc/NEWS: Improve the wording of the entry for
'truncate-string-to-width'.
Stefan Monnier [Mon, 5 Oct 2020 02:50:38 +0000 (22:50 -0400)]
* src/xdisp.c (syms_of_xdisp): New var `redisplay_skip_initial_frame`.
This makes it possible to run most of the redisplay code (tho not the
actual drawing since there's nowhere to draw) even when there's no
real frame at hand, as is the case in batch mode.
This makes `xdisp-tests--minibuffer-resizing` work even in batch.
(redisplay_internal): Obey it.
(init_xdisp): Set `echo_area_window` even in noninteractive mode.
* src/dispnew.c (update_frame): Skip the initial frame.
* src/frame.c (make_frame): Use 80x25 as the default initial size.
* test/src/xdisp-tests.el (xdisp-tests--minibuffer-resizing):
Use the new var and fix use of `executing-kbd-macro`.
Juri Linkov [Sun, 4 Oct 2020 19:41:36 +0000 (22:41 +0300)]
Use '…' for ellipsis in truncate-string-to-width by default (bug#41250)
* lisp/international/mule-util.el (truncate-string-ellipsis):
Change the default value to nil.
(truncate-string-ellipsis): New function.
(truncate-string-to-width): Use the value returned from the
function 'truncate-string-ellipsis'.
* lisp/tab-bar.el (tab-bar-tab-name-truncated):
* lisp/tab-line.el (tab-line-tab-name-ellipsis):
Take advantage of the improvement of the ellipsis default value
in truncate-string-to-width and truncate-string-ellipsis.
* doc/lispref/display.texi (Size of Displayed Text):
Improve description of truncate-string-ellipsis.
Michael Albinus [Sun, 4 Oct 2020 16:56:45 +0000 (18:56 +0200)]
Make dbus-unregister-object work for monitors
* doc/misc/dbus.texi (Monitoring Messages): Rename from
"Monitoring Events".
(Register Objects, Monitoring Messages):
Mention returned object.
* lisp/net/dbus.el (dbus-unregister-object): Adapt docstring.
(dbus-unregister-object): Delete monitor if needed.
(dbus-register-monitor): Return proper object.
* src/dbusbind.c (dbus-registered-objects-table): Adapt docstring.
* test/lisp/net/dbus-tests.el (dbus--test-signal-handler):
Adapt docstring.
(dbus-test08-register-monitor): New test.
Lars Ingebrigtsen [Sun, 4 Oct 2020 14:32:16 +0000 (16:32 +0200)]
Make update-file-autoloads respect generated-autoload-file
* lisp/emacs-lisp/autoload.el (update-file-autoloads): Make
update-file-autoloads respect `generated-autoload-file', as
documented.
Eli Zaretskii [Sat, 3 Oct 2020 17:49:18 +0000 (20:49 +0300)]
Avoid segfaults in lookup_image when faces were freed
* src/image.c (lookup_image): Make sure the frame's face cache
exists and has at least the basic faces. If FACE_ID is not a
basic face, and is no longer cached, fall back on the 'default'
face. (Bug#43700)
Mauro Aranda [Sat, 3 Oct 2020 17:31:50 +0000 (19:31 +0200)]
Support extended menus in widget-choose
* doc/misc/widget.texi (Utilities): Document widget-choose.
* etc/NEWS: Document the feature (bug#4787).
* lisp/wid-edit.el (widget--simplify-menu): New function, to convert
extended menus into simplified menus when using the menu to prompt
through the minibuffer.
(widget-choose): Accept a keymap menu. When not using x-popup-menu,
simplify the menu with widget--simplify-menu. Document the changes in
the docstring.
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>
Stefan Kangas [Fri, 2 Oct 2020 16:02:51 +0000 (18:02 +0200)]
; Fix more typos
Stefan Kangas [Fri, 2 Oct 2020 15:56:41 +0000 (17:56 +0200)]
; Fix trivial typos in ChangeLogs