]> git.eshelyaron.com Git - emacs.git/log
emacs.git
2 years agoSpeed up display of Arabic
Eli Zaretskii [Sat, 6 Aug 2022 13:55:51 +0000 (16:55 +0300)]
Speed up display of Arabic

* lisp/language/misc-lang.el (composition-function-table): Move
some of the Arabic composition rules to ZWJ and ZWNJ cells.  This
speeds up display of Arabic by a factor of 2.  (Bug#56682)

2 years agoFix C-n/C-p inside bidirectional text
Eli Zaretskii [Sat, 6 Aug 2022 13:24:34 +0000 (16:24 +0300)]
Fix C-n/C-p inside bidirectional text

* src/xdisp.c (move_it_by_lines, try_cursor_movement): Handle
glyph rows whose direction of increasing buffer positions is
reverse of the normal: going down in the window makes buffer
positions higher.
* src/indent.c (Fvertical_motion): When looking for the last glyph
row occupied by point, take into account the bidi iteration
direction.

2 years agoFontify python escape sequences in literals
lWarne [Sat, 6 Aug 2022 13:01:38 +0000 (15:01 +0200)]
Fontify python escape sequences in literals

* lisp/progmodes/python.el (python-rx): Add regular expressions
matching escape codes in string and byte literals
(python--string-bytes-literal-matcher): new function
(python--not-raw-bytes-literal-start-regexp): new constant
(python--not-raw-string-literal-start-regexp): new constant
* test/lisp/progmodes/python-tests.el: Add tests for new
fontification (bug#57004).

2 years agoFix mh-e.texi syntax (from previous change)
Lars Ingebrigtsen [Sat, 6 Aug 2022 12:50:50 +0000 (14:50 +0200)]
Fix mh-e.texi syntax (from previous change)

* doc/misc/mh-e.texi (Viewing): Add closing brace to @footnote.

2 years ago* etc/PROBLEMS: Delete entry on 20+ years old version of X-Symbol.
Stefan Kangas [Sat, 6 Aug 2022 12:32:23 +0000 (14:32 +0200)]
* etc/PROBLEMS: Delete entry on 20+ years old version of X-Symbol.

2 years ago* admin/check-doc-strings: Remove XEmacs support.
Stefan Kangas [Sat, 6 Aug 2022 12:30:09 +0000 (14:30 +0200)]
* admin/check-doc-strings: Remove XEmacs support.

2 years agoDon't mention removed XEmacs support in mh-e manual
Stefan Kangas [Sat, 6 Aug 2022 12:20:39 +0000 (14:20 +0200)]
Don't mention removed XEmacs support in mh-e manual

* doc/misc/mh-e.texi (Preface, Incorporating Mail, Viewing)
(Tool Bar, Tool Bar): Remove any reference to XEmacs.

2 years agoMake alias widget-visibility-value-create obsolete
Stefan Kangas [Sat, 6 Aug 2022 12:14:18 +0000 (14:14 +0200)]
Make alias widget-visibility-value-create obsolete

* lisp/wid-edit.el (widget-visibility-value-create): Make compat
alias obsolete.

2 years ago; Adjust time-convert call to recent change
Stefan Kangas [Sat, 6 Aug 2022 11:03:38 +0000 (13:03 +0200)]
; Adjust time-convert call to recent change

* test/lisp/eshell/em-pred-tests.el
(eshell-parse-file-name-attributes): Adjust test to recent change.

2 years ago; Maintain admin/update_autogen
Stefan Kangas [Sat, 6 Aug 2022 10:59:04 +0000 (12:59 +0200)]
; Maintain admin/update_autogen

2 years agoMake an rmail compat alias obsolete
Stefan Kangas [Sat, 6 Aug 2022 08:34:47 +0000 (10:34 +0200)]
Make an rmail compat alias obsolete

* lisp/mail/rmailsum.el (rmail-summary-output-to-rmail-file): Make
compat alias obsolete.

2 years agoMake compat alias ede-toplevel-project-or-nil obsolete
Stefan Kangas [Sat, 6 Aug 2022 08:32:24 +0000 (10:32 +0200)]
Make compat alias ede-toplevel-project-or-nil obsolete

* lisp/cedet/ede/files.el (ede-toplevel-project-or-nil): Make
compat alias obsolete.

2 years agoDrop support for XEmacs package func-menu from idlwave
Stefan Kangas [Sat, 6 Aug 2022 08:21:24 +0000 (10:21 +0200)]
Drop support for XEmacs package func-menu from idlwave

* lisp/progmodes/idlwave.el (idlwave-function-menu): Make into
obsolete alias for imenu.  Update callers.
* doc/misc/idlwave.texi (Introduction, Motion Commands): Remove
any mention of func-menu.

2 years agoMake face-doc-string aliases obsolete
Stefan Kangas [Sat, 6 Aug 2022 08:13:19 +0000 (10:13 +0200)]
Make face-doc-string aliases obsolete

* lisp/faces.el (face-doc-string, set-face-doc-string): Make
aliases obsolete.

2 years ago; * lisp/gnus/mm-util.el: Remove duplicate defalias.
Stefan Kangas [Sat, 6 Aug 2022 08:12:18 +0000 (10:12 +0200)]
; * lisp/gnus/mm-util.el: Remove duplicate defalias.

2 years ago* admin/update_autogen: Fix generating ldefs-boot.el.
Stefan Kangas [Sat, 6 Aug 2022 10:21:40 +0000 (12:21 +0200)]
* admin/update_autogen: Fix generating ldefs-boot.el.

2 years ago* admin/update_autogen: Fix refreshing grammar-wy.el.
Stefan Kangas [Sat, 6 Aug 2022 09:46:43 +0000 (11:46 +0200)]
* admin/update_autogen: Fix refreshing grammar-wy.el.

2 years agoPut no-byte-compile cookie back in ldefs-boot.el
Lars Ingebrigtsen [Sat, 6 Aug 2022 09:41:40 +0000 (11:41 +0200)]
Put no-byte-compile cookie back in ldefs-boot.el

2 years ago; Auto-commit of loaddefs files.
Stefan Kangas [Sat, 6 Aug 2022 09:32:32 +0000 (11:32 +0200)]
; Auto-commit of loaddefs files.

2 years agoCorrectly initialize values after a new device is enabled
Po Lu [Sat, 6 Aug 2022 06:50:04 +0000 (14:50 +0800)]
Correctly initialize values after a new device is enabled

* src/xterm.c (handle_one_xevent): Initialize new device to
zero.  (bug#57011)

2 years ago; * lisp/emacs-lisp/lisp.el (end-of-defun-moves-to-eol): Doc fix.
Eli Zaretskii [Sat, 6 Aug 2022 06:40:07 +0000 (09:40 +0300)]
; * lisp/emacs-lisp/lisp.el (end-of-defun-moves-to-eol): Doc fix.

2 years ago* src/puresize.h (BASE_PURESIZE): Bump the value. (Bug#57007)
Eli Zaretskii [Sat, 6 Aug 2022 06:11:01 +0000 (09:11 +0300)]
* src/puresize.h (BASE_PURESIZE): Bump the value.  (Bug#57007)

2 years agoMerge from origin/emacs-28
Stefan Kangas [Sat, 6 Aug 2022 04:30:27 +0000 (06:30 +0200)]
Merge from origin/emacs-28

f3b9bccb45 * lisp/play/fortune.el: Doc fixes.

2 years agoImprove XI focus handling for entry and exit events
Po Lu [Sat, 6 Aug 2022 02:59:15 +0000 (10:59 +0800)]
Improve XI focus handling for entry and exit events

* src/xterm.c (handle_one_xevent): Skip useless
x_detect_focus_change calls in more cases.

2 years ago; Update ldefs-boot.el again
Po Lu [Sat, 6 Aug 2022 02:28:00 +0000 (10:28 +0800)]
; Update ldefs-boot.el again

2 years ago* src/callproc.c (emacs_spawn): Fix Mac OS X build.
Po Lu [Sat, 6 Aug 2022 02:27:03 +0000 (10:27 +0800)]
* src/callproc.c (emacs_spawn): Fix Mac OS X build.

2 years ago; Update ldefs-boot.el
Po Lu [Sat, 6 Aug 2022 02:22:41 +0000 (10:22 +0800)]
; Update ldefs-boot.el

2 years agoFix signature of `seconds-to-time'
Po Lu [Sat, 6 Aug 2022 02:21:52 +0000 (10:21 +0800)]
Fix signature of `seconds-to-time'

* lisp/calendar/time-date.el (seconds-to-time): Fix after change
to time-convert.

2 years agoImprove XI focus handling
Po Lu [Sat, 6 Aug 2022 02:17:38 +0000 (10:17 +0800)]
Improve XI focus handling

* src/xterm.c (handle_one_xevent): Skip useless
x_detect_focus_change calls in some cases.

2 years agoAdd STREAM argument to 'process-tty-name'
Jim Porter [Wed, 20 Jul 2022 04:36:54 +0000 (21:36 -0700)]
Add STREAM argument to 'process-tty-name'

* src/process.c (process-tty-name): Add STREAM argument.

* lisp/eshell/esh-io.el (eshell-close-target): Only call
'process-send-eof' once if the process's stdin is a pipe.

* test/src/process-tests.el (make-process/test-connection-type): Check
behavior of 'process-tty-name'.

* doc/lispref/processes.texi (Process Information): Document the new
argument.

* etc/NEWS: Announce this change.

2 years agoAllow creating processes where only one of stdin or stdout is a PTY
Jim Porter [Mon, 18 Jul 2022 03:25:00 +0000 (20:25 -0700)]
Allow creating processes where only one of stdin or stdout is a PTY

* src/lisp.h (emacs_spawn):
* src/callproc.c (emacs_spawn): Add PTY_IN and PTY_OUT arguments to
specify which streams should be set up as a PTY.
(call_process): Adjust call to 'emacs_spawn'.

* src/process.h (Lisp_Process): Replace 'pty_flag' with 'pty_in' and
'pty_out'.

* src/process.c (is_pty_from_symbol): New function.
(make-process): Allow :connection-type to be a cons cell, and allow
using a stderr process with a PTY for stdin/stdout.
(create_process): Handle creating a process where only one of stdin or
stdout is a PTY.

* lisp/eshell/esh-proc.el (eshell-needs-pipe, eshell-needs-pipe-p):
Remove.
(eshell-gather-process-output): Use 'make-process' and set
':connection-type' as needed by the value of 'eshell-in-pipeline-p'.

* lisp/net/tramp.el (tramp-handle-make-process):
* lisp/net/tramp-adb.el (tramp-adb-handle-make-process):
* lisp/net/tramp-sh.el (tramp-sh-handle-make-process): Don't signal an
error when ':connection-type' is a cons cell.

* test/src/process-tests.el
(process-test-sentinel-wait-function-working-p): Allow passing PROC
in, and rework into...
(process-test-wait-for-sentinel): ... this.
(process-test-sentinel-accept-process-output)
(process-test-sentinel-sit-for, process-test-quoted-batfile)
(process-test-stderr-filter): Use 'process-test-wait-for-sentinel'.
(make/process/test-connection-type): New function.
(make-process/connection-type/pty, make-process/connection-type/pty-2)
(make-process/connection-type/pipe)
(make-process/connection-type/pipe-2)
(make-process/connection-type/in-pty)
(make-process/connection-type/out-pty)
(make-process/connection-type/pty-with-stderr-buffer)
(make-process/connection-type/out-pty-with-stderr-buffer): New tests.

* test/lisp/eshell/esh-proc-tests.el (esh-proc-test--detect-pty-cmd):
New variable.
(esh-proc-test/pipeline-connection-type/no-pipeline)
(esh-proc-test/pipeline-connection-type/first)
(esh-proc-test/pipeline-connection-type/middle)
(esh-proc-test/pipeline-connection-type/last): New tests.

* doc/lispref/processes.texi (Asynchronous Processes): Document new
':connection-type' behavior.
(Output from Processes): Remove caveat about ':stderr' forcing
'make-process' to use pipes.

* etc/NEWS: Announce this change (bug#56025).

2 years agotime-convert): Deprecate calls without an explicit FORM arg
Stefan Monnier [Fri, 5 Aug 2022 22:46:31 +0000 (18:46 -0400)]
time-convert): Deprecate calls without an explicit FORM arg

* lisp/subr.el (time-convert): Deprecate calls without an explicit FORM arg.

* doc/lispref/os.texi (Time Conversion): Adjust doc accordingly.

* lisp/calendar/time-date.el (days-to-time):
* lisp/emacs-lisp/timer.el (timer-next-integral-multiple-of-time):
* lisp/gnus/nnrss.el (nnrss-normalize-date):
* lisp/epa-ks.el (epa-ks--parse-buffer): Silence corresponding warnings.

2 years agoEnsure that leim-list.el is built
Lars Ingebrigtsen [Fri, 5 Aug 2022 21:48:33 +0000 (23:48 +0200)]
Ensure that leim-list.el is built

* lisp/Makefile.in: Ensure that leim-list.el is built (bug#56998).

2 years agoAllow newline after def*-form for definition-prefix
Stefan Kangas [Fri, 5 Aug 2022 18:17:23 +0000 (20:17 +0200)]
Allow newline after def*-form for definition-prefix

* lisp/emacs-lisp/loaddefs-gen.el (autoload-ignored-definitions):
Add another semantic function.
(loaddefs-generate--compute-prefixes): Allow newline after the "(def*"
form.  (Bug#57000)

2 years agoAdd variable end-of-defun-moves-to-eol
Filipp Gunbin [Fri, 5 Aug 2022 18:01:10 +0000 (21:01 +0300)]
Add variable end-of-defun-moves-to-eol

* lisp/emacs-lisp/lisp.el (end-of-defun-moves-to-eol): New variable.
(end-of-defun): Use it.

2 years ago* src/keyboard.c (timer_check_2): Replace redundant test with assertion
Stefan Monnier [Fri, 5 Aug 2022 16:34:47 +0000 (12:34 -0400)]
* src/keyboard.c (timer_check_2): Replace redundant test with assertion

2 years agotimer.el: Avoid repeated timers
Stefan Monnier [Fri, 5 Aug 2022 14:38:59 +0000 (10:38 -0400)]
timer.el: Avoid repeated timers

https://mail.gnu.org/archive/html/emacs-devel/2022-07/msg01127.html
points out that end-users can get bitten by this, accidentally
calling `timer-activate` on an already activated timer.

* lisp/emacs-lisp/timer.el (timer--activate): Signal an error if we try
to re-add a timer that's already on the timer-list.

2 years agobytecomp.el: Update comments referring to `make-docfile`
Stefan Monnier [Fri, 5 Aug 2022 13:41:03 +0000 (09:41 -0400)]
bytecomp.el: Update comments referring to `make-docfile`

2 years agoAvoid assertion violations in 'back_to_previous_visible_line_start'
Eli Zaretskii [Fri, 5 Aug 2022 12:53:06 +0000 (15:53 +0300)]
Avoid assertion violations in 'back_to_previous_visible_line_start'

* src/xdisp.c (init_iterator): Always initialize narrowed_begv to
zero, since SET_WITH_NARROWED_BEGV depends on it being non-zero as
an indication that long-line optimizations are in use.
(back_to_previous_visible_line_start): When long-line
optimizations are in effect, we may end up not on a newline.

2 years agobytecomp.el: Further simplifications enabled by commit 59732a83c8875c
Stefan Monnier [Fri, 5 Aug 2022 12:18:04 +0000 (08:18 -0400)]
bytecomp.el: Further simplifications enabled by commit 59732a83c8875c

* lisp/emacs-lisp/bytecomp.el (byte-compile-output-docform): Don't
insert a \n before the #@ docstrings since make-docfile doesn't scan
.elc files any more.

2 years agoFix lisp/Makefile.in autoloads dependency
Lars Ingebrigtsen [Fri, 5 Aug 2022 12:06:22 +0000 (14:06 +0200)]
Fix lisp/Makefile.in autoloads dependency

* lisp/Makefile.in (autoloads): Ensure that loaddefs-gen.elc
exists before making autoloads.

2 years agoMake ange-ftp-re-read-dir compat alias obsolete
Stefan Kangas [Fri, 5 Aug 2022 11:36:38 +0000 (13:36 +0200)]
Make ange-ftp-re-read-dir compat alias obsolete

* lisp/net/ange-ftp.el (ange-ftp-re-read-dir): Make alias obsolete.
Update callers.

2 years agoMake loaddefs.el dependencies more explicit in src/Makefile.in
Lars Ingebrigtsen [Fri, 5 Aug 2022 11:51:19 +0000 (13:51 +0200)]
Make loaddefs.el dependencies more explicit in src/Makefile.in

* src/Makefile.in (LC_ALL): Add loaddefs.el as a dependency, too,
since that file may be deleted, but the loaddefs.elc file still
exists.  This causes problems in nativecomp builds.

2 years agoRename object-sort-list to srecode-object-sort-list
Stefan Kangas [Fri, 5 Aug 2022 11:00:06 +0000 (13:00 +0200)]
Rename object-sort-list to srecode-object-sort-list

* lisp/cedet/srecode/table.el (srecode-object-sort-list): Rename
from 'object-sort-list'.  Retain old name as an obsolete alias.

2 years agoFix namespace problems in viper.el
Stefan Kangas [Fri, 5 Aug 2022 10:55:28 +0000 (12:55 +0200)]
Fix namespace problems in viper.el

* lisp/emulation/viper.el
(viper-this-major-mode-requires-vi-state): Rename from
'this-major-mode-requires-vi-state'.  Retain old name as an
obsolete alias.
(viper-set-state-in-major-mode): Rename from
'set-viper-state-in-major-mode'.  Retain old name as an obsolete
alias.

2 years agoFix namespace problems in xscheme.el
Stefan Kangas [Fri, 5 Aug 2022 10:49:38 +0000 (12:49 +0200)]
Fix namespace problems in xscheme.el

* lisp/progmodes/xscheme.el (xscheme-default-runlight): Rename
from 'default-xscheme-runlight'.  Retain old name as an obsolete
alias.
(xscheme-verify-buffer): Rename from 'verify-xscheme-buffer'.
Retain old name as an obsolete alias.

2 years agoFix namespace problem in saveplace.el
Stefan Kangas [Fri, 5 Aug 2022 10:28:59 +0000 (12:28 +0200)]
Fix namespace problem in saveplace.el

* lisp/saveplace.el (save-place-load-alist-from-file): Rename from
'load-save-place-alist-from-file'.  Retain old name as an obsolete
alias.  Update callers.

2 years agoMake two perl-mode aliases obsolete
Stefan Kangas [Fri, 5 Aug 2022 10:23:00 +0000 (12:23 +0200)]
Make two perl-mode aliases obsolete

* lisp/progmodes/perl-mode.el (indent-perl-exp)
(mark-perl-function): Make obsolete.

2 years agoFix namespace problem in ede/custom.el
Stefan Kangas [Fri, 5 Aug 2022 10:08:19 +0000 (12:08 +0200)]
Fix namespace problem in ede/custom.el

* lisp/cedet/ede/custom.el (ede-eieio-old-variables): Rename from
'ede-eieio-old-variables'.  Retain old name as an obsolete alias.

2 years ago* test/lisp/env-tests.el: New file.
Stefan Kangas [Fri, 5 Aug 2022 09:46:47 +0000 (11:46 +0200)]
* test/lisp/env-tests.el: New file.

2 years ago* lisp/play/fortune.el: Doc fixes.
Stefan Kangas [Tue, 26 Jul 2022 13:12:19 +0000 (15:12 +0200)]
* lisp/play/fortune.el: Doc fixes.

2 years agoFix oldXMenu grab handling
Po Lu [Fri, 5 Aug 2022 08:26:01 +0000 (16:26 +0800)]
Fix oldXMenu grab handling

* src/xmenu.c (x_menu_translate_generic_event, pop_down_menu):
Clear grab correctly on individual XI2 devices.

2 years ago; * etc/NEWS: Fix typo.
Po Lu [Fri, 5 Aug 2022 08:12:25 +0000 (16:12 +0800)]
; * etc/NEWS: Fix typo.

2 years agoImprove C-x C-q in emacs-news-mode
Po Lu [Fri, 5 Aug 2022 08:12:07 +0000 (16:12 +0800)]
Improve C-x C-q in emacs-news-mode

* lisp/textmodes/emacs-news-mode.el (emacs-news-mode-map)
(emacs-news-view-mode-map): Make C-x C-q switch to the
appropriate mode for editing, and vice versa.
(emacs-news-mode): Disable button-mode and make buffer
read-write.

2 years agoImprove multi-pointer X support
Po Lu [Fri, 5 Aug 2022 05:21:29 +0000 (13:21 +0800)]
Improve multi-pointer X support

* etc/TODO: Document that MPX support still needs work.
* src/xterm.c (xi_handle_interaction): New function.
(handle_one_xevent): Call it in the appropriate places.

2 years agoMerge from origin/emacs-28
Stefan Kangas [Fri, 5 Aug 2022 04:30:27 +0000 (06:30 +0200)]
Merge from origin/emacs-28

f484da5fcb * doc/lispref/loading.texi (Autoload by Prefix): Fix typo.

2 years agoImprove input extension focus handling with multiple master devices
Po Lu [Fri, 5 Aug 2022 02:18:18 +0000 (10:18 +0800)]
Improve input extension focus handling with multiple master devices

* src/xterm.c (x_cache_xi_devices): Initialize device fields to
0.
(xi_handle_focus_change, xi_focus_handle_for_device)
(xi_handle_delete_frame): New functions; store focus information
per-device instead.
(x_detect_focus_change): Handle GenericEvents that way instead.
(handle_one_xevent): Don't cache XI devices on DeviceChanged.
(x_free_frame_resources): Clear any frame focus information.

* src/xterm.h (struct xi_device_t): New fields for focus
tracking.  Add comments describing fields.

2 years agoPrefer defvar-keymap in mail/*.el
Stefan Kangas [Thu, 4 Aug 2022 21:35:46 +0000 (23:35 +0200)]
Prefer defvar-keymap in mail/*.el

* lisp/mail/mspools.el (mspools-mode-map):
* lisp/mail/rmailedit.el (rmail-edit-map):
* lisp/mail/rmailsum.el (rmail-summary-edit-map):
* lisp/mail/supercite.el (sc-T-keymap, sc-mode-map)
(sc-electric-mode-map, sc-minibuffer-local-completion-map)
(sc-minibuffer-local-map): Prefer defvar-keymap.

2 years agoWhitespace fix in gdb-mi.el
Stefan Kangas [Thu, 4 Aug 2022 21:19:10 +0000 (23:19 +0200)]
Whitespace fix in gdb-mi.el

* lisp/progmodes/gdb-mi.el (gdb-memory-next-page)
(gdb-memory-prev-page): Change tab after "defvar" to space, to avoid
potential bugs in tooling.

2 years agoBe more lax when picking up prefixes for loaddefs
Stefan Kangas [Thu, 4 Aug 2022 20:58:59 +0000 (22:58 +0200)]
Be more lax when picking up prefixes for loaddefs

* lisp/emacs-lisp/loaddefs-gen.el
(loaddefs-generate--compute-prefixes): Allow tabs and spaces before
symbol name, so that "(defvar\tfoo-bar nil)" is properly picked up.
Before this change, such a definition would be wrongly picked up as
the symbol "nil".

2 years ago* lisp/Makefile.in (distclean): Also remove loaddefs.elc.
Andreas Schwab [Thu, 4 Aug 2022 20:21:45 +0000 (22:21 +0200)]
* lisp/Makefile.in (distclean): Also remove loaddefs.elc.

2 years agoMerge branch 'feature/long-lines-improvements'
Gregory Heytings [Thu, 4 Aug 2022 19:19:36 +0000 (21:19 +0200)]
Merge branch 'feature/long-lines-improvements'

2 years ago* lisp/org/org.el: Fix load of compiled or compressed org-loaddefs
Peder O. Klingenberg [Thu, 4 Aug 2022 18:27:56 +0000 (20:27 +0200)]
* lisp/org/org.el: Fix load of compiled or compressed org-loaddefs

* lisp/org/org.el (eq): Fix load of compiled or compressed
org-loaddefs (bug#56982).

2 years agoAdapt Tramp for backward compatibility
Michael Albinus [Thu, 4 Aug 2022 17:27:49 +0000 (19:27 +0200)]
Adapt Tramp for backward compatibility

* lisp/net/tramp-compat.el (tramp-compat-auth-source-netrc-parse-all):
New defalias.

* lisp/net/tramp.el (tramp-parse-netrc): Use it.  (Bug#56976)

2 years agoEnsure that updated loaddefs files are byte-compiled
Lars Ingebrigtsen [Thu, 4 Aug 2022 17:10:20 +0000 (19:10 +0200)]
Ensure that updated loaddefs files are byte-compiled

* lisp/Makefile.in: Add autoloads as an ordering-only dependency
to compile-main so that newly updated loaddefs files are byte-compiled.

2 years agoFix last Tramp change, especially for bug#56963
Michael Albinus [Thu, 4 Aug 2022 16:12:25 +0000 (18:12 +0200)]
Fix last Tramp change, especially for bug#56963

* lisp/net/tramp-adb.el (tramp-adb-handle-write-region):
Add missing space.

* lisp/net/tramp-sh.el (tramp-sh-handle-write-region): Use "cat",
"echo -n" isn't portable.  (Bug#56963)

* lisp/net/tramp.el (tramp-file-name-unify): Unquote file name in time.

2 years agoSuppress compilation warnings in netrc.el
Lars Ingebrigtsen [Thu, 4 Aug 2022 15:46:14 +0000 (17:46 +0200)]
Suppress compilation warnings in netrc.el

* lisp/obsolete/netrc.el (netrc-machine-user-or-password)
(netrc-credentials): Suppress some warnings.

2 years agoDocument obsoletion of netrc-parse better
Stefan Kangas [Thu, 4 Aug 2022 15:35:20 +0000 (17:35 +0200)]
Document obsoletion of netrc-parse better

* lisp/obsolete/netrc.el (netrc-parse): Add 'obsolete' declaration
pointing to 'auth-source-netrc-parse-all' for documentation purposes.

2 years agoClean up output of make-command-summary slightly
Stefan Kangas [Thu, 4 Aug 2022 15:26:19 +0000 (17:26 +0200)]
Clean up output of make-command-summary slightly

* lisp/makesum.el (make-command-summary): Don't print today's date
or status messages.

2 years agoMove netrc tests to auth-source-tests.el
Lars Ingebrigtsen [Thu, 4 Aug 2022 15:33:34 +0000 (17:33 +0200)]
Move netrc tests to auth-source-tests.el

2 years agoAdd obsolete-since header to netrc.el
Lars Ingebrigtsen [Thu, 4 Aug 2022 15:14:23 +0000 (17:14 +0200)]
Add obsolete-since header to netrc.el

* lisp/obsolete/netrc.el: Add obsolete-since header (bug#56976).

2 years agoMove netrc.el to lisp/obsolete/
Lars Ingebrigtsen [Thu, 4 Aug 2022 15:12:05 +0000 (17:12 +0200)]
Move netrc.el to lisp/obsolete/

2 years agoUse auth-source in tramp-parse-netrc
Lars Ingebrigtsen [Thu, 4 Aug 2022 15:09:46 +0000 (17:09 +0200)]
Use auth-source in tramp-parse-netrc

* lisp/auth-source.el (auth-source-netrc-parse-all): Autoload.

* lisp/net/tramp.el (tramp-parse-netrc): Don't use netrc-parse,
because it's going to be made obsolete (bug#56976).

2 years agoAdd obsolete-since line to autoload.el and adjust comments
Lars Ingebrigtsen [Thu, 4 Aug 2022 15:06:07 +0000 (17:06 +0200)]
Add obsolete-since line to autoload.el and adjust comments

* lisp/obsolete/autoload.el: Add obsolete-since line.

2 years agoMove autoload.el to lisp/obsolete/
Lars Ingebrigtsen [Thu, 4 Aug 2022 15:03:59 +0000 (17:03 +0200)]
Move autoload.el to lisp/obsolete/

2 years agoAdjust autoload require in cus-dep.el
Lars Ingebrigtsen [Thu, 4 Aug 2022 15:03:14 +0000 (17:03 +0200)]
Adjust autoload require in cus-dep.el

* lisp/cus-dep.el (loaddefs-gen): Don't require autoload, because
none of the functions are used.

2 years agoDon't require netrc in nnimap.el
Lars Ingebrigtsen [Thu, 4 Aug 2022 14:55:21 +0000 (16:55 +0200)]
Don't require netrc in nnimap.el

* lisp/gnus/nnimap.el (netrc): Don't require, since it's not used.

2 years agoAdd new function auth-source-netrc-parse-all
Lars Ingebrigtsen [Thu, 4 Aug 2022 14:50:06 +0000 (16:50 +0200)]
Add new function auth-source-netrc-parse-all

* lisp/auth-source.el (auth-source-netrc-parse-all): New function
(bug#56976).
(auth-source-netrc-parse): Partially revert behaviour in previous
change -- require :allow-null to match.

2 years agoMinor cleanups in autoload.el/loaddefs-gen.el
Lars Ingebrigtsen [Thu, 4 Aug 2022 14:41:39 +0000 (16:41 +0200)]
Minor cleanups in autoload.el/loaddefs-gen.el

* lisp/subr.el (package--builtin-versions): Adjust comments.

* lisp/emacs-lisp/loaddefs-gen.el (no-update-autoloads): Moved
here from autoload.el.
* lisp/emacs-lisp/loaddefs-gen.el: Removed now that it's no longer
used.

* lisp/emacs-lisp/package.el
(package-autoload-ensure-default-file): Don't warn about
soon-to-be obsolete functon.

2 years agoMinor checkdoc.el clean up
Lars Ingebrigtsen [Thu, 4 Aug 2022 14:29:47 +0000 (16:29 +0200)]
Minor checkdoc.el clean up

* lisp/emacs-lisp/checkdoc.el (generate-autoload-cookie): This is
no longer used, so remove reference.

2 years agoAdjust admin/emacs for new autoloads
Lars Ingebrigtsen [Thu, 4 Aug 2022 14:24:26 +0000 (16:24 +0200)]
Adjust admin/emacs for new autoloads

* admin/emake: Adjust for new autoloads.

2 years agoAllow auth-source-netrc-parse to return all lines
Lars Ingebrigtsen [Thu, 4 Aug 2022 14:09:48 +0000 (16:09 +0200)]
Allow auth-source-netrc-parse to return all lines

* lisp/auth-source.el (auth-source-netrc-parse): If host/user/port
is nil, don't require those to match.

2 years agoClean up nntp-send-authinfo after removing obsolete variable
Lars Ingebrigtsen [Thu, 4 Aug 2022 13:37:31 +0000 (15:37 +0200)]
Clean up nntp-send-authinfo after removing obsolete variable

* lisp/gnus/nntp.el (netrc-parse, netrc-machine, netrc-get):
Remove declarations.
(nntp-send-authinfo): Now that `nntp-authinfo-file' is removed,
don't parse the .authinfo file twice, but just rely on the
auth-source functions (bug#56972).

2 years agoAdd define-keymap to autoload-ignored-definitions
Lars Ingebrigtsen [Thu, 4 Aug 2022 13:27:47 +0000 (15:27 +0200)]
Add define-keymap to autoload-ignored-definitions

* lisp/emacs-lisp/loaddefs-gen.el (autoload-ignored-definitions):
Ignore `define-keymap', too (bug#56973).

2 years agoAdd define-key-after to autoload-ignored-definitions
Stefan Kangas [Thu, 4 Aug 2022 12:55:08 +0000 (14:55 +0200)]
Add define-key-after to autoload-ignored-definitions

* lisp/emacs-lisp/loaddefs-gen.el (autoload-ignored-definitions):
Add define-key-after and define-ibuffer-sorter.

2 years ago* doc/lispref/loading.texi (Autoload by Prefix): Fix typo.
Stefan Kangas [Thu, 4 Aug 2022 12:58:08 +0000 (14:58 +0200)]
* doc/lispref/loading.texi (Autoload by Prefix): Fix typo.

2 years ago; * lisp/org/ob-lilypond.el: Add FIXME.
Stefan Kangas [Thu, 4 Aug 2022 12:48:44 +0000 (14:48 +0200)]
; * lisp/org/ob-lilypond.el: Add FIXME.

2 years ago; * lisp/progmodes/meta-mode.el: Delete some commented out code.
Stefan Kangas [Thu, 4 Aug 2022 12:45:42 +0000 (14:45 +0200)]
; * lisp/progmodes/meta-mode.el: Delete some commented out code.

2 years agoFix namespace problem in meta-mode.el
Stefan Kangas [Thu, 4 Aug 2022 12:37:17 +0000 (14:37 +0200)]
Fix namespace problem in meta-mode.el

* lisp/progmodes/meta-mode.el
(meta-font-lock-match-declaration-item-and-skip-to-next): Rename
from 'font-lock-match-meta-declaration-item-and-skip-to-next'.
Retain old name as an obsolete alias.

2 years agoAdd more autoload-ignored-definitions
Stefan Kangas [Thu, 4 Aug 2022 12:36:34 +0000 (14:36 +0200)]
Add more autoload-ignored-definitions

* lisp/emacs-lisp/loaddefs-gen.el (autoload-ignored-definitions):
Add define-ibuffer-column.

2 years ago* eww.el (eww-browse): Raise error if there are no arguments
Philip Kaludercic [Thu, 4 Aug 2022 12:20:58 +0000 (14:20 +0200)]
* eww.el (eww-browse): Raise error if there are no arguments

2 years ago; * src/keyboard.c (safe_run_hooks_maybe_narrowed): Fix broken merge.
Gregory Heytings [Thu, 4 Aug 2022 11:57:27 +0000 (11:57 +0000)]
; * src/keyboard.c (safe_run_hooks_maybe_narrowed): Fix broken merge.

2 years ago; * src/xterm.c (x_sync_init_fences): Fix number of fences announced.
Po Lu [Thu, 4 Aug 2022 11:53:45 +0000 (19:53 +0800)]
; * src/xterm.c (x_sync_init_fences): Fix number of fences announced.

2 years ago* lisp/find-dired.el (lookfor-dired): Make obsolete.
Stefan Kangas [Thu, 4 Aug 2022 10:25:17 +0000 (12:25 +0200)]
* lisp/find-dired.el (lookfor-dired): Make obsolete.

2 years agoMerge branch 'master' into feature/long-lines-improvements
Gregory Heytings [Thu, 4 Aug 2022 10:21:31 +0000 (12:21 +0200)]
Merge branch 'master' into feature/long-lines-improvements

2 years agoRename recently added macro to follow conventions
Stefan Kangas [Thu, 4 Aug 2022 10:18:46 +0000 (12:18 +0200)]
Rename recently added macro to follow conventions

* lisp/eshell/em-extpipe.el (eshell-extpipe--or-with-catch):
Rename from 'em-extpipe--or-with-catch'.

2 years agoFix namespace problem in dired-aux.el
Stefan Kangas [Thu, 4 Aug 2022 10:14:10 +0000 (12:14 +0200)]
Fix namespace problem in dired-aux.el

* lisp/dired-aux.el (dired-minibuffer-default-add-shell-commands):
Rename from 'minibuffer-default-add-dired-shell-commands'.  Retain
old name as an obsolete alias.

2 years agoFix Tramp test
Michael Albinus [Thu, 4 Aug 2022 09:59:18 +0000 (11:59 +0200)]
Fix Tramp test

* test/lisp/net/tramp-tests.el (tramp-test48-unload):
Ignore autoload functions in `tramp-file-name' structure tests,
since `tramp-file-name-handler' is also autoloaded.

2 years ago; * etc/NEWS: Announce obsoletion of url-about.el.
Stefan Kangas [Thu, 4 Aug 2022 09:55:43 +0000 (11:55 +0200)]
; * etc/NEWS: Announce obsoletion of url-about.el.

2 years ago; * src/composite.c (find_automatic_composition): Fix a typo.
Eli Zaretskii [Thu, 4 Aug 2022 09:47:32 +0000 (12:47 +0300)]
; * src/composite.c (find_automatic_composition): Fix a typo.