1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-16 08:10:43 -08:00
Commit graph

152445 commits

Author SHA1 Message Date
Stefan Kangas
a12de96455 ; * etc/tutorials/TUTORIAL.sv: Re-adjust to latest change in TUTORIAL. 2021-12-06 16:11:46 +01:00
Eli Zaretskii
2bd9d7bd0a ; * etc/tutorials/TUTORIAL: Minor wording change in recent addition. 2021-12-06 16:56:30 +02:00
Stefan Monnier
4d93859c87 Merge remote-tracking branch 'origin/emacs-28' into trunk 2021-12-06 09:44:18 -05:00
Stefan Monnier
d529207b0e lisp/minibuffer.el: Fix for bug#52169 regression
* lisp/minibuffer.el (completion-table-subvert): Make sure we return
a boundary that's not outside of the limit of the string.
2021-12-06 09:43:13 -05:00
Stefan Kangas
283db0d703 * etc/tutorials/TUTORIAL.sv: Adjust to latest change in TUTORIAL. 2021-12-06 15:09:51 +01:00
Stefan Kangas
3384efb903 ; * etc/tutorials/TUTORIAL: Fix typo in last commit. 2021-12-06 15:08:09 +01:00
Daniel Fleischer
63c8a6066a Add package management to tutorial and startup screen
* etc/tutorials/TUTORIAL: Add section about package installation.
* lisp/startup.el (fancy-startup-tail): Add button for
package-list-packages.

This was discussed in:
https://lists.gnu.org/r/emacs-devel/2021-12/msg00079.html
2021-12-06 14:59:35 +01:00
Stefan Kangas
2e8d1ad0f2 image.c: Remove some dead code
* src/image.c (gui_put_x_image): Remove dead code, commented out since
2004.
2021-12-06 12:06:35 +01:00
Paul Eggert
c1145c31ad Update org-compat doc string
* lisp/org/org-compat.el (file-attribute-modification-time):
Update doc string to match that of builtin Emacs.
2021-12-05 23:24:10 -08:00
Paul Eggert
a21b8c5d7d Fix minor clock skew issues
* lisp/midnight.el (clean-buffer-list):
* lisp/progmodes/vhdl-mode.el (vhdl-template-replace-header-keywords):
* lisp/net/rcirc.el (rcirc-connect):
Don’t assume that getting the current time twice in rapid
succession will yield the same date and time.
2021-12-05 23:24:10 -08:00
Paul Eggert
19932c3203 Avoid timestamp info loss in mh-alias-tstamp
* lisp/mh-e/mh-alias.el (mh-alias-tstamp):
Don’t lose subsecond info when setting mh-alias-tstamp.
2021-12-05 23:24:10 -08:00
Paul Eggert
dbef2145c7 Simplify by using format-time-string
* lisp/mail/sendmail.el (mail-do-fcc):
* lisp/net/tramp.el (tramp-debug-message):
Prefer format-time-string to doing time formatting by hand.
2021-12-05 23:24:09 -08:00
Paul Eggert
15f20c0bd0 Simplify RFC 5322 time zone generation
* lisp/mail/feedmail.el (feedmail-rfc822-time-zone)
(feedmail-rfc822-date, feedmail-default-message-id-generator):
* lisp/mail/mail-utils.el (mail-rfc822-time-zone, mail-rfc822-date):
* lisp/timezone.el (timezone-make-arpa-date):
Simplify by using format-time-string with %z.

