Philip Kaludercic
54dbd7d55c
* package-vc.el (package-vc-unpack): Ignore dir files
2022-08-20 17:07:23 +02:00
Philip Kaludercic
820036dafe
* package-vc.el (package-vc-unpack): Mark packages as selected
2022-08-19 20:37:09 +02:00
Philip Kaludercic
d3f03666bb
Merge remote-tracking branch 'origin/master' into feature/package+vc
2022-08-18 09:23:45 +02:00
Po Lu
9f26a8d31b
Fix the MS-DOS build
...
* config.bat: Generate stdckdint.in.h
* msdos/sedlibmk.inp (STDCKDINT_H)
(GL_GENERATE_STDCKDINT_H_CONDITION): Update these variables too.
2022-08-18 14:24:43 +08:00
Paul Eggert
7406ae4c98
Fix broken build on Solaris 10 emacs_spawn
...
* src/callproc.c (emacs_spawn) [SETUP_SLAVE_TTY]:
pty_flag no longer exists. Use pty_in && std_in >= 0,
which at least compiles.
2022-08-17 23:12:55 -07:00
Stefan Kangas
9a3f64f406
; Merge from origin/emacs-28
...
The following commit was skipped:
21751f02d3 Backport tempname changes from master (bug#57129)
2022-08-18 06:30:28 +02:00
Paul Eggert
21751f02d3
Backport tempname changes from master (bug#57129)
...
* lib/tempname.c: Backport from master, which uses current Gnulib.
2022-08-17 20:31:39 -07:00
Po Lu
d0e126b6ed
; * src/xterm.c (xi_select_hierarchy_events): Fix typo.
2022-08-18 10:32:49 +08:00
Po Lu
79050eeeaf
; * src/xterm.c (xi_select_hierarchy_events): Fix typo.
2022-08-18 10:32:24 +08:00
Paul Eggert
b6b1911080
Update from Gnulib by running admin/merge-gnulib
2022-08-17 18:51:34 -07:00
Andrea Corallo
3e042c80ce
* lisp/emacs-lisp/bytecomp.el (byte-compile-log-1): Create buffer if necessary
2022-08-17 23:35:46 +02:00
Alan Mackenzie
f0c5de7839
* lisp/progmodes/cc-defs.el (c-safe-scan-lists): Evaluate LIMIT just once
2022-08-17 20:34:43 +00:00
Basil L. Contovounesios
31f289625c
Fix Linux APM BIOS flag testing in battery.el
...
Original sin detected by recent byte-compiler improvements; see:
https://lists.gnu.org/r/emacs-devel/2022-08/msg00611.html
* lisp/battery.el (battery-linux-proc-apm): Treat result of logand
as a number, not boolean.
2022-08-17 20:11:25 +03:00
Stefan Kangas
78460500c7
Shorten new manual section "Shell Command Guessing"
...
* doc/emacs/dired.texi (Shell Command Guessing): Don't document
unimportant details, and improve wording to be shorter.
2022-08-17 16:28:37 +02:00
Stefan Kangas
9dfabe0756
Assume dired-guess is now always available
...
* lisp/dired-aux.el (dired-read-shell-command): Use
dired-guess-shell-command unconditionally, as it is now always
available.
(dired-do-shell-command): Doc fix; dired-guess is always available.
* lisp/dired.el (dired-do-man): Don't require dired-x.
2022-08-17 16:22:29 +02:00
Stefan Kangas
a6412b96e7
Move dired-guess commands from dired-x to dired
...
* lisp/dired-x.el (dired-shell-command-history)
(dired-guess-shell-alist-default, dired-guess-default)
(dired-guess-shell-command): Move from here...
* lisp/dired-aux.el (dired-shell-command-history)
(dired-guess-shell-alist-default, dired-guess-default)
(dired-guess-shell-command): ...to here. (Bug#21981)
* lisp/dired-x.el (dired-guess-shell-gnutar)
(dired-guess-shell-gzip-quiet, dired-guess-shell-znew-switches)
(dired-guess-shell-case-fold-search, dired-guess-shell-alist-user):
Move from here...
* lisp/dired.el (dired-guess-shell-gnutar)
(dired-guess-shell-gzip-quiet, dired-guess-shell-znew-switches)
(dired-guess-shell-case-fold-search, dired-guess-shell-alist-user):
...to here. Change :group to dired-guess.
(dired-guess): New defgroup.
* test/lisp/dired-x-tests.el (dired-guess-default): Move from here...
* test/lisp/dired-aux-tests.el (dired-guess-default): ...to here.
* doc/misc/dired-x.texi (Features, Technical Details, Installation):
Delete any mention of shell command guessing.
(Shell Command Guessing): Move from here...
* doc/emacs/dired.texi (Shell Command Guessing): ...to here. Adapt to
better fit the Emacs Manual conventions.
* lisp/dired-aux.el (dired-do-shell-command): Doc fix to adjust for
above changes.
* etc/NEWS: Announce the above change.
2022-08-17 16:21:09 +02:00
Stefan Kangas
d214dd67cd
Make compat function cperl-putback-char obsolete
...
* lisp/progmodes/cperl-mode.el (cperl-putback-char): Make
obsolete. Update callers.
2022-08-17 16:09:31 +02:00
Stefan Kangas
8d4fe8356c
* lisp/progmodes/cperl-mode.el: Improve commentary.
2022-08-17 16:02:59 +02:00
Stefan Kangas
6ad79488c9
; Delete code in cperl-mode.el commented out since 1997
...
* lisp/progmodes/cperl-mode.el (cperl-menu): Delete some code
commented out since 1997.
2022-08-17 15:55:38 +02:00
Stefan Kangas
1288955d50
Don't check if autoloaded functions are fboundp
...
* lisp/progmodes/cperl-mode.el (cperl-menu, cperl-init-faces):
Assume some autoloaded ps-print.el functions are always there.
2022-08-17 15:48:43 +02:00
Brendan O'Dea
deddd56e35
em-unix.el: only pass -H option to grep
...
* lisp/eshell/em-unix.el (eshell-grep): Don't add -H, because that
breaks agrep/glimpse etc (bug#57247).
(eshell/grep, eshell/egrep, eshell/fgrep): Instead add it here.
2022-08-17 13:20:15 +02:00
kobarity
4915ca5dd4
Enhance Python font-lock to support multilines
...
* test/lisp/progmodes/python-tests.el
(python-tests-assert-faces-after-change): New helper function.
(python-font-lock-keywords-level-1-3)
(python-font-lock-assignment-statement-multiline-*): New tests.
* lisp/progmodes/python.el (python-rx): Add `sp-nl' to represent
space or newline (with/without backslash).
(python-font-lock-keywords-level-1)
(python-font-lock-keywords-maximum-decoration): Allow newlines
where appropriate.
(python-font-lock-extend-region): New function.
(python-mode): Set `python-font-lock-extend-region' to
`font-lock-extend-after-change-region-function'.
2022-08-17 13:10:16 +02:00
Lars Ingebrigtsen
31e3221267
Revert "Add Python blocks support for hideshow"
...
This reverts commit af4cfb5194 .
This led to test failures.
2022-08-17 13:09:39 +02:00
Stefan Kangas
a631067fba
Fix some recently introduced byte-compiler warnings
...
* lisp/emulation/viper-util.el (viper-key-to-character):
* lisp/vc/vc-svn.el (vc-svn-dir-extra-headers): Fix warnings.
* lisp/net/eudc-export.el (eudc-batch-export-records-to-bbdb):
Fix buglet.
2022-08-17 12:52:56 +02:00
kobarity
af4cfb5194
Add Python blocks support for hideshow
...
* lisp/progmodes/python.el (python-nav-beginning-of-block-regexp):
New variable.
(python-hideshow-forward-sexp-function): Change to call
`python-nav-end-of-block'.
(python-hideshow-find-next-block): New function to be used as
FIND-NEXT-BLOCK-FUNC in `hs-special-modes-alist'.
(python-info-looking-at-beginning-of-block): New function to be
used as LOOKING-AT-BLOCK-START-P-FUNC in `hs-special-modes-alist'.
(python-mode): Change settings of `hs-special-modes-alist'.
* test/lisp/progmodes/python-tests.el
(python-hideshow-hide-levels-1): Fix to keep empty lines.
(python-info-looking-at-beginning-of-block-1)
(python-hideshow-hide-levels-3, python-hideshow-hide-levels-4)
(python-hideshow-hide-all-1, python-hideshow-hide-all-2)
(python-hideshow-hide-all-3, python-hideshow-hide-block-1): New
tests (bug#56635).
2022-08-17 12:44:56 +02:00
Stefan Kangas
8f784a2766
Merge from origin/emacs-28
...
a4078fa628 ; * lisp/vc/ediff.el: Improve wording in last change.
dd077ebded Revert "; * doc/lispintro/emacs-lisp-intro.texi: Fix typo."
362c9ab879 * doc/misc/gnus.texi (Article Washing): Fix Links URL.
2022-08-17 06:30:25 +02:00
Po Lu
ed9adafc0b
Avoid disabling device multiple times while handling XI attachment events
...
* src/xterm.c (handle_one_xevent): Avoid disabling devices if we
notice it has been disabled while handling XISlaveDetached or
XISlaveAttached.
2022-08-17 10:20:25 +08:00
Stefan Monnier
b24f7667ad
* src/buffer.c (Frename_buffer): Fix bug#56693
2022-08-16 17:29:26 -04:00
Mattias Engdegård
8517d1e9aa
* lisp/dired.el (dired-mark-if): Evaluate MSG once to avoid warning.
2022-08-16 20:44:50 +02:00
Mattias Engdegård
fb98c4a406
Improved null (alias not) optimisation
...
Take static boolean information of the argument into account.
* lisp/emacs-lisp/byte-opt.el (byte-optimize-not): New.
2022-08-16 20:44:50 +02:00
Mattias Engdegård
621550c076
Improved and and or optimisation
...
* lisp/emacs-lisp/byte-opt.el (byte-optimize-and, byte-optimize-or):
Rewrite. Avoid branching on arguments statically known to be true or
false, and hoist code out to an unconditional prefix when possible.
2022-08-16 20:44:50 +02:00
Mattias Engdegård
e618b6faee
Improved if and while optimisation
...
Recognise some more special cases:
(if X nil t) -> (not X)
(if X t) -> (not (not X))
(if X t nil) -> (not (not X))
(if VAR VAR X...) -> (or VAR (progn X...))
* lisp/emacs-lisp/byte-opt.el (byte-opt-negate): New.
(byte-optimize-if): Add transformations above and refactor.
(byte-optimize-while): Better static nil-detection.
2022-08-16 20:44:50 +02:00
Mattias Engdegård
869db699ee
Improved static detection of nil and non-nil expressions
...
* lisp/emacs-lisp/byte-opt.el (byte-opt--bool-value-form): New.
(byte-compile-trueconstp, byte-compile-nilconstp): Determine a static
nil or non-nil result in more cases. These functions have grown and
are no longer defsubst.
2022-08-16 20:44:50 +02:00
Michael Albinus
4b1ab18391
Fix autoload in tramp.el
2022-08-16 20:32:58 +02:00
Michael Albinus
12c3461b45
Handle root permissions on remote files
...
* lisp/net/tramp.el (tramp-check-cached-permissions): Check also
for remote uid/gid being 0. (Bug#57238)
* lisp/net/tramp-sh.el (tramp-do-file-attributes-with-ls):
Convert numeric uid/gid strings into real strings.
(tramp-sh-get-signal-strings): Use `zerop'.
* lisp/net/tramp.el (tramp-root-id-string, tramp-root-id-integer):
New defconsts.
(tramp-handle-find-backup-file-name, tramp-handle-lock-file)
(tramp-local-host-p, tramp-handle-make-auto-save-file-name)
* lisp/net/tramp-sh.el (tramp-default-method-alist)
(ramp-default-user-alist, tramp-find-shell):
* lisp/net/tramp-sudoedit.el (tramp-default-user-alist): Use them.
2022-08-16 19:41:00 +02:00
Lars Ingebrigtsen
3ea6cb40e6
dired-do-shell-command doc string clarification
...
* lisp/dired-aux.el (dired-do-shell-command): Clarify doc string
(bug#57228).
2022-08-16 19:20:49 +02:00
Stefan Kangas
a4078fa628
; * lisp/vc/ediff.el: Improve wording in last change.
2022-08-16 16:40:39 +02:00
Eli Zaretskii
1f31c39b59
; * lisp/bookmark.el (fringe): Require. (Bug#57241)
2022-08-16 16:40:49 +03:00
Stefan Kangas
1097c0d1e4
Advertise obsolete library pgg.el less
...
* doc/misc/gnus-faq.texi (FAQ 8-2):
* doc/misc/gnus.texi (Security):
* doc/misc/message.texi (Using OpenPGP, PGP Compatibility):
* doc/misc/mh-e.texi (Reading PGP, Sending PGP):
* lisp/gnus/mml2015.el (mml2015-use):
* lisp/info-look.el (mapc):
* lisp/mh-e/mh-e.el (mh-mml-method-default): Advertise obsolete
library pgg.el less.
* lisp/mh-e/mh-identity.el (mh-identity-pgg-default-user-id): Rename
from 'mh-identity-gpg-default-user-id', and make the old name into
obsolete variable alias. Update all uses.
2022-08-16 15:29:30 +02:00
Po Lu
b4879603fd
Fix XInput hierarchy events not being delivered in daemon mode
...
* src/xfns.c (setup_xi_event_mask): Stop selecting for device
hierarchy events.
* src/xterm.c (xi_select_hierarchy_events, x_term_init): Select
those here instead, on the default root window.
2022-08-16 21:11:50 +08:00
Lars Ingebrigtsen
81ff64d3ca
Make message-delete-line obsolete
...
* lisp/gnus/message.el (message-delete-line): Make obsolete.
(message-change-subject, message-cross-post-insert-note)
(message-reduce-to-to-cc, message-indent-citation)
(message-send-mail-with-mh, message-generate-headers)
(message-fill-field-general): Adjust callers.
2022-08-16 15:01:35 +02:00
Lars Ingebrigtsen
190f2db786
Fix buffer-start cleanup in message-indent-citation
...
* lisp/gnus/message.el (message-indent-citation): Fix thinko in loop.
2022-08-16 15:01:35 +02:00
Eli Zaretskii
ad2dba38b2
Don't look for long lines beyond the narrowed region
...
* src/xdisp.c (redisplay_window): Don't scan for newlines outside
the current buffer's restriction.
2022-08-16 15:27:15 +03:00
Stefan Kangas
5e5c56f148
; Normalize my email
2022-08-16 13:41:08 +02:00
Stefan Kangas
dd077ebded
Revert "; * doc/lispintro/emacs-lisp-intro.texi: Fix typo."
...
This reverts commit 9d0dba44da .
This was not a typo, but incorrectly matching parens in Info-mode.
2022-08-16 13:38:40 +02:00
Stefan Kangas
f25c8126ce
; Don't mention obsolete libraries
...
* lisp/erc/erc-speedbar.el:
* etc/TODO (https): Don't mention obsolete libraries.
2022-08-16 13:31:49 +02:00
Stefan Kangas
780c525d11
Modernize spam section in Gnus manual slightly
...
* doc/misc/gnus.texi (The problem of spam): Don't explain what
spam is; there is no need for that in 2022. Don't explain
limitations of obsolete software TMDA; it's website has stopped
working but seems to have been updated last in 2007.
(Thwarting Email Spam, Anti-Spam Basics)
(Spam Package Configuration Examples): Prefer "spam" to "UCE".
(The problem of spam): Use example.org in example.
(SpamAssassin, Hashcash): Improve wording.
2022-08-16 13:30:31 +02:00
Stefan Kangas
c3dedb8b85
; * doc/misc/url.texi: Don't mention obsolete library url-ns.
2022-08-16 10:09:22 +02:00
Stefan Kangas
362c9ab879
* doc/misc/gnus.texi (Article Washing): Fix Links URL.
2022-08-16 08:10:16 +02:00
Stefan Kangas
c48397a2b3
Delete implicit XEmacs references from Gnus manual
...
* doc/misc/gnus.texi (Group Buffer Format, Summary Buffer, RSS):
Delete some implicit references to XEmacs.
(RSS): Fix default value.
2022-08-16 08:03:36 +02:00