]> git.eshelyaron.com Git - emacs.git/log
emacs.git
2 years agoAvoid having gud bug out if `C-x C-a' has been bound
Lars Ingebrigtsen [Sat, 4 Dec 2021 20:44:58 +0000 (21:44 +0100)]
Avoid having gud bug out if `C-x C-a' has been bound

* lisp/progmodes/gdb-mi.el (gud-global-map): Use gud-global-map.
* lisp/progmodes/gud.el (gud-global-map): Define a map instead of
assuming that `C-x C-a' is undefined (bug#6035).
(gud-def): Use the map.

2 years agoDon't swallow gnus-search errors when creating nnselect groups
Eric Abrahamsen [Sat, 4 Dec 2021 21:41:23 +0000 (13:41 -0800)]
Don't swallow gnus-search errors when creating nnselect groups

* lisp/gnus/gnus-search.el (gnus-search-run-query): Modify
condition-case to re-signal any gnus-search related errors; the user
should see them.
(gnus-search-error): Define a new parent error for all gnus-search
errors.

2 years ago* lisp/isearch.el (isearch-delete-char): Reopen hidden overlays (bug#52248).
Juri Linkov [Sat, 4 Dec 2021 20:04:37 +0000 (22:04 +0200)]
* lisp/isearch.el (isearch-delete-char): Reopen hidden overlays (bug#52248).

(isearch-filter-visible): Move text-property-not-all higher
to not call isearch-range-invisible on inhibit-isearch text.
Remove min/max since arguments are always in the right order.

2 years agoFix pixel-fill--fill-line infloop for certain unbreakable lines
Lars Ingebrigtsen [Sat, 4 Dec 2021 19:38:22 +0000 (20:38 +0100)]
Fix pixel-fill--fill-line infloop for certain unbreakable lines

* lisp/textmodes/pixel-fill.el (pixel-fill--fill-line): Fix
infloops for certain line widths (bug#52271).

2 years agoAdd a comma between groups in gnus-inews-insert-gcc
Lars Ingebrigtsen [Sat, 4 Dec 2021 19:22:44 +0000 (20:22 +0100)]
Add a comma between groups in gnus-inews-insert-gcc

* lisp/gnus/gnus-msg.el (gnus-inews-insert-gcc): Insert a comma
between group names to get more mail-like syntax (bug#52274).

2 years agoImprove bookmark-maybe-historicize-string doc string
Lars Ingebrigtsen [Sat, 4 Dec 2021 04:56:32 +0000 (05:56 +0100)]
Improve bookmark-maybe-historicize-string doc string

* lisp/bookmark.el (bookmark-maybe-historicize-string): Clarify
that this isn't about menus (but calls from bmenu) (bug#12504).

2 years agoAdd ".crate" to Tramp archive file suffixes.
Michael Albinus [Sat, 4 Dec 2021 19:02:07 +0000 (20:02 +0100)]
Add ".crate" to Tramp archive file suffixes.

* doc/misc/tramp.texi (Archive file names):
* lisp/net/tramp-archive.el (tramp-archive-suffixes): Add ".crate".

2 years agoeieio-core.el: Allow assignment to cl-structs through `slot-value`
Stefan Monnier [Sat, 4 Dec 2021 18:47:19 +0000 (13:47 -0500)]
eieio-core.el: Allow assignment to cl-structs through `slot-value`

* lisp/emacs-lisp/eieio-core.el (eieio--validate-slot-value):
Obey the `:read-only` property of the slot.
(eieio-oset): Allow use on cl-structs as well.
(eieio-read-only): New error.

* test/lisp/emacs-lisp/eieio-tests/eieio-tests.el (eieio-test--struct):
Make the last field read-only.
(eieio-test-defstruct-slot-value): Test that cl-struct slots can be
assigned via `slot-value`.

2 years agoFix (date-to-time "2021-12-04")
Paul Eggert [Sat, 4 Dec 2021 18:33:32 +0000 (10:33 -0800)]
Fix (date-to-time "2021-12-04")

This should complete the fix for Bug#52209.
* lisp/calendar/time-date.el (date-to-time): Apply
decoded-time-set-defaults only to the output of (parse-time-string
date), and only when the output has a year (to avoid confusion
when dates lack years).  There is no point applying it after
timezone-make-date-arpa-standard since the latter fills in all the
blanks.  And the former code mistakenly called encode-time on an
already-encoded time.  This goes back to the code a couple of days
ago, except with changed behavior (to fix Bug#52209) only when
timezone-make-date-arpa-standard is not called.
* test/lisp/calendar/time-date-tests.el (test-date-to-time)
(test-days-between): New tests.

2 years agoFurther changes on directory summary line in Tramp
Michael Albinus [Sat, 4 Dec 2021 17:43:45 +0000 (18:43 +0100)]
Further changes on directory summary line in Tramp

* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-system-info):
Do not assume 0 in case of missing information.

* lisp/net/tramp-sh.el (tramp-sh-handle-insert-directory):
* lisp/net/tramp-smb.el (tramp-smb-handle-insert-directory):
Revert previous change, it doesn't fly.

2 years agoSilence byte-compiler in some tests
Stefan Kangas [Sat, 4 Dec 2021 14:49:42 +0000 (15:49 +0100)]
Silence byte-compiler in some tests

* test/lisp/dired-tests.el:
* test/lisp/emacs-lisp/cl-macs-tests.el:
* test/lisp/emacs-lisp/derived-tests.el:
* test/lisp/emacs-lisp/eieio-tests/eieio-tests.el:
* test/lisp/emacs-lisp/generator-tests.el:
* test/lisp/emacs-lisp/lisp-tests.el:
* test/lisp/emacs-lisp/seq-tests.el (test-seq-let)
(test-seq-setq):
* test/lisp/emacs-lisp/subr-x-tests.el (subr-x-test-if-let*-false)
(subr-x-test-if-let*-and-laziness-is-preserved)
(subr-x-test-when-let*-false)
(subr-x-test-when-let*-and-laziness-is-preserved):
* test/lisp/emacs-lisp/timer-tests.el
(timer-tests-debug-timer-check):
* test/lisp/format-spec-tests.el (format-spec-do-flags-truncate)
(format-spec-do-flags-pad):
* test/lisp/ls-lisp-tests.el (ls-lisp-test-bug27762):
* test/lisp/obsolete/cl-tests.el (labels-function-quoting):
* test/lisp/progmodes/elisp-mode-tests.el:
* test/lisp/replace-tests.el (replace-regexp-bug45973):
* test/lisp/ses-tests.el:
* test/lisp/subr-tests.el:
* test/lisp/tar-mode-tests.el (tar-mode-test-tar-grind-file-mode):
* test/src/data-tests.el (data-tests--set-default-per-buffer):
* test/src/search-tests.el
(test-replace-match-modification-hooks): Silence byte-compiler.

2 years agoFix the MinGW build broken by recent changes in image.c
Eli Zaretskii [Sat, 4 Dec 2021 11:42:25 +0000 (13:42 +0200)]
Fix the MinGW build broken by recent changes in image.c

* src/image.c (rsvg_handle_get_intrinsic_size_in_pixels)
[WINDOWSNT]: Fix prototype.  (Bug#44655)

2 years ago; Fix removal of obsolete newsticker function
Stefan Kangas [Sat, 4 Dec 2021 11:22:58 +0000 (12:22 +0100)]
; Fix removal of obsolete newsticker function

* lisp/net/newst-plainview.el (newsticker-close-buffer)
(newsticker-mark-all-items-of-feed-as-read)
(newsticker-mark-all-items-as-read): Use 'newsticker--cache-save'
instead of removed obsolete function 'newsticker--cache-update'.
* etc/NEWS: Don't mention obsolete internal variables.

2 years agoMake use of Trash on macOS (bug#21340)
Alan Third [Fri, 3 Dec 2021 22:17:45 +0000 (22:17 +0000)]
Make use of Trash on macOS (bug#21340)

* src/nsfns.m (Fsystem_move_file_to_trash): New function.

2 years ago; Silence byte-compiler warning in test
Stefan Kangas [Sat, 4 Dec 2021 10:33:43 +0000 (11:33 +0100)]
; Silence byte-compiler warning in test

* test/lisp/dired-aux-tests.el (dired-test-bug28834): Silence
byte-compiler.

2 years agoYet another place inside redisplay_window to prevent quitting
Eli Zaretskii [Sat, 4 Dec 2021 08:37:40 +0000 (10:37 +0200)]
Yet another place inside redisplay_window to prevent quitting

* src/xdisp.c (handle_single_display_spec): Inhibit quitting
around the call to 'lookup_derived_face' (which can QUIT).
(Bug#44448)

2 years agoFix dependencies for files in the 'nt' subdirectory
Eli Zaretskii [Sat, 4 Dec 2021 07:07:12 +0000 (09:07 +0200)]
Fix dependencies for files in the 'nt' subdirectory

* Makefile.in ($(NTDIR)): If non-empty, depend on 'lib'.  That's
because some files in nt/ include generated Gnulib headers.

2 years agoMake precision pixel scrolling work in an hscrolled window
Po Lu [Sat, 4 Dec 2021 06:01:59 +0000 (14:01 +0800)]
Make precision pixel scrolling work in an hscrolled window

* lisp/pixel-scroll.el
(pixel-scroll-precision-scroll-down-page)
(pixel-scroll-precision-scroll-up-page): Use beginning of visual
line as window start if hscrolled.
(pixel-scroll-precision): Don't delegate to mwheel-scroll if
window is hscrolled.

2 years agoMerge from origin/emacs-28
Stefan Kangas [Sat, 4 Dec 2021 05:30:32 +0000 (06:30 +0100)]
Merge from origin/emacs-28

745a732ae4 ; Further author fixes in authors.el
bef17bca21 * src/dosfns.c (Fint86): Doc fix; don't use obsolete names.
bc55dc04af * doc/misc/erc.texi (Keystroke Summary): Fix doc for TAB.
ef4d216eb3 Remove reference to variable obsolete since 24.1
7282e492d5 * doc/misc/efaq.texi (New in Emacs 28): New node.
eafcccd38f ; FAQ: Normalize references to the NEWS.NN file
c006c490eb ; * doc/misc/efaq.texi (Latest version of Emacs): Update v...
9fbc4fa0e7 Add Tramp version integrated in Emacs 28.1

2 years ago; Merge from origin/emacs-28
Stefan Kangas [Sat, 4 Dec 2021 05:30:32 +0000 (06:30 +0100)]
; Merge from origin/emacs-28

The following commit was skipped:

1dfcac6e10 Update Tramp version (don't merge with master)

2 years agoMerge from origin/emacs-28
Stefan Kangas [Sat, 4 Dec 2021 05:30:32 +0000 (06:30 +0100)]
Merge from origin/emacs-28

5d6f828799 Unbreak build after 9c222b9c1a7f91497a37567b4d7de3a511fff069.

2 years ago* lisp/minibuffer.el: Don't return a boundary outside its arg
Stefan Monnier [Sat, 4 Dec 2021 05:02:01 +0000 (00:02 -0500)]
* lisp/minibuffer.el: Don't return a boundary outside its arg

* lisp/minibuffer.el (completion-table-subvert): Fix out of string
start boundary for the odd case where `string` is shorter than `s1`.

2 years agoMake the error message in epa-display-error more helpful
Lars Ingebrigtsen [Sat, 4 Dec 2021 04:39:25 +0000 (05:39 +0100)]
Make the error message in epa-display-error more helpful

* lisp/epa.el (epa-display-error): Output a more helpful error
message when reading a keyring file (bug#12923).

2 years agoFix keymap-lookup implementation
Lars Ingebrigtsen [Sat, 4 Dec 2021 04:24:54 +0000 (05:24 +0100)]
Fix keymap-lookup implementation

* lisp/keymap.el (keymap-lookup): Make this actually work for
looking up keys.

2 years agoFix highlighting of "Exit*" phrases in f90-mode
Lars Ingebrigtsen [Sat, 4 Dec 2021 04:07:41 +0000 (05:07 +0100)]
Fix highlighting of "Exit*" phrases in f90-mode

* lisp/progmodes/f90.el (f90-font-lock-keywords-2): Don't
highlight phrases that start with "Exit" as an exit statement
(bug#14442).

2 years agoMake `mouse-1' restart the cua-rect rectangle
Lars Ingebrigtsen [Sat, 4 Dec 2021 03:06:27 +0000 (04:06 +0100)]
Make `mouse-1' restart the cua-rect rectangle

* lisp/emulation/cua-rect.el (cua-mouse-set-rectangle-mark):
Restart the rectangle on mouse-1 (bug#51557).

2 years agoMake last change work for deltas that are multiples of max-height
Po Lu [Sat, 4 Dec 2021 01:43:44 +0000 (09:43 +0800)]
Make last change work for deltas that are multiples of max-height

* lisp/pixel-scroll.el (pixel-scroll-precision-scroll-down-page)
(pixel-scroll-precision-scroll-up-page): Use `max-height' that
is slightly less than the text height of the window.