* lisp/mail/feedmail.el (feedmail-rfc822-time-zone):
* lisp/mail/mail-utils.el (mail-rfc822-time-zone):
Mark these should-have-been-internal functions obsolete.
2021-12-05 23:24:09 -08:00
Paul Eggert
186637314d Fix image load timekeeping bug
* lisp/image.el (image-animate-timeout): Fix bug that caused the
local variable time-to-load-image to be practically zero, instead
of the time it actually took to load the image.  I think
this bug was introduced in 2013-02-16T03:29:30Z!rgm@gnu.org.
2021-12-05 23:24:09 -08:00
Paul Eggert
2bda02943b Use time-convert in with-decoded-time-value
* lisp/calendar/time-date.el (with-decoded-time-value):
Prefer time-convert to current-time on the off chance that code
will use this obsolete macro even after current-time returns pairs.
2021-12-05 23:24:09 -08:00
Paul Eggert
084f440571 Simplify message-make-expires
* lisp/gnus/message.el (message-make-expires):
Use time-add instead of doing it by hand.  This also calculates the
expiration time more accurately than the old code did.
2021-12-05 23:24:09 -08:00
Paul Eggert
f4d7ca73e3 Simplify message-unique-id etc.
* lisp/gnus/message.el (message-unique-id):
* lisp/net/sasl.el (sasl-unique-id-function):
Avoid unnecessary consing and reliance on internal timestamp
format by using (time-convert nil 'integer) which typically does
no consing, instead of using (current-time) and then ignoring
the subsecond parts of the generated list.
2021-12-05 23:24:09 -08:00
Paul Eggert
524c42fa0e Prefer nil to (current-time) when either will do
* lisp/emacs-lisp/timer.el (timer-event-handler, run-at-time):
* lisp/gnus/gnus-score.el (gnus-score-date):
* lisp/gnus/gnus-search.el (gnus-search-query-parse-date)
(gnus-search-imap-handle-date):
* lisp/gnus/gnus-sum.el (gnus-user-date)
(gnus-summary-create-article):
* lisp/image-dired.el (image-dired-create-thumb-1):
* lisp/image/gravatar.el (gravatar-retrieve)
(gravatar--prune-cache):
* lisp/net/dbus.el (dbus-monitor-handler):
* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-set-file-times):
* lisp/net/tramp-sh.el (tramp-sh-handle-set-file-times):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-set-file-times):
* test/lisp/autorevert-tests.el (auto-revert--wait-for-revert)
(auto-revert-tests--write-file, auto-revert-test--wait-for):
* test/lisp/net/tramp-tests.el (tramp--test-print-duration):
Prefer nil to (current-time) when either will do, as this avoids
some consing.  Similarly, prefer omitting (current-time) arg
when this is equivalent.
2021-12-05 23:24:08 -08:00
Paul Eggert
af60618945 Simplify cedet-utest-elapsed-time
* test/manual/cedet/cedet-utests.el (cedet-utest-elapsed-time):
Copy newer (circa-2011) implementation from elp.el, so that the
code matches its documentation again.
2021-12-05 23:24:08 -08:00
Paul Eggert
83fa35bb16 Use time-equal-p to compare timestamps in tests
* test/lisp/calendar/time-date-tests.el (test-days-to-time)
(test-time-since): Use time-equal-p to compare timestamps,
since the default form shouldn’t matter.
2021-12-05 23:24:08 -08:00
Paul Eggert
0d88c3c340 Add time-convert tests
* test/src/timefns-tests.el (time-convert-forms): New test.
2021-12-05 23:24:08 -08:00
NightMachinary
4434deaee2 Added dired-create-destination-dirs-on-trailing-dirsep
* lisp/dired-aux.el
(dired-create-destination-dirs-on-trailing-dirsep): New customization
option.
(dired-do-create-files): Use it.
(dired-create-destination-dirs): Mention the new option in the
docstring.
2021-12-06 07:00:14 +01:00
Stefan Kangas
013161d4a7 Merge from origin/emacs-28
e3427faf55 Fix typos and improve consistency in ERC manual
0bf10d5082 * test/Makefile.in (check-declare): Add missing --batch.
34f5656137 Document the subtleties of the 'cursor' text property
2021-12-06 06:47:44 +01:00
Lars Ingebrigtsen
0dca455d14 Make the Git stash commands available in vc-dir Git buffers
* lisp/vc/vc-dir.el (vc-dir): Call the backend-specific minor mode
if it exists.
* lisp/vc/vc-git.el (vc-dir-git-mode-map): New map.
(vc-dir-git-mode): New minor mode.
2021-12-06 06:41:25 +01:00
Lars Ingebrigtsen
9ab479b639 Make gnus-check-backend-function mode `debug-on-signal' friendly
* lisp/gnus/gnus.el (gnus-check-backend-function): Allow running
with `debug-on-signal'.
2021-12-06 04:29:43 +01:00
Stefan Kangas
2a73a52c4a ; Small doc fix in recent eieio-opt.el change
* lisp/emacs-lisp/eieio-opt.el (eieio-help-constructor): Quote
functions to make links work in help-mode.
2021-12-06 03:20:15 +01:00
Stefan Monnier
9171061352 EIEIO: Remove redundant type info in help
`C-h o` returned redundant info when used on EIEIO classes, listing
the same thing both for the type name and for the constructor name.

