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

158684 commits

Author SHA1 Message Date
Eli Zaretskii
286e308561 ; Fix system-info in url-privacy.el
* lisp/url/url-privacy.el (url-setup-privacy-info): Fix MS-Windows
configurations.
2022-08-02 20:27:46 +03:00
Lars Ingebrigtsen
8af91dee9a Improve sendmail-program doc string
* lisp/mail/sendmail.el (sendmail-program): Document that the
program shouldn't output text (bug#56855).
2022-08-02 19:14:43 +02:00
Stefan Monnier
8783700b23 * src/xdisp.c (redisplay_window): Use BEG rather than hard coding 1 2022-08-02 13:06:51 -04:00
Stefan Monnier
344b48f490 CEDET: Remove left-over uses of obsolete <class>-child-p predicates
Those predicates were still sometimes used in a few places, notably via
`:type ... <class>-child` which was never technically correct.

* lisp/cedet/ede/config.el (ede-extra-config, ede-project-with-config):
* lisp/cedet/ede/base.el (ede-project-placeholder): Avoid pseudo-type
`<class>-child`.

* lisp/cedet/semantic/complete.el (semantic-displayer-focus-abstract):
Move before use of `cl-typep` on it.
(semantic-complete-current-match):
* lisp/cedet/ede/speedbar.el (ede-speedbar-menu): Use `cl-typep`
instead of `<class>-child-p`.

* lisp/cedet/semantic/db.el (semanticdb-get-buffer):
Use `cl-defgeneric` for the main/default definition.
(semantic-tag-parent-buffer): Add method.

* lisp/cedet/semantic/tag-file.el (semantic-tag-parent-buffer):
New generic function extracted from `semantic-go-to-tag`.
This allows us to keep the semanticdb-table part in semantic/db and
thus break a cyclic dependency.
(semantic-go-to-tag): Use it.
Demote to a plain `defun` since it's not overloaded anywhere.

* lisp/cedet/semantic/util.el (semanticdb-abstract-table-child-p):
Remove unused declaration.

* lisp/cedet/srecode/compile.el (srecode-template-inserter-newline-child-p):
Remove unused declaration.
(srecord-compile-inserter-newline-p): New generic function, so we can
move the `srecode-template-inserter-newline` case to `srecode/insert.el`,
to avoid a cyclic dependency.

* lisp/cedet/srecode/insert.el (srecord-compile-inserter-newline-p):
New method.
2022-08-02 13:06:51 -04:00
Stefan Kangas
2be7ed257b ; * lisp/url/url-privacy.el (url-setup-privacy-info): Simplify. 2022-08-02 18:55:24 +02:00
Stefan Kangas
409b581b09 Delete obsolete variable nntp-authinfo-file
* lisp/gnus/nntp.el (nntp-authinfo-file): Delete variable obsolete
since 24.1.
2022-08-02 17:26:27 +02:00
Stefan Kangas
0443f3f660 * lisp/textmodes/sgml-mode.el (html-tag-alist): Add https. 2022-08-02 17:22:41 +02:00
Eli Zaretskii
7f59cadf6f ; Clarify documentation of "locked narrowing"
* src/editfns.c (Fwiden, Fnarrow_to_region):
* doc/lispref/positions.texi (Narrowing): Explain when
'narrow-to-region' and 'widen' might have no effect.
2022-08-02 16:24:00 +03:00
Robert Pluim
bf47851e08 Signal error on duplicate key definitions
* lisp/keymap.el (define-keymap, defvar-keymap): Signal error if the
same key is specified twice.  (Bug#56873)

* doc/lispref/keymaps.texi (Creating Keymaps): Document error
signaling behaviour.

* test/src/keymap-tests.el (keymap-test-duplicate-definitions): Test
duplicate definition detection.
2022-08-02 14:29:43 +02:00
Robert Pluim
e5e840168c Remove duplicate key definitions from keymaps
* lisp/gnus/gnus-srvr.el (gnus-browse-mode-map): Remove binding for
'gnus-browse-prev-map'.
* lisp/gnus/gnus-sum.el (gnus-summary-mode-map): Remove
'gnus-summary-down-thread' binding, and by symmetry
'gnus-summary-up-thread' (it's still available on "T-u").
* lisp/ibuffer.el (ibuffer-mode-map): Remove binding for
'ibuffer-mark-for-delete'.
* lisp/wdired.el (wdired-perm-mode-map): Remove duplicate binding of
"s" to 'wdired-set-bit'.

* etc/NEWS: Announce 'gnus-summary-up-thread' change.
2022-08-02 14:29:43 +02:00
Stefan Kangas
74ff6acdd3 url-about: Ignore missing directories in load-path
* lisp/url/url-about.el (url-probe-protocols): Ignore missing
directories in load-path.
2022-08-02 14:02:17 +02:00
Lars Ingebrigtsen
6b14ef273a Fix find-dired over tramp
* lisp/find-dired.el (find-dired-with-command): Set the
filter/sentinel immediately -- scheduling may make process output
(and exit) happen before these are set otherwise (bug#56865).
(find-dired-sort-by-filename): Don't bug out on error messages
from find.
2022-08-02 12:35:13 +02:00
Stefan Kangas
bd50df1efd Delete function alias x-selection obsolete since 23.3
* lisp/select.el (x-selection): Delete function alias obsolete since
23.3.
2022-08-02 12:21:43 +02:00
Stefan Kangas
146b3fb769 * lisp/mail/binhex.el: Improve commentary. 2022-08-02 12:15:35 +02:00
Matt Armstrong
50a192795a Consider built-in packages to be installed
* lisp/emacs-lisp/package.el (package-installed-p): Check for built-in
packages before initialization. (bug#56877).
2022-08-02 12:14:09 +02:00
Lars Ingebrigtsen
6fd1fb8a68 Don't disable eldoc when doing edebug
* lisp/emacs-lisp/eldoc.el
(eldoc-display-message-no-interference-p): Don't disable eldoc
when edebugging (bug#56459).  There should be no interference in
that case, because edebug messaging is done after stepping, and
eldoc messaging is done after other movements.
2022-08-02 11:56:55 +02:00
Lars Ingebrigtsen
a306d9096e Fix url-dired obsoletion warning
* lisp/url/url-file.el (url-file): Don't use obsolete url-dired
function.
2022-08-02 11:20:14 +02:00
Stefan Kangas
101a5b574e ; * lisp/textmodes/texinfo.el: Remove stale comment. 2022-08-02 11:05:33 +02:00
Stefan Kangas
632b74efa3 Make url-dired.el obsolete (part 2/2)
* lisp/obsolete/url-dired.el: Add "Obsolete-since" header.
(url-dired-minor-mode-map): Minor fix.
* lisp/url/url-file.el (url-dired): Don't require.
* etc/NEWS: Announce its obsoletion.
2022-08-02 10:30:55 +02:00
Stefan Kangas
16c872409b Make url-dired.el obsolete (part 1/2)
It doesn't have any real effect since 2007.
Ref: https://lists.gnu.org/r/emacs-devel/2022-07/msg01156.html

* lisp/url/url-dired.el: Move from here...
* lisp/obsolete/url-dired.el: ...to here.
2022-08-02 10:30:50 +02:00
Stefan Kangas
5e010f0522 Make gnus-url-unhex into alias for url-unhex
* lisp/gnus/gnus-util.el (gnus-url-unhex): Make into obsolete function
alias for url-unhex; they are identical.  Update callers.
2022-08-02 10:21:54 +02:00
Stefan Kangas
6c3bafbc2c Add tests for url-{hexify,unhex}-string
* test/lisp/url/url-util-tests.el (url-unhex-string-tests)
(url-hexify-string-tests): New tests.
2022-08-02 10:21:22 +02:00
Stefan Kangas
c480789536 Remove extraneous defvars from edmacro.el
* lisp/edmacro.el (edmacro-fix-menu-commands): Remove extraneous
defvars; they are already declared above.
2022-08-02 10:21:22 +02:00
Po Lu
0b233d3e5f Further reduce monitor change event duplication
* src/xterm.c (handle_one_xevent): Also don't store duplicate
events for ConfigureNotify events bound for the root window.
2022-08-02 15:17:11 +08:00
Gerd Möllmann
0381e90fe7 ; * etc/emacs_lldb.py: Don't print '->' in type summary 2022-08-02 09:12:47 +02:00
Stefan Kangas
945e4fa2a0 Merge from origin/emacs-28
e6af4968f9 ; Update ChangeLog and AUTHORS
2022-08-02 06:30:28 +02:00
Po Lu
0c910f689b Avoid extra consing on monitor configuration change
* src/xterm.c (x_find_monitors_changed_event): New function.
(x_monitors_changed_cb, handle_one_xevent): Look through the
entire event queue to skip delivering monitor change events.
2022-08-02 09:41:02 +08:00
Lars Ingebrigtsen
bc7dc792df Fix compilation warning in spam.el
* lisp/gnus/spam.el (spam-check-blackholes): Adjust now that
query-dig is obsolete.
2022-08-01 21:23:13 +02:00
Juri Linkov
7320a812e9 Wrap around the search on typing a letter (bug#56535)
* doc/emacs/search.texi (Repeat Isearch): Improve values no/no-ding.

* lisp/isearch.el (isearch-search-and-update): Try to repeat the search
on an error when isearch-wrap-pause is no/no-ding.
2022-08-01 22:19:01 +03:00
Gregory Heytings
9d8a6c8283 Fix the bytecode incompatibility due to the change to 'narrow-to-region'.
* src/editfns.c (narrow_to_region_internal): New function, which
contains the body previously in 'Fnarrow_to_region' but accepts
a third argument.
(Fnarrow_to_region): Use the new function. Update the docstring.
(Fwiden): Update the docstring.

* src/lisp.h: Prototype of the new function.

* src/xdisp.c (handle_fontified_prop): Use the new function instead
of 'Fnarrow_to_region'.

* src/process.c (Finternal_default_process_filter):
* src/lread.c (readevalloop): Remove the third argument to
'Fnarrow_to_region'.

* src/bytecode.c (exec_byte_code):
* lisp/emacs-lisp/comp.el (comp-limplify-lap-inst):
* lisp/emacs-lisp/bytecomp.el: Restore the statu quo ante.

* etc/NEWS: Remove the entry about the new optional argument.

* doc/lispref/positions.texi (Narrowing): Update the documentation.
2022-08-01 21:11:49 +02:00
Stefan Kangas
c2ed2e6858 Don't bind non-existent command in picture-mode-map
* lisp/textmodes/picture.el (picture-mode-map): Remove ineffectual
binding of non-existent command.
2022-08-01 19:46:23 +02:00
Eli Zaretskii
914f6b3c2c * src/eval.c (Fdefvaralias): Clarify error messages. (Bug#56863) 2022-08-01 20:01:51 +03:00
Stefan Kangas
de1c98ef0c Prefer command remapping to substitute-key-definition
* lisp/textmodes/reftex-index.el (reftex-index-mode-map):
* lisp/textmodes/reftex-sel.el (reftex-select-shared-map):
* lisp/textmodes/reftex-toc.el (reftex-toc-mode-map): Prefer command
remapping to 'substitute-key-definition'.
2022-08-01 18:15:51 +02:00
Stefan Kangas
e6af4968f9 ; Update ChangeLog and AUTHORS
* ChangeLog.3:
* etc/AUTHORS: Update.
2022-08-01 18:13:13 +02:00
Lars Ingebrigtsen
3bd9b6132f Fix loaddefs quirk w.r.t. pinyin-convert
* lisp/international/titdic-cnv.el (pinyin-convert): Use
`generate-lisp-file' for the file.  This avoids having it scanned
by loaddefs-gen, which will trigger re-compilation of Emacs since
pinyin.el is generated after Emacs is built.
2022-08-01 14:28:05 +02:00
Stefan Kangas
7c8bd8802b * lisp/net/dig.el: Improve Commentary. 2022-08-01 13:32:34 +02:00
Stefan Kangas
b9b5657c56 Doc fix in eudc-hotlist.el
* lisp/net/eudc-hotlist.el (eudc-hotlist-mode): Doc fix; use command
substitution.
2022-08-01 13:32:34 +02:00
Stefan Kangas
66c23da444 Fix namespacing issue in dig.el
* lisp/net/dig.el (dig-query): Rename from 'query-dig'.
(query-dig): Make into obsolete function alias for 'dig-query'.
2022-08-01 13:32:34 +02:00
Po Lu
e976a935f8 Improve handling of xsettings events
* src/xsettings.c (xft_settings_event):
* src/xsettings.h: Return if the event was handled.
* src/xterm.c (handle_one_xevent): If it was, don't handle the
event any further.
2022-08-01 19:01:37 +08:00
Stefan Kangas
89fbcbb907 ; * lisp/net/net-utils.el: Delete code commented out since 2000.
Note also that the netstat command is officially deprecated.
2022-08-01 11:52:32 +02:00
Paul Eggert
bec8474a45 Improve GCC pacification in xterm.c
* src/xterm.c (x_dnd_free_toplevels, x_composite_image):
Use UNINIT for initialization needed only to pacify GCC.
(x_dnd_free_toplevels): Add an eassume to pacify GCC 12.1 x86-64
-Wanalyzer-null-dereference.

2022-07-31  Paul Eggert  <eggert@cs.ucla.edu>
2022-08-01 01:17:19 -07:00
Paul Eggert
72c3efd7d0 Fix time comparison in primitive-undo
* lisp/simple.el (primitive-undo): Fix time comparison.
The old code was a circa-2013 mistranslation of what used to be in
src/undo.c’s Fprimitive_undo.
2022-08-01 01:17:18 -07:00
Paul Eggert
4d896c0977 Use list-form timestamps in .nnmh-articles
* lisp/gnus/nnmh.el (nnmh-update-gnus-unreads): Store list form
timestamps into .nnmh-articles, even if current-time-list is nil.
That way, older Emacs versions can read them.
2022-08-01 01:17:18 -07:00
Paul Eggert
2cd204d8bb Prefer ‘time-equal-p’ to ‘equal’ on timestamps
This is more robust since timestamps can have multiple forms.
* lisp/auth-source.el (auth-source-netrc-parse):
* lisp/bookmark.el (bookmark--watch-file-already-queried-p)
(bookmark-maybe-load-default-file):
* lisp/cedet/semantic/db.el (semanticdb-needs-refresh-p):
* lisp/dired.el (dired-directory-changed-p):
* lisp/files.el (dir-locals-find-file):
* lisp/gnus/gnus-util.el (gnus-cache-file-contents):
* lisp/gnus/nneething.el (nneething-create-mapping):
* lisp/gnus/nnfolder.el (nnfolder-read-folder):
* lisp/gnus/nnmaildir.el (nnmaildir--update-nov)
(nnmaildir--scan, nnmaildir-request-scan)
(nnmaildir-request-update-info):
* lisp/gnus/nnmh.el (nnmh-update-gnus-unreads):
* lisp/gnus/spam-stat.el (spam-stat-load):
* lisp/mail/mailabbrev.el (mail-abbrevs-sync-aliases):
* lisp/mail/sendmail.el (sendmail-sync-aliases):
* lisp/net/netrc.el (netrc-parse):
* lisp/nxml/rng-loc.el (rng-get-parsed-schema-locating-file):
* lisp/play/cookie1.el (cookie-snarf):
* lisp/vc/vc-cvs.el (vc-cvs-state-heuristic):
* lisp/vc/vc-hg.el (vc-hg--ignore-patterns-valid-p)
(vc-hg--cached-dirstate-search):
* lisp/vc/vc-hooks.el (vc-after-save):
Prefer ‘time-equal-p’ to ‘equal’ when comparing
timestamps for equality.
2022-08-01 01:17:17 -07:00
Paul Eggert
a51863f73d Simplify a few timestamps
* lisp/calendar/time-date.el (safe-date-to-time):
* lisp/calendar/timeclock.el (timeclock-generate-report):
* lisp/epg.el (epg--start):
* lisp/gnus/gnus-demon.el (gnus-demon-nntp-close-connection):
* lisp/gnus/gnus-util.el (gnus-date-get-time):
* lisp/gnus/nnheader.el (nnheader-last-message-time):
* lisp/gnus/nnrss.el (nnrss-request-expire-articles):
* lisp/vc/ediff-util.el (ediff-command-begin-time)
(ediff-calc-command-time, ediff-profile):
Prefer an integer like 0 to a timestamp list like (0 0)
where either will do.
2022-08-01 01:17:16 -07:00
Paul Eggert
d634cb0954 Omit some (current-time) calls
* lisp/emacs-lisp/ert.el (ert-write-junit-test-summary-report):
* lisp/emacs-lisp/shortdoc.el (file):
* lisp/find-lisp.el (find-lisp-find-dired-insert-file):
* lisp/progmodes/hideif.el (hide-ifdefs):
* lisp/tar-mode.el (tar-subfile-save-buffer):
Prefer nil or omitted arg to (current-time) where this is better
or more-efficient.
2022-08-01 01:17:16 -07:00
Paul Eggert
353413a76b * lisp/vc/vc.el: Remove stray comment hyphen. 2022-08-01 01:17:15 -07:00
Paul Eggert
d6c054a007 Fix "cons up a storm" issue in type-break
* lisp/type-break.el (type-break-time-last-command)
(type-break-mode, type-break, type-break-check)
(type-break-time-sum, type-break-keystroke-reset):
Use integer timestamps; that’s good enough for this module.
2022-08-01 01:17:15 -07:00
Paul Eggert
afa67ed6f2 Fix year-285428751 bug in hanoi-unix-64
* lisp/play/hanoi.el (hanoi-move-period, hanoi, hanoi-unix)
(hanoi-unix-64): Use integers, not floating point, to avoid
rounding errors for timestamps greater than 2**53.
2022-08-01 01:17:15 -07:00
Paul Eggert
2fd2008e67 * src/timefns.c (Ffloat_time): Fix doc string. 2022-08-01 01:17:14 -07:00