2 years agoMake it work to pixel scroll by deltas larger than the window
Po Lu [Sat, 4 Dec 2021 01:09:28 +0000 (09:09 +0800)]
Make it work to pixel scroll by deltas larger than the window

* lisp/pixel-scroll.el
(pixel-scroll-precision-scroll-down-page):
(pixel-scroll-precision-scroll-up-page): New functions.

(pixel-scroll-precision-scroll-up)
(pixel-scroll-precision-scroll-down): Make it safe to scroll
by deltas larger than the current window.

2 years ago; Further author fixes in authors.el
Stefan Kangas [Sat, 4 Dec 2021 00:11:01 +0000 (01:11 +0100)]
; Further author fixes in authors.el

* admin/authors.el (authors-aliases): Add some missing entries.
* etc/AUTHORS: Update accordingly.

2 years ago* src/dosfns.c (Fint86): Doc fix; don't use obsolete names.
Stefan Kangas [Sat, 4 Dec 2021 00:00:04 +0000 (01:00 +0100)]
* src/dosfns.c (Fint86): Doc fix; don't use obsolete names.

2 years ago* doc/misc/erc.texi (Keystroke Summary): Fix doc for TAB.
Stefan Kangas [Fri, 3 Dec 2021 21:57:48 +0000 (22:57 +0100)]
* doc/misc/erc.texi (Keystroke Summary): Fix doc for TAB.