* lisp/emacs-lisp/eieio.el (help-fns-describe-function-functions):
Remove special case for defclass constructors.
* lisp/emacs-lisp/eieio-opt.el (eieio-help-constructor): Declare it obsolete.
2021-12-05 21:07:58 -05:00
Stefan Kangas
82f96ed380 image-dired: Use string-match-p in one case
* lisp/image-dired.el (image-dired-get-thumbnail-image): Use
string-match-p.
2021-12-06 02:53:31 +01:00
Stefan Kangas
fba7c87595 image-dired: Don't disable mouse dragging
* lisp/image-dired.el (image-dired-thumbnail-mode-map): Don't
disable mouse dragging.  (Bug#52201)
2021-12-06 02:49:03 +01:00
Po Lu
e449f62a79 Fix jittering when precision scrolling over images
* lisp/pixel-scroll.el
(pixel-scroll-precision-initial-velocity-factor): Default to
nil.
(pixel-scroll-precision-scroll-down-page): Always set window
start.
2021-12-06 09:41:49 +08:00
Justin Schell
e6a0cfaad5 vc-git--program-version to support Git for macOS version string
`git version` on macOS returns e.g., "git version 2.30.1 (Apple
Git-130)" and `vc-git--program-version` currently returns "0" instead
of "2.30.1".

* lisp/vc/vc-git.el (vc-git--program-version): Ignore text after
the version number when parsing git versions (bug#52172).

Copyright-paperwork-exempt: yes
2021-12-06 02:27:52 +01:00
Lars Ingebrigtsen
2454f9876d Don't fill byte-compilation warnings in batch mode
* lisp/emacs-lisp/warnings.el (display-warning): Don't break up
byte-compilation into several lines when in batch mode, because
that makes it difficult for some tools to parse them (bug#52281).
2021-12-06 02:23:02 +01:00
Lars Ingebrigtsen
77de40aed3 Audit `string-match' usage in shr.el
* lisp/net/shr.el (shr-descend):
(shr-insert):
(shr-expand-url):
(shr-image-from-data):
(shr-dom-print):
(shr-parse-style):
(shr-tag-object):
(shr-tag-img):
(shr-render-td-1): Prefer string-match-p and string-search over
string-match where possible.
2021-12-06 01:16:23 +01:00
Christer Enfors
e3427faf55 Fix typos and improve consistency in ERC manual
* doc/misc/erc.texi (Sample Session, Special Features, History): Fix
typos and improve consistency.  (Bug52318)
2021-12-05 23:51:55 +01:00
Lars Ingebrigtsen
6620d03e33 ; * src/image.c (webp_load): Minor stylistic fix-up to previous change
* src/image.c (webp_load): Minor stylistic fix-up to previous change.
2021-12-05 23:31:36 +01:00
dickmao
dd2a846890 Add workaround to compilation warning in gcc 10.x in image.c
* src/image.c (webp_load): Work around a (wrong) compiler warning
in gcc 10.x (bug#52276).
2021-12-05 23:29:51 +01:00
YugaEgo
d3d8a6ccda ; * etc/themes/manoj-dark-theme.el: Remove not defined face info-menu-5
* etc/themes/manoj-dark-theme.el (manoj-dark): Remove reference to
face removed in 2005 (bug#52303).
2021-12-05 22:18:18 +01:00
Lars Ingebrigtsen
a996ddb5e6 Update comment about `declare-function'
* lisp/subr.el (declare-function): Fix comment --
`byte-compile-declare-function' doesn't exist.
2021-12-05 22:12:26 +01:00
YugaEgo
0d8e9588e1 * lisp/info.el (info-menu-star): Improve documentation
* lisp/info.el (info-menu-star): Improve the doc string (bug#52315).
2021-12-05 22:05:41 +01:00
Lars Ingebrigtsen
e00623c5bd Fix wording in eieio.texi (Generics)
* doc/misc/eieio.texi (Generics): Fix wording in paragraph
(bug#52317).
2021-12-05 22:03:24 +01:00
Lars Ingebrigtsen
6980a4fa45 Fix regression introduced by previous context-menu-map change
* lisp/mouse.el (context-menu-map): Make the context mode work
with flyspell again  (bug#52237).
2021-12-05 21:20:03 +01:00
Lars Ingebrigtsen
6faf72eab6 Revert "Clarify Creating Frames documentation"
This reverts commit 5d7eb2979b.

The new documentation was incorrect.
2021-12-05 21:15:00 +01:00
Lars Ingebrigtsen
8ef6eeeaea Revert "Improve before-make-frame-hook and after-make-frame-functions docs"
This reverts commit 7842a606b7.

The new documentation was incorrect.
2021-12-05 21:14:26 +01:00
Lars Ingebrigtsen
b961af66b9 Fix fancy-about-screen point placement
* lisp/startup.el (fancy-about-screen): Make point placement more
resilient (bug#43636).
2021-12-05 20:54:50 +01:00
Glenn Morris
0bf10d5082 * test/Makefile.in (check-declare): Add missing --batch. 2021-12-05 10:27:18 -08:00
Stefan Kangas
2d0e1e5595 Light copy-edits to recent additions to ERC manual
* doc/misc/erc.texi (Introduction, Getting Started): Light copy-edits.
2021-12-05 19:21:05 +01:00
Stefan Kangas
fad4049a09 Remove no-op calls to decode-char with 'ucs' arg
* lisp/gnus/mm-util.el (mm-ucs-to-char):
* lisp/language/hanja-util.el (hangul-to-hanja-char):
* lisp/leim/quail/hangul.el (hangul3-input-method-internal)
(hangul390-input-method-internal):
* lisp/nxml/rng-cmpct.el (rng-c-process-escapes):
* lisp/nxml/xsd-regexp.el (xsdre-compile-single-char)
(xsdre-range-list-to-char-alternative):
* lisp/xml.el (xml-parse-string, xml--entity-replacement-text)
(xml-substitute-special): Remove calls to decode-char where first
argument is 'ucs'; that is now a no-op.  Discussed in Bug#52263.

* lisp/nxml/xmltok.el (xmltok-unicode-to-char): Make into obsolete
function alias for 'identity'.  Update single caller.
2021-12-05 19:09:48 +01:00
Eric Abrahamsen
19307704bd Use gnus-error to report mail-source failures
* lisp/gnus/mail-source.el (mail-source-fetch): Instead of querying
the user on mail sources errors -- in effect asking "do you want to
continue, or halt the process?" -- log the error with `gnus-error',
severity 5. The query didn't provide any meaningful control; error
reporting is all that's needed.
(mail-source-ignore-errors): Obsolete this option; users can see the
error or not by configuring `gnus-verbose'.
* doc/misc/gnus.texi (Mail Source Customization): Remove mention of
the above option from the manual.
2021-12-05 09:34:15 -08:00
Eli Zaretskii
25dc0d1de6 ; Another protection from out-of-bounds access to it->stack[]. 2021-12-05 18:03:40 +02:00
Eli Zaretskii
509dec902c Fix out-of-bounds access in xdisp.c
* src/xdisp.c (produce_stretch_glyph): Avoid indexing it->stack
with a negative index.  Reported by Po Lu <luangruo@yahoo.com>.
2021-12-05 17:34:05 +02:00