1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-11 02:10:35 -08:00
Commit graph

155589 commits

Author SHA1 Message Date
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
Po Lu
7314c12e64 Fix child frame crash on pgtk
* src/gtkutil.c (xg_check_special_colors): Use `FRAME_WIDGET'
on PGTK.
2021-12-06 13:43:23 +08: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
Po Lu
c83dc91579 Fix coding style
* src/pgtkfns.c (frame_geometry):
* src/pgtkterm.c (x_set_parent_frame):
(pgtk_text_icon):
(key_release_event):
(configure_event):
(map_event):
(window_state_event):
(delete_event):
(enter_notify_event): Fix coding style.
2021-12-06 13:08:28 +08: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
Po Lu
8f2d0450ad Merge remote-tracking branch 'origin/master' into feature/pgtk 2021-12-06 08:57:17 +08: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
Yuuki Harano
f99745c78e * src/frame.c (gui_set_border_width): Revert confused changes 2021-12-06 00:39:36 +09:00
Yuuki Harano
aacc371ac5 Merge branch 'feature/pgtk' of git.sv.gnu.org:/srv/git/emacs into feature/pgtk 2021-12-06 00:37:31 +09:00
Yuuki Harano
e5f74cecf1 Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs into feature/pgtk 2021-12-06 00:37:01 +09: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
Eli Zaretskii
34f5656137 Document the subtleties of the 'cursor' text property
* doc/lispref/text.texi (Special Properties): Update the
documentation of the 'cursor' property per bug#8627.
2021-12-05 16:38:49 +02:00
Po Lu
622550f718 Interpolate large pixel scrolls
* lisp/pixel-scroll.el
(pixel-scroll-precision-large-scroll-height): New user option.
(pixel-scroll-precision-interpolate): New function.
(pixel-scroll-precision): Interpolate scrolls under some
circumstances.
2021-12-05 21:36:12 +08:00
Stefan Kangas
d16db92cc7 Silence byte-compiler in generator-tests.el
* test/lisp/emacs-lisp/generator-tests.el (cps-let*-shadow-empty)
(cps-let-shadow-empty, cps-let*-parallel): Silence byte-compiler.
2021-12-05 12:58:04 +01:00
Stefan Kangas
722a8ebb71 Silence warnings about testing obsolete functions and macros
* test/lisp/emacs-lisp/cl-generic-tests.el:
* test/lisp/emacs-lisp/edebug-tests.el:
* test/lisp/emacs-lisp/eieio-tests/eieio-test-methodinvoke.el:
* test/lisp/emacs-lisp/eieio-tests/eieio-tests.el: Silence
byte-compiler warnings about testing obsolete functions and macros.
2021-12-05 12:57:57 +01:00
Stefan Kangas
9167fbd323 Remove hacks for broken `with-suppressed-warnings'
* test/lisp/obsolete/cl-tests.el (labels-function-quoting):
* test/lisp/tar-mode-tests.el (tar-mode-test-tar-grind-file-mode):
Remove hack for broken `with-suppressed-warnings'.
2021-12-05 12:08:27 +01:00
Eli Zaretskii
bf869aa698 ; * doc/misc/eshell.texi (Built-ins): Improve markup, fix typos. 2021-12-05 12:12:00 +02:00
Stefan Kangas
520a703fa7 Merge from origin/emacs-28
c086358574 Update to Org 9.5.1-15-gdb4805
fef3e60061 * lisp/emacs-lisp/edebug.el (edebug-eval-defun): Minor doc...
a1e30e4106 ; Fix most remaining AUTHORS warnings
f3e6a432c5 ; * doc/misc/efaq.texi (New in Emacs 28): Add more news.
00236cc802 Fix the enumeration values returned by 'try_scrolling'
2021-12-05 06:30:35 +01:00
Po Lu
1710fca446 Merge remote-tracking branch 'origin/master' into feature/pgtk 2021-12-05 11:30:14 +08:00
Lars Ingebrigtsen
8bdea76720 Remove hack from seq-tests.el for broken `with-suppressed-warnings'
* test/lisp/emacs-lisp/seq-tests.el: `with-suppressed-warnings'
now works better in erf-deftests, so remove hack that works around
it (bug#36568).
2021-12-05 04:20:55 +01:00
Lars Ingebrigtsen
7842a606b7 Improve before-make-frame-hook and after-make-frame-functions docs
* lisp/frame.el (before-make-frame-hook):
(after-make-frame-functions): Note when the functions are run.
2021-12-05 04:12:55 +01:00
Lars Ingebrigtsen
5d7eb2979b Clarify Creating Frames documentation
* doc/lispref/frames.texi (Creating Frames): Remove misleading
explanation -- even if the hooks are set, they won't be run
(bug#38143).
2021-12-05 04:09:33 +01:00
Kyle Meyer
c086358574 Update to Org 9.5.1-15-gdb4805 2021-12-04 21:27:59 -05:00