2 years agoEnsure that MAIN_FIRST have finished compilation before doing the rest
Lars Ingebrigtsen [Fri, 3 Dec 2021 21:21:41 +0000 (22:21 +0100)]
Ensure that MAIN_FIRST have finished compilation before doing the rest

* lisp/Makefile.in (main-first): Ensure that we're done with the
main bits before starting on the rest.
(GREP_OPTIONS): Depend on main-first.
(MAIN_FIRST): Compile cconv.el before c-by.el (bug#8764).

2 years agoPort to Tiny C on x86-64
Paul Eggert [Fri, 3 Dec 2021 21:05:31 +0000 (13:05 -0800)]
Port to Tiny C on x86-64

This allows Emacs to build on Ubuntu 21.10 x86-64 with
‘./configure --without-modules CC=tcc’.
* configure.ac (GC_SETJMP_WORKS):
Accept __x86_64__ as an alias for __amd64__.
* src/lisp.h (alignas): Provide a no-op substitute.

2 years agoRevert "emacs-lisp-mode: Use error face for "/d" indicator"
Eli Zaretskii [Fri, 3 Dec 2021 19:55:10 +0000 (21:55 +0200)]
Revert "emacs-lisp-mode: Use error face for "/d" indicator"

This reverts commit ddc875d9f75bdd1d5dda6a721489f43317b0f8b5.

I disagree with the need to make it more prominent than the
warning face.  The warning face is prominent enough.  We
never decided to annoy people like that.

2 years agoAdd more dired-x tests
Eli Zaretskii [Fri, 3 Dec 2021 19:52:49 +0000 (21:52 +0200)]
Add more dired-x tests

* test/lisp/dired-x-tests.el (dired-x--string-to-number): Add more
tests with various thousands separators.

2 years ago; * etc/NEWS: Move incompatible changes into a separate section.
Eli Zaretskii [Fri, 3 Dec 2021 19:44:26 +0000 (21:44 +0200)]
; * etc/NEWS: Move incompatible changes into a separate section.

2 years agoRemove reference to variable obsolete since 24.1
Stefan Kangas [Fri, 3 Dec 2021 19:41:38 +0000 (20:41 +0100)]
Remove reference to variable obsolete since 24.1

* doc/emacs/custom.texi (Minibuffer Maps, Minibuffer Maps): Remove
reference to variable 'minibuffer-local-filename-must-match-map',
obsolete since 24.1.

2 years agoRemove some more items obsolete since Emacs 23
Stefan Kangas [Fri, 3 Dec 2021 18:53:46 +0000 (19:53 +0100)]
Remove some more items obsolete since Emacs 23

* lisp/emacs-lisp/shadow.el (find-emacs-lisp-shadows):
* lisp/net/newst-backend.el (newsticker-cache-filename)
(newsticker--cache-save-version1, newsticker--cache-update)
(newsticker--cache-read-version1):
* lisp/obsolete/vc-arch.el (vc-arch-command): Remove items
obsolete since Emacs 23.

2 years agoRemove two functions obsolete since Emacs 23
Stefan Kangas [Fri, 3 Dec 2021 18:25:59 +0000 (19:25 +0100)]
Remove two functions obsolete since Emacs 23

* lisp/international/mule-cmds.el (unify-8859-on-encoding-mode)
(unify-8859-on-decoding-mode): Remove functions obsolete since
Emacs 23.
* lisp/nxml/xsd-regexp.el: Doc fix.

2 years agoPrefer rsvg_handle_get_intrinsic_size_in_pixels
Paul Eggert [Fri, 3 Dec 2021 17:47:22 +0000 (09:47 -0800)]
Prefer rsvg_handle_get_intrinsic_size_in_pixels

Use rsvg_handle_get_intrinsic_size_in_pixels if available,
as this is simpler and better than what we were doing.
From a comment by by Alan Third (Bug#44655#56).
* src/image.c (init_svg_functions): Arrange for the new function.
(svg_load_image): Prefer the results of
rsvg_handle_get_intrinsic_size_in_pixels if available.

2 years agoImprove overflow checking in svg_load_image
Paul Eggert [Fri, 3 Dec 2021 17:47:22 +0000 (09:47 -0800)]
Improve overflow checking in svg_load_image

* src/image.c: Include math.h, for lrint.
(scale_image_size, compute_image_size): Use ‘double’, not ‘int’
for image size args, since librsvg uses ‘double’ for pixel counts.
(scale_image_size): Use ceil instead of rounding, to avoid
discarding fractional SVG pixels.  Divisor and multiplier are now
double instead of int, for better portability to librsvg
functions with fractional pixel sizes.
(image_get_dimension, compute_image_size, svg_load_image):
Be more careful about ignoring, rejecting or clipping scale
factors or sizes that are out of integer range.
(compute_image_size): Don’t bother to calculate :max-width if
:width is specified, and likewise for :max-height and :height.

2 years agoSimplify svg_load_image
Paul Eggert [Fri, 3 Dec 2021 17:47:22 +0000 (09:47 -0800)]
Simplify svg_load_image

* src/image.c (svg_load_image): Simplify slightly.

2 years agoMore-robust svg_load_image fallback
Paul Eggert [Fri, 3 Dec 2021 17:47:22 +0000 (09:47 -0800)]
More-robust svg_load_image fallback

Suggested by Alan Third (Bug#44655#56).
* src/image.c (svg_load_image): Fall back on
rsvg_handle_get_geometry_for_layer if the
rsvg_handle_get_intrinsic_dimensions computations yielded unusable
viewbox width and height, instead of falling back only if
rsvg_handle_get_intrinsic_dimensions did not report image width
and height, or did not report a viewbox.

2 years agoUse gnus-message instead of plain message in gnus-search
Eric Abrahamsen [Fri, 3 Dec 2021 17:19:31 +0000 (09:19 -0800)]
Use gnus-message instead of plain message in gnus-search

bug#51778

* lisp/gnus/gnus-search.el: All messaging should be done via
`gnus-message'.

2 years agoAdd a docstring to `iso-transl-set-language'
Tor Kringeland [Fri, 3 Dec 2021 17:09:07 +0000 (18:09 +0100)]
Add a docstring to `iso-transl-set-language'

* lisp/international/iso-transl.el: Document
`iso-transl-set-language' (bug#52261).
Copyright-paperwork-exempt: yes

2 years agoMove 'C-x 8 .' to 'C-x 8 . .'
Lars Ingebrigtsen [Fri, 3 Dec 2021 16:43:02 +0000 (17:43 +0100)]
Move 'C-x 8 .' to 'C-x 8 . .'

* lisp/international/iso-transl.el (iso-transl-char-map): Move
'C-x 8 .' to 'C-x 8 . .' and add ż.

2 years agoAdd support for some Polish characters with `C-x 8'
Tor Kringeland [Fri, 3 Dec 2021 16:40:14 +0000 (17:40 +0100)]
Add support for some Polish characters with `C-x 8'

* lisp/international/iso-transl.el: Add support for some Polish
characters (bug#52173).
Copyright-paperwork-exempt: yes

2 years agoFix regression introduced by the previous date-to-time change
Katsumi Yamaoka [Fri, 3 Dec 2021 16:28:48 +0000 (17:28 +0100)]
Fix regression introduced by the previous date-to-time change

* lisp/calendar/time-date.el (date-to-time): The function needs to
test if `parse-time-string' returns a valid data as the old
version did it with the help of `encode-time' (bug#52209).

2 years agoClarify the run-at-time documentation about "integral multiple"
Lars Ingebrigtsen [Fri, 3 Dec 2021 16:22:54 +0000 (17:22 +0100)]
Clarify the run-at-time documentation about "integral multiple"

* lisp/emacs-lisp/timer.el (run-at-time):
* doc/lispref/os.texi (Timers): Explain what "integral multiple"
really means.

2 years agoRemove separators at the beginning and end of the context menu
Jim Porter [Fri, 3 Dec 2021 16:10:10 +0000 (17:10 +0100)]
Remove separators at the beginning and end of the context menu

* lisp/mouse.el (context-menu-map): Remove beginning/end
seperators (bug#52237).

2 years agoImprove how dired-mark-sexp interprets file sizes in non-C locales
Lars Ingebrigtsen [Fri, 3 Dec 2021 16:01:30 +0000 (17:01 +0100)]
Improve how dired-mark-sexp interprets file sizes in non-C locales

* lisp/dired-x.el (dired-x--string-to-number): Try to understand
localised numbers (with "." separators or the like) (bug#23373).

2 years ago; Minor cleanup in re-builder after my last commit
Stefan Kangas [Fri, 3 Dec 2021 16:18:33 +0000 (17:18 +0100)]
; Minor cleanup in re-builder after my last commit

* lisp/emacs-lisp/re-builder.el (reb-lisp-mode, reb-cook-regexp):
Very minor cleanup (by popular demand).

2 years agoemacs-lisp-mode: Use error face for "/d" indicator
Stefan Kangas [Fri, 3 Dec 2021 15:55:27 +0000 (16:55 +0100)]
emacs-lisp-mode: Use error face for "/d" indicator

* lisp/progmodes/elisp-mode.el (emacs-lisp-mode): Use 'error' face for
the dynamic scoping ("/d") indicator in the mode line to make it stand
out more.

2 years agoDon't support obsolete sregex syntax in re-builder
Stefan Kangas [Fri, 3 Dec 2021 15:42:24 +0000 (16:42 +0100)]
Don't support obsolete sregex syntax in re-builder

* lisp/emacs-lisp/re-builder.el (reb-lisp-mode)
(reb-lisp-syntax-p, reb-change-syntax, reb-cook-regexp): Remove final
remaining references to the long obsolete sregex syntax.

2 years ago* doc/misc/efaq.texi (New in Emacs 28): New node.
Stefan Kangas [Fri, 3 Dec 2021 15:25:17 +0000 (16:25 +0100)]
* doc/misc/efaq.texi (New in Emacs 28): New node.

2 years ago; FAQ: Normalize references to the NEWS.NN file
Stefan Kangas [Fri, 3 Dec 2021 14:57:56 +0000 (15:57 +0100)]
; FAQ: Normalize references to the NEWS.NN file

* doc/misc/efaq.texi (New in Emacs 26, New in Emacs 25)
(New in Emacs 24, New in Emacs 23, New in Emacs 22)
(New in Emacs 21, New in Emacs 20): Normalize the format for
referring to the NEWS.NN file.

2 years ago; * doc/misc/efaq.texi (Latest version of Emacs): Update version.
Stefan Kangas [Fri, 3 Dec 2021 14:52:02 +0000 (15:52 +0100)]
; * doc/misc/efaq.texi (Latest version of Emacs): Update version.

2 years agoFix typo in NEWS about 'write-file'
Lars Ingebrigtsen [Fri, 3 Dec 2021 15:28:29 +0000 (16:28 +0100)]
Fix typo in NEWS about 'write-file'

2 years agoFix dired--insert-disk-space
Michael Albinus [Fri, 3 Dec 2021 14:50:09 +0000 (15:50 +0100)]
Fix dired--insert-disk-space

* lisp/dired.el (dired--insert-disk-space): Handle case
`get-free-disk-space' returns nil.

2 years ago* lisp/image.el (image): Add :prefix and :link.
Stefan Kangas [Fri, 3 Dec 2021 14:19:26 +0000 (15:19 +0100)]
* lisp/image.el (image): Add :prefix and :link.

2 years agoimage-mode: Advertize viewing as text less eagerly
Stefan Kangas [Fri, 3 Dec 2021 14:13:32 +0000 (15:13 +0100)]
image-mode: Advertize viewing as text less eagerly

* lisp/image-mode.el (image-text-based-formats): New defcustom.
(image-mode--setup-mode): Don't show message to show image as text
unless it is a text based image format.  Don't mention key binding
for editing as hex.  (Bug#51961)
(image-mode-as-text): Don't mention key binding for editing as hex.
(image-mode-as-hex): Minor cleanup.

2 years ago; * lisp/image-mode.el (image-mode): Minor doc fix.
Stefan Kangas [Fri, 3 Dec 2021 13:34:19 +0000 (14:34 +0100)]
; * lisp/image-mode.el (image-mode): Minor doc fix.

2 years ago* lisp/emacs-lisp/cl-macs.el (natnum): Fix typo
Stefan Monnier [Fri, 3 Dec 2021 14:07:37 +0000 (09:07 -0500)]
* lisp/emacs-lisp/cl-macs.el (natnum): Fix typo

2 years ago* lisp/emacs-lisp/cl-macs.el (natnum): Define it as a type
Stefan Monnier [Fri, 3 Dec 2021 13:56:52 +0000 (08:56 -0500)]
* lisp/emacs-lisp/cl-macs.el (natnum): Define it as a type

2 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Michael Albinus [Fri, 3 Dec 2021 13:24:49 +0000 (14:24 +0100)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs

2 years agoAdapt directory summary line handling in Tramp
Michael Albinus [Fri, 3 Dec 2021 13:24:43 +0000 (14:24 +0100)]
Adapt directory summary line handling in Tramp

* lisp/net/tramp-sh.el (tramp-sh-handle-insert-directory):
* lisp/net/tramp-smb.el (tramp-smb-handle-insert-directory):
Do not add or modify summary line when `dired-free-space' is bound.

2 years agoAdd Tramp version integrated in Emacs 28.1
Michael Albinus [Fri, 3 Dec 2021 12:51:19 +0000 (13:51 +0100)]
Add Tramp version integrated in Emacs 28.1

* lisp/net/trampver.el (customize-package-emacs-version-alist):
Add Tramp version integrated in Emacs 28.1.

2 years agoUpdate Tramp version (don't merge with master)
Michael Albinus [Fri, 3 Dec 2021 12:43:46 +0000 (13:43 +0100)]
Update Tramp version (don't merge with master)

* doc/misc/trampver.texi:
* lisp/net/trampver.el: Change version to "2.5.2.28.1".

2 years agoUnbreak build after 9c222b9c1a7f91497a37567b4d7de3a511fff069.
Philipp Stephani [Fri, 3 Dec 2021 08:40:15 +0000 (09:40 +0100)]
Unbreak build after 9c222b9c1a7f91497a37567b4d7de3a511fff069.

* src/pdumper.c (dump_subr): Fix Lisp_Subr hash value.

2 years agoRevert "Support display of non-ASCII characters with aligned columns"
Eli Zaretskii [Fri, 3 Dec 2021 08:02:46 +0000 (10:02 +0200)]
Revert "Support display of non-ASCII characters with aligned columns"

This reverts commit 608267c71e11da9c757c269a5e22e62ef04d0bfe.

2 years agoSend scroll stop events to xwidgets when built with XInput 2
Po Lu [Fri, 3 Dec 2021 06:31:20 +0000 (14:31 +0800)]
Send scroll stop events to xwidgets when built with XInput 2

* src/xwidget.c (xwidget_scroll): Set xg_event->scroll.is_stop
when appropriate.

2 years agoImprove velocity calculation in momentum scrolling
Po Lu [Fri, 3 Dec 2021 05:55:39 +0000 (13:55 +0800)]
Improve velocity calculation in momentum scrolling

* lisp/pixel-scroll.el
(pixel-scroll-precision-momentum-factor): Remove option.
(pixel-scroll-precision-initial-velocity-factor)
(pixel-scroll-precision-momentum-min-velocity): New user
options.
(pixel-scroll-accumulate-velocity): Clear velocity ring
if sign is different.
(pixel-scroll-calculate-velocity): Use current time.
(pixel-scroll-start-momentum): Use better algorithm.

2 years agoMerge from origin/emacs-28
Stefan Kangas [Fri, 3 Dec 2021 05:30:26 +0000 (06:30 +0100)]
Merge from origin/emacs-28

9c222b9c1a Port to C compilers that lack size-0 arrays
fed35a8951 Port emacsclient to Solaris 10
f35d6a9c73 * CONTRIBUTE: Improve commit message instructions
e0ee1d003a Work around IBM XL C compiler bug
6b99b6eb8b * admin/make-tarball.txt: Various clarifications.
bbf4140091 * admin/diff-tar-files: Don't assume .tar.gz.
0a50ad11db * lisp/tab-bar.el (tab-bar-close-other-tabs): Fix regression.

2 years agoPort to C compilers that lack size-0 arrays
Paul Eggert [Fri, 3 Dec 2021 03:01:33 +0000 (19:01 -0800)]
Port to C compilers that lack size-0 arrays

The C standard does not allow size-zero arrays, so redo struct
Lisp_Subr to not use size-zero arrays when native compilation is
not being used.  Formerly, the code was using size-zero arrays (a
GNU C extension) to avoid using memory unnecessarily when
HAVE_NATIVE_COMP is not defined.  Replace this hack with the
more-traditional hack of putting the relevant members inside
‘#ifdef HAVE_NATIVE_COMP’.
* src/alloc.c (cleanup_vector, mark_object):
* src/comp.c (make_subr):
* src/data.c (Fsubr_native_lambda_list, Fsubr_native_comp_unit):
* src/eval.c (init_eval_once, funcall_lambda):
* src/lisp.h (SUBR_NATIVE_COMPILEDP, SUBR_NATIVE_COMPILED_DYNP)
(SUBR_TYPE):
* src/lread.c (Fload):
Conditionally compile with ‘#ifdef HAVE_NATIVE_COMP’ instead of
with ‘if (NATIVE_COMP_FLAG)’.  Redo members like native_comp_u[0]
to be plain native_comp_u.  Put all uses of these members inside
‘#ifdef HAVE_NATIVE_COMP’.
* src/lisp.h (struct Lisp_Subr): Members native_comp_u,
native_c_name, lambda_list, type are now all ifdeffed out if
HAVE_NATIVE_COMP is not defined, instead of being size-zero
arrays.  All uses changed.
* src/pdumper.c (dump_subr, dump_cold_native_subr)
(dump_do_dump_relocation):
* src/comp.h (NATIVE_COMP_FLAG): Remove; no longer needed.

2 years agoPort emacsclient to Solaris 10
Paul Eggert [Fri, 3 Dec 2021 02:43:43 +0000 (18:43 -0800)]
Port emacsclient to Solaris 10

Without this patch, the build fails on Solaris 10 with the diagnostic
“Undefined symbol acl_trivial first referenced in file
../lib/libgnu.a(file-has-acl.o)”.
* lib-src/Makefile.in (LIB_HAS_ACL): New macro.
(emacsclient${EXEEXT}): Link with $(LIB_HAS_ACL).

2 years ago* CONTRIBUTE: Improve commit message instructions
Karl Fogel [Fri, 3 Dec 2021 02:38:25 +0000 (20:38 -0600)]
* CONTRIBUTE: Improve commit message instructions

2 years agoWork around IBM XL C compiler bug
Paul Eggert [Fri, 3 Dec 2021 02:18:39 +0000 (18:18 -0800)]
Work around IBM XL C compiler bug

* src/fileio.c (Fcopy_file): Work around a compiler bug in IBM XL
C for AIX, V12.1 (5765-J02, 5725-C72).  Without this patch, the
compiler incorrectly complains “Initialization between types "int"
and "struct timespec" is not allowed” and “Initialization between
types "long" and "struct timespec" is not allowed”.

2 years agoMake momentum scrolling much nicer
Po Lu [Fri, 3 Dec 2021 02:12:29 +0000 (10:12 +0800)]
Make momentum scrolling much nicer

* lisp/pixel-scroll.el (pixel-scroll-precision-momentum-tick):
Set default value to 0.01.
(pixel-scroll-precision-momentum-seconds): New user option.
(pixel-scroll-start-momentum): Improvements to momentum
algorithm.

2 years ago* lisp/pixel-scroll.el (pixel-scroll-start-momentum): Fix algorithm.
Po Lu [Fri, 3 Dec 2021 00:59:24 +0000 (08:59 +0800)]
* lisp/pixel-scroll.el (pixel-scroll-start-momentum): Fix algorithm.

2 years ago* admin/make-tarball.txt: Various clarifications.
Stefan Kangas [Thu, 2 Dec 2021 22:57:23 +0000 (23:57 +0100)]
* admin/make-tarball.txt: Various clarifications.

2 years ago* admin/diff-tar-files: Don't assume .tar.gz.
Stefan Kangas [Thu, 2 Dec 2021 22:51:35 +0000 (23:51 +0100)]
* admin/diff-tar-files: Don't assume .tar.gz.

2 years ago* etc/NEWS: Mention change in `insert-directory' derivates. Fix typos.
Michael Albinus [Thu, 2 Dec 2021 18:31:43 +0000 (19:31 +0100)]
* etc/NEWS: Mention change in `insert-directory' derivates.  Fix typos.

2 years ago* lisp/tab-bar.el (tab-bar-close-other-tabs): Fix regression.
Juri Linkov [Thu, 2 Dec 2021 18:12:05 +0000 (20:12 +0200)]
* lisp/tab-bar.el (tab-bar-close-other-tabs): Fix regression.

* test/lisp/tab-bar-tests.el: New file.
(tab-bar-tests-close-other-tabs-with-arg): Test for regression
that closed the selected tab after selecting it.

2 years ago; * src/xdisp.c (syms_of_xdisp) <align-columns-display>: Doc fix.
Eli Zaretskii [Thu, 2 Dec 2021 17:46:26 +0000 (19:46 +0200)]
; * src/xdisp.c (syms_of_xdisp) <align-columns-display>: Doc fix.

2 years agoSupport display of non-ASCII characters with aligned columns
Eli Zaretskii [Thu, 2 Dec 2021 17:44:46 +0000 (19:44 +0200)]
Support display of non-ASCII characters with aligned columns

* src/xdisp.c (get_normal_width): New function.
(gui_produce_glyphs): Use 'get_normal_width' to widen on display
characters whose width is not an integral multiple of the
"standard" width.
(syms_of_xdisp) <align-columns-display>: New boolean variable.

2 years agoupdate_autogen: Improve error handling slightly
Stefan Kangas [Thu, 2 Dec 2021 17:30:16 +0000 (18:30 +0100)]
update_autogen: Improve error handling slightly

* admin/update_autogen: Check exit status of cd.  Use single
quoting for trap condition.

2 years agoupdate_autogen: Remove unused -H flag
Stefan Kangas [Thu, 2 Dec 2021 17:17:14 +0000 (18:17 +0100)]
update_autogen: Remove unused -H flag

We now update ChangeLog files only when preparing a new release, so
this flag is never used.  Keeping it risks confusing more than it
helps.
* admin/update_autogen: Remove the -H flag as it is no longer used.

2 years ago; update_autogen: Remove -I flag handling completely
Stefan Kangas [Thu, 2 Dec 2021 17:15:41 +0000 (18:15 +0100)]
; update_autogen: Remove -I flag handling completely

* admin/update_autogen: Fix my previous commit to now completely
remove any trace of the -I flag.

2 years agoMerge from origin/emacs-28
Stefan Kangas [Thu, 2 Dec 2021 16:34:10 +0000 (17:34 +0100)]
Merge from origin/emacs-28

f38dfa56a0 ; Update loaddefs files.
b3d4b18507 ; make change-history-commit
334ff0232e * lisp/repeat.el: Use same logic for repeat-check-key and ...
8230a47ecc * lisp/help.el (help--analyze-key): Prefer posn-set-point ...

# Conflicts:
# lisp/ldefs-boot.el

2 years ago; Merge from origin/emacs-28
Stefan Kangas [Thu, 2 Dec 2021 16:34:10 +0000 (17:34 +0100)]
; Merge from origin/emacs-28

The following commit was skipped:

740ae2818f Bump Emacs version to 28.0.90

2 years agoMerge from origin/emacs-28
Stefan Kangas [Thu, 2 Dec 2021 16:34:10 +0000 (17:34 +0100)]
Merge from origin/emacs-28

aa1d7dd867 ; * etc/AUTHORS: Update.
6294e60205 ; * admin/authors.el (authors-aliases): More fixes.
40fc31ea28 ; * ChangeLog.3: Update.
2be090d5d3 ; * ChangeLog.3: Minor fixes.
9963b11bf7 ; * admin/authors.el (authors-aliases): Further updates.
50b40e1d4f ; * lisp/org/ob-julia.el: Fix Author header for authors.el.
84166ea2e6 CC Mode: Recognise "struct foo {" as introducing a type de...

2 years agoFix characters.el build issue
Lars Ingebrigtsen [Thu, 2 Dec 2021 16:33:00 +0000 (17:33 +0100)]
Fix characters.el build issue

* lisp/international/characters.el
(glyphless--bidi-control-characters): Don't use names here,
because it's too early (bug#52240).

2 years agoFix previous macroexp--warn-wrap change
Lars Ingebrigtsen [Thu, 2 Dec 2021 15:47:42 +0000 (16:47 +0100)]
Fix previous macroexp--warn-wrap change

* lisp/emacs-lisp/macroexp.el (macroexp--warn-wrap): Don't call
byte-compile-warning-enabled-p with zero parameters.

2 years ago* lisp/gnus/gnus-art.el (gnus--variable-pitch-p): Don't error out if face nil
Filipp Gunbin [Thu, 2 Dec 2021 13:15:32 +0000 (16:15 +0300)]
* lisp/gnus/gnus-art.el (gnus--variable-pitch-p): Don't error out if face nil

2 years agoMake `C-c C-w' copy the executable bits to the new file
Lars Ingebrigtsen [Thu, 2 Dec 2021 12:21:20 +0000 (13:21 +0100)]
Make `C-c C-w' copy the executable bits to the new file

* lisp/files.el (write-file): When visiting an executable file,
make the new file executable, too (bug#18915).

2 years agoAdd a new variable 'process-error-pause-time'
Lars Ingebrigtsen [Thu, 2 Dec 2021 11:53:59 +0000 (12:53 +0100)]
Add a new variable 'process-error-pause-time'

* doc/lispref/processes.texi (Asynchronous Processes): Document it.
* lisp/cus-start.el (standard): Customize.

* src/process.c (read_process_output_error_handler)
(exec_sentinel_error_handler): Use it.
(syms_of_process): New variable process-error-pause-time (bug#19457).

2 years agoImprove momentum scrolling algorithm
Po Lu [Thu, 2 Dec 2021 11:35:09 +0000 (19:35 +0800)]
Improve momentum scrolling algorithm

* lisp/pixel-scroll.el (pixel-scroll-precision-momentum-tick):
(pixel-scroll-precision-momentum-factor): New user options.

(pixel-scroll-kinetic-state, pixel-scroll-accumulate-velocity):
Set scroll momentum ring size to 10.

(pixel-scroll-start-momentum): Improve algorithm.

2 years agoFix display of free disk space in Dired
Eli Zaretskii [Thu, 2 Dec 2021 11:04:45 +0000 (13:04 +0200)]
Fix display of free disk space in Dired

* lisp/dired.el (dired--insert-disk-space): Fix 'first' display on
MS-Windows.
(dired-free-space): Clarify the meaning of 'first'.

2 years ago; * lisp/dired-x.el (dired-virtual): Doc fix. (Bug#20992)
Eli Zaretskii [Thu, 2 Dec 2021 10:43:51 +0000 (12:43 +0200)]
; * lisp/dired-x.el (dired-virtual): Doc fix.  (Bug#20992)

2 years ago; * lisp/international/characters.el: Fix a typo in last change.
Eli Zaretskii [Thu, 2 Dec 2021 10:34:37 +0000 (12:34 +0200)]
; * lisp/international/characters.el: Fix a typo in last change.