1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00
Commit graph

152375 commits

Author SHA1 Message Date
Lars Ingebrigtsen
f14a4c377d Make package-dir-info more resilient
* lisp/emacs-lisp/package.el (package-dir-info): Check that the
file exists before using it (bug#41489).
2021-12-05 02:13:00 +01:00
Lars Ingebrigtsen
dbadbb5bad Tweak fancy-about-text
* lisp/startup.el (fancy-about-text): Mention that Emacs is an
editor, because people don't know that (bug#43636).
2021-12-05 01:53:31 +01:00
Lars Ingebrigtsen
ab41b1c554 Fill Emacs version on about screen
* lisp/startup.el (fancy-about-text): Fill the Emacs version,
since it's too long these days.
2021-12-05 01:51:12 +01:00
Lars Ingebrigtsen
b3505e31d6 Further gnus-inews-insert-gcc fixes
* lisp/gnus/gnus-msg.el (gnus-inews-insert-gcc): Use a single
comma to separate groups, since that's what the splitter expects
(bug#52274).
2021-12-04 23:47:17 +01:00
Lars Ingebrigtsen
ae415e7971 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.
2021-12-04 22:49:44 +01:00
Eric Abrahamsen
2898566fa0 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.
2021-12-04 13:41:23 -08:00
Juri Linkov
f247fa5d5c * 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.
2021-12-04 22:04:37 +02:00
Lars Ingebrigtsen
08782d58db 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).
2021-12-04 20:38:22 +01:00
Lars Ingebrigtsen
3bfd8e4007 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).
2021-12-04 20:22:44 +01:00
Lars Ingebrigtsen
7505abae39 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).
2021-12-04 20:06:25 +01:00
Michael Albinus
7c5e699b81 Add ".crate" to Tramp archive file suffixes.
* doc/misc/tramp.texi (Archive file names):
* lisp/net/tramp-archive.el (tramp-archive-suffixes): Add ".crate".
2021-12-04 20:02:07 +01:00
Stefan Monnier
de727b5886 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`.
2021-12-04 13:47:35 -05:00
Paul Eggert
63be97fb05 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.
2021-12-04 10:36:07 -08:00
Michael Albinus
7384a329d2 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.
2021-12-04 18:43:45 +01:00
Stefan Kangas
7c68c84674 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.
2021-12-04 15:49:42 +01:00
Eli Zaretskii
aa6681a51a 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)
2021-12-04 13:42:25 +02:00
Stefan Kangas
6d6d2b73d0 ; 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.
2021-12-04 12:26:09 +01:00
Alan Third
796075ef7e Make use of Trash on macOS (bug#21340)
* src/nsfns.m (Fsystem_move_file_to_trash): New function.
2021-12-04 10:44:54 +00:00
Stefan Kangas
16b8741556 ; Silence byte-compiler warning in test
* test/lisp/dired-aux-tests.el (dired-test-bug28834): Silence
byte-compiler.
2021-12-04 11:33:43 +01:00
Eli Zaretskii
3e7aff5fcd 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)
2021-12-04 10:37:40 +02:00
Eli Zaretskii
142e827bc4 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.
2021-12-04 09:07:12 +02:00
Po Lu
fba17b0747 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.
2021-12-04 14:04:04 +08:00
Stefan Kangas
d82cfbc0e9 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
2021-12-04 06:30:32 +01:00
Stefan Kangas
3b514421eb ; Merge from origin/emacs-28
The following commit was skipped:

1dfcac6e10 Update Tramp version (don't merge with master)
2021-12-04 06:30:32 +01:00
Stefan Kangas
ab828569ab Merge from origin/emacs-28
5d6f828799 Unbreak build after 9c222b9c1a.
2021-12-04 06:30:32 +01:00
Stefan Monnier
284cc2491d * 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`.
2021-12-04 00:02:31 -05:00
Lars Ingebrigtsen
644dd2f050 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).
2021-12-04 05:39:25 +01:00
Lars Ingebrigtsen
55ff91e822 Fix keymap-lookup implementation
* lisp/keymap.el (keymap-lookup): Make this actually work for
looking up keys.
2021-12-04 05:24:54 +01:00
Lars Ingebrigtsen
6042417664 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).
2021-12-04 05:07:41 +01:00
Lars Ingebrigtsen
b060c3844f 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).
2021-12-04 04:07:06 +01:00
Po Lu
be1359884f 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.
2021-12-04 09:43:44 +08:00
Po Lu
1450fa16ed 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.
2021-12-04 09:09:28 +08:00
Stefan Kangas
745a732ae4 ; Further author fixes in authors.el
* admin/authors.el (authors-aliases): Add some missing entries.
* etc/AUTHORS: Update accordingly.
2021-12-04 01:34:37 +01:00
Stefan Kangas
bef17bca21 * src/dosfns.c (Fint86): Doc fix; don't use obsolete names. 2021-12-04 01:00:11 +01:00
Stefan Kangas
bc55dc04af * doc/misc/erc.texi (Keystroke Summary): Fix doc for TAB. 2021-12-03 23:01:06 +01:00
Lars Ingebrigtsen
352c737dce 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).
2021-12-03 22:22:31 +01:00
Paul Eggert
1e2bc1bbf4 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.
2021-12-03 13:09:34 -08:00
Eli Zaretskii
397a6a73d7 Revert "emacs-lisp-mode: Use error face for "/d" indicator"
This reverts commit ddc875d9f7.

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.
2021-12-03 21:55:10 +02:00
Eli Zaretskii
c8b72ad0ea Add more dired-x tests
* test/lisp/dired-x-tests.el (dired-x--string-to-number): Add more
tests with various thousands separators.
2021-12-03 21:52:49 +02:00
Eli Zaretskii
7558e83097 ; * etc/NEWS: Move incompatible changes into a separate section. 2021-12-03 21:44:26 +02:00
Stefan Kangas
ef4d216eb3 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.
2021-12-03 20:41:38 +01:00
Stefan Kangas
c082dbbc21 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.
2021-12-03 19:53:46 +01:00
Stefan Kangas
76bbb7e648 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.
2021-12-03 19:27:16 +01:00
Paul Eggert
5586eb463f 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.
2021-12-03 10:25:09 -08:00
Paul Eggert
bcb4651c41 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.
2021-12-03 10:25:09 -08:00
Paul Eggert
02386da938 Simplify svg_load_image
* src/image.c (svg_load_image): Simplify slightly.
2021-12-03 10:25:09 -08:00
Paul Eggert
19ac237c9e 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.
2021-12-03 10:25:09 -08:00
Eric Abrahamsen
c9186b1b0b 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'.
2021-12-03 09:25:19 -08:00
Tor Kringeland
d0997eefea Add a docstring to `iso-transl-set-language'
* lisp/international/iso-transl.el: Document
`iso-transl-set-language' (bug#52261).
Copyright-paperwork-exempt: yes
2021-12-03 18:09:07 +01:00
Lars Ingebrigtsen
d003f70c6f 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 ż.
2021-12-03 17:43:02 +01:00