emacs.git
2 years agod/control: Add build-deps on libsqlite3, libtree-sitter and libwebp
Sean Whitton [Sun, 30 Jul 2023 19:18:07 +0000 (20:18 +0100)]
d/control: Add build-deps on libsqlite3, libtree-sitter and libwebp

2 years agodebian/upstream-version: Update regexp to find Emacs 29.1's AC_INIT
Sean Whitton [Sun, 30 Jul 2023 19:15:08 +0000 (20:15 +0100)]
debian/upstream-version: Update regexp to find Emacs 29.1's AC_INIT

2 years agod/copyright: Updates for Emacs 29.1
Sean Whitton [Sun, 30 Jul 2023 19:13:44 +0000 (20:13 +0100)]
d/copyright: Updates for Emacs 29.1

2 years agoMerge upstream version 29.1
Sean Whitton [Sun, 30 Jul 2023 19:11:51 +0000 (20:11 +0100)]
Merge upstream version 29.1

2 years agoRename to 'inhibit-automatic-native-compilation'
Lars Ingebrigtsen [Mon, 3 Oct 2022 17:49:53 +0000 (19:49 +0200)]
Rename to 'inhibit-automatic-native-compilation'

The following upstream patch has been backported:

  Rename to inhibit-automatic-native-compilation

  * src/comp.c (maybe_defer_native_compilation):
  (syms_of_comp):
  * lisp/startup.el (inhibit-native-compilation):
  (normal-top-level):
  * lisp/progmodes/elisp-mode.el (emacs-lisp-native-compile-and-load):
  * lisp/emacs-lisp/comp.el (comp-trampoline-compile): Rename
  inhibit-native-compilation to inhibit-automatic-native-compilation.

Origin: upstream, commit f97993ee667f9be7589825f3a4fbc095d6944ec6
Forwarded: not-needed

2 years agoAdd 'inhibit-native-compilation'
Lars Ingebrigtsen [Mon, 3 Oct 2022 13:26:04 +0000 (15:26 +0200)]
Add 'inhibit-native-compilation'

The following upstream patch has been backported:

  Add new variable 'inhibit-native-compilation'

  * lisp/startup.el (normal-top-level): Set
  inhibit-native-compilation from environment variable.

  * lisp/emacs-lisp/comp.el (comp-trampoline-compile): Don't write
  trampolines to disk.

  * lisp/progmodes/elisp-mode.el
  (emacs-lisp-native-compile-and-load): Adjust.

  * src/comp.c (syms_of_comp): New variable
  inhibit-native-compilation.
  (maybe_defer_native_compilation): Use it.

Origin: upstream, commit: 5fec9182dbeffa88cef6651d8c798ef9665d6681
Forwarded: not-needed

2 years agoMark flaky test process-tests/multiple-threads-waiting as unstable
Sean Whitton [Tue, 15 Nov 2022 23:26:59 +0000 (16:26 -0700)]
Mark flaky test process-tests/multiple-threads-waiting as unstable

It times out:

     passed  22/28  process-tests/fd-setsize-no-crash/make-serial-process (0.021449 sec)
  make[5]: *** [Makefile:182: src/process-tests.log] Error 134
    GEN      src/regex-emacs-tests.log
    GEN      src/search-tests.log
    GEN      src/syntax-tests.log
    GEN      src/textprop-tests.log
    GEN      src/thread-tests.log
    GEN      src/timefns-tests.log
    GEN      src/undo-tests.log
    GEN      src/xdisp-tests.log
    GEN      src/xfaces-tests.log
    GEN      src/xml-tests.log
  make[5]: Leaving directory '/<<PKGBUILDDIR>>/debian/build-gtk/test'
  make[4]: [Makefile:335: check-doit] Error 2 (ignored)

  SUMMARY OF TEST RESULTS
  -----------------------
  Files examined: 375
  Ran 5408 tests, 28 failed to run, 5273 results as expected, 0 unexpected, 135 skipped
  1 files did not finish:
    src/process-tests.log
  make[4]: *** [Makefile:336: check-doit] Error 2

2 years agoMark test-undo-region as unstable
Sean Whitton [Tue, 15 Nov 2022 22:54:41 +0000 (15:54 -0700)]
Mark test-undo-region as unstable

It is repeatedly failing on Debian's arch:all autobuilders, though
seemingly nowhere else:

     passed  40/44  simple-transpose-subr (0.000396 sec)
  Test test-undo-region backtrace:
    signal(ert-test-failed (((should (= (length (delq nil (undo-make-sel
    ert-fail(((should (= (length (delq nil (undo-make-selective-list 1 9
    #f(compiled-function () #<bytecode 0x52f126616d2cdbd>)()
    ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
    ert-run-test(#s(ert-test :name test-undo-region :documentation nil :
    ert-run-or-rerun-test(#s(ert--stats :selector ... :tests ... :test-m
    ert-run-tests((not (or (tag :expensive-test) (tag :unstable))) #f(co
    ert-run-tests-batch((not (or (tag :expensive-test) (tag :unstable)))
    ert-run-tests-batch-and-exit((not (or (tag :expensive-test) (tag :un
    command-line-1(("-L" ":/<<PKGBUILDDIR>>/debian/build
    command-line()
    normal-top-level()
  Test test-undo-region condition:
      (ert-test-failed
       ((should
         (=
   (length ...)
   2))
        :form
        (= 3 2)
        :value nil))
     FAILED  41/44  test-undo-region (0.000185 sec)

2 years agopdumper: set DUMP_RELOC_ALIGNMENT_BITS=1 for m68k
John Paul Adrian Glaubitz [Sat, 24 Sep 2022 18:37:18 +0000 (13:37 -0500)]
pdumper: set DUMP_RELOC_ALIGNMENT_BITS=1 for m68k

Before the change builds would fail like this:

  (...)
  Loading /<<BUILDDIR>>/emacs-27.1+1/debian/build-src/lisp/vc/vc-hooks.el (source)...
  Loading /<<BUILDDIR>>/emacs-27.1+1/debian/build-src/lisp/vc/ediff-hook.el (source)...
  Loading /<<BUILDDIR>>/emacs-27.1+1/debian/build-src/lisp/uniquify.el (source)...
  Loading /<<BUILDDIR>>/emacs-27.1+1/debian/build-src/lisp/electric.el (source)...
  Loading /<<BUILDDIR>>/emacs-27.1+1/debian/build-src/lisp/emacs-lisp/eldoc.el (source)...
  Loading /<<BUILDDIR>>/emacs-27.1+1/debian/build-src/lisp/cus-start.el (source)...
  Loading /<<BUILDDIR>>/emacs-27.1+1/debian/build-src/lisp/tooltip.el (source)...
  Finding pointers to doc strings...
  Finding pointers to doc strings...done
  Dumping under the name bootstrap-emacs.pdmp
  dumping fingerprint: 7b5c59c589dc151eb1e4269bd83fbe809616b5cb9bb5c80014d5b560b391dfb6
  dump relocation out of range

[rlb@defaultvalue.org: create commit message]

Origin: debian
Bug: https://bugs.gnu.org/44531
Bug-Debian: http://bugs.debian.org/1019130
Forwarded: not-needed

2 years agoMark vc-bzr-test-fauilt-bzr-autoloads as unstable for now
Rob Browning [Sun, 16 Dec 2018 23:13:36 +0000 (17:13 -0600)]
Mark vc-bzr-test-fauilt-bzr-autoloads as unstable for now

Currently the test fails like this:

  Running 3 tests (2018-12-17 12:17:43-0600)
     passed  1/3  vc-bzr-test-bug9726
  Mark set
  Press C-c C-c when you are done editing.
  Enter a change comment.  Type C-c C-c when done
     passed  2/3  vc-bzr-test-bug9781
  Falling back on "slow" status detection ((file-missing "Opening input file" "No such file or directory" "/tmp/vc-bzr-testVlgmsb/bzr/.bzr/checkout/dirstate"))
  Error: (error "Running bzr status --no-classify loaddefs.el...FAILED (status 3)")
  Warnings in `bzr' output: bzr: ERROR: invalid header line: ''

  Error: (error "Running bzr status --no-classify loaddefs.el...FAILED (status 3)")
  Warnings in `bzr' output: bzr: ERROR: invalid header line: ''

  Test vc-bzr-test-faulty-bzr-autoloads backtrace:
    logand(nil 128)
    vc-mode-line("/tmp/vc-bzr-testVlgmsb/bzr/loaddefs.el" Bzr)
    vc-refresh-state()
    run-hooks(find-file-hook)
    after-find-file(t t)
    find-file-noselect-1(#<buffer loaddefs.el> "/tmp/vc-bzr-testVlgmsb/b
    find-file-noselect("/tmp/vc-bzr-testVlgmsb/bzr/loaddefs.el")
    autoload-find-generated-file()
    update-directory-autoloads("/tmp/vc-bzr-testVlgmsb/bzr/")
    (progn (update-directory-autoloads default-directory) t)
    (setq value-35 (progn (update-directory-autoloads default-directory)
    (unwind-protect (setq value-35 (progn (update-directory-autoloads de
    (if (unwind-protect (setq value-35 (progn (update-directory-autoload
    (let (form-description-36) (if (unwind-protect (setq value-35 (progn
    (let ((value-35 (gensym "ert-form-evaluation-aborted-"))) (let (form
    (progn (call-process vc-bzr-program nil nil nil "init") (let ((temp-
    (unwind-protect (progn (call-process vc-bzr-program nil nil nil "ini
    (let* ((homedir (make-temp-file "vc-bzr-test" t)) (bzrdir (expand-fi
    (lambda nil (let* ((fn-30 (function executable-find)) (args-31 (cond
    ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
    ert-run-test(#s(ert-test :name vc-bzr-test-faulty-bzr-autoloads :doc
    ert-run-or-rerun-test(#s(ert--stats :selector (not (or (tag :expensi
    ert-run-tests((not (or (tag :expensive-test) (tag :unstable))) #f(co
    ert-run-tests-batch((not (or (tag :expensive-test) (tag :unstable)))
    ert-run-tests-batch-and-exit((not (or (tag :expensive-test) (tag :un
    eval((ert-run-tests-batch-and-exit '(not (or (tag :expensive-test) (
    command-line-1(("-L" ":/home/locke/tmp/main-26.1/debian/build-src/te
    command-line()
    normal-top-level()
  Test vc-bzr-test-faulty-bzr-autoloads condition:
      (wrong-type-argument number-or-marker-p nil)
     FAILED  3/3  vc-bzr-test-faulty-bzr-autoloads

  Ran 3 tests, 2 results as expected, 1 unexpected (2018-12-17 12:17:46-0600)

  1 unexpected results:
     FAILED  vc-bzr-test-faulty-bzr-autoloads

2 years agoKill gpg agent in package-test.el to avoid a race
Rob Browning [Mon, 10 Oct 2016 22:35:56 +0000 (17:35 -0500)]
Kill gpg agent in package-test.el to avoid a race

package-test.el should no longer fail during clean up.

* Previously a delete-directories call raced with the gpg agent's own
  cleanup process (presumably triggered by the first deletion of one of
  the agent's sockets).  As a result, it looks like the agent might
  delete one of its sockets after delete-directories had decided to
  delete the socket, but before it made the attempt, causing an
  exception.

* To fix the problem, explicitly ask gpg-connect-agent to kill the agent
  before attempting to delete the gnupg home directory, and then delete
  via "rm -rf" to ignore any vanishing files.

2 years agoDon't try to build src/macuvs.h (via IVD_Sequences.txt)
Rob Browning [Wed, 22 Oct 2014 00:10:17 +0000 (19:10 -0500)]
Don't try to build src/macuvs.h (via IVD_Sequences.txt)

These are OS X specific, and were removed for now, due to uncertainty
over the licensing.

2 years agoModify the output of (version) to indicate Debian modifications
Rob Browning [Tue, 5 Apr 2011 03:46:28 +0000 (22:46 -0500)]
Modify the output of (version) to indicate Debian modifications

The output of (version) has been modified to indicate Debian modifications.

Author: Rob Browning <rlb@defaultvalue.org>
Added-by: Rob Browning <rlb@defaultvalue.org>
2 years agoAdjust documentation references for Debian
Rob Browning [Tue, 5 Apr 2011 03:46:25 +0000 (22:46 -0500)]
Adjust documentation references for Debian

Various documentation references have been adjusted for Debian.

References to /usr/local/... have been changed to /usr/... as
appropriate, etc.

2 years agoRemove files that appear to be incompatible with the DFSG
Rob Browning [Tue, 5 Apr 2011 03:46:24 +0000 (22:46 -0500)]
Remove files that appear to be incompatible with the DFSG

Files that appear to be incompatible with the DFSG have been removed.

A number of files have been removed from this package because their
licenses are not compatible with the Debian Free Software Guidelines
(DFSG), or because it wasn't completely clear that their licenses are
compatible.

In particular, all of the files which are covered under the GFDL and
have invariant sections have been removed in accordance with this
General Resolution: http://www.debian.org/vote/2006/vote_001.

The files that have been removed, but still appear to be
distributable, have been moved to packages in Debian's non-free
section.

Author: Rob Browning <rlb@defaultvalue.org>
Added-by: Rob Browning <rlb@defaultvalue.org>
Status: new

2 years agoRun debian-startup and set debian-emacs-flavor
Rob Browning [Tue, 5 Apr 2011 03:46:22 +0000 (22:46 -0500)]
Run debian-startup and set debian-emacs-flavor

Emacs runs debian-startup and sets debian-emacs-flavor.

* Emacs runs debian-startup during the startup process unless
  site-run-file is false.

* The global variable debian-emacs-flavor is bound to 'emacs.

Author: Rob Browning <rlb@defaultvalue.org>

2 years agoPrefer /usr/share/info/emacs/
Rob Browning [Sun, 7 Apr 2013 20:03:05 +0000 (15:03 -0500)]
Prefer /usr/share/info/emacs/

Emacs prefers /usr/share/info/emacs to /usr/share/info.

The value of Info-default-directory-list has been augmented via
lisp/info.el to include /usr/share/info/emacs before /usr/share/info.

2 years agorecord new upstream branch
Sean Whitton [Sun, 30 Jul 2023 18:34:46 +0000 (19:34 +0100)]
record new upstream branch

2 years agoMerge upstream version 29.1
Sean Whitton [Sun, 30 Jul 2023 15:32:46 +0000 (16:32 +0100)]
Merge upstream version 29.1

2 years agoAdjust debian/changelog for UNRELEASED 29.1+1-1 development
Sean Whitton [Sun, 30 Jul 2023 14:27:31 +0000 (15:27 +0100)]
Adjust debian/changelog for UNRELEASED 29.1+1-1 development

2 years ago; Last-minute changes befor releasing 29.1
Eli Zaretskii [Sun, 30 Jul 2023 06:11:49 +0000 (02:11 -0400)]
; Last-minute changes befor releasing 29.1

* ChangeLog.4:
* etc/HISTORY: Update.

2 years agoUpdate CMake support due to upstream changes (bug#64922)
Vincenzo Pupillo [Sat, 29 Jul 2023 19:10:57 +0000 (21:10 +0200)]
Update CMake support due to upstream changes (bug#64922)

A recent change in tree-sitter-cmake grammar support for CMake (commit
fe9b5e0), now put arguments are wrapped in a new argument_list node.
To support the old and new version of the grammar, a new function was
added on which string syntax highlighting now depends.

* lisp/progmodes/cmake-ts-mode.el
(cmake-ts-mode--font-lock-compatibility-fe9b5e0): Indent helper
function to handle different tree-sitter-cmake version.
* lisp/progmodes/cmake-ts-mode.el
(cmake-ts-mode--font-lock-settings): Use the new function to handle
the new argument_list node.

2 years agoUpdate debian/changelog for 28.2+1-16 release
Sean Whitton [Sat, 29 Jul 2023 09:32:06 +0000 (10:32 +0100)]
Update debian/changelog for 28.2+1-16 release

2 years agoSwitch to gcc-13 & restore versioned gcc build-dep
Sean Whitton [Sat, 29 Jul 2023 09:30:27 +0000 (10:30 +0100)]
Switch to gcc-13 & restore versioned gcc build-dep

Closes: #1042185
2 years agoAdjust debian/changelog for UNRELEASED 28.2+1-16 development
Sean Whitton [Sat, 29 Jul 2023 09:29:09 +0000 (10:29 +0100)]
Adjust debian/changelog for UNRELEASED 28.2+1-16 development

2 years agoRemove nullptr named node from c++-ts-mode (bug#64818)
Theodor Thornhill [Mon, 24 Jul 2023 18:18:09 +0000 (20:18 +0200)]
Remove nullptr named node from c++-ts-mode (bug#64818)

The nullptr node was changed from a named node to an unnamed node
upstream[0], which caused font locking to break. As this is a small
enough regression, no compat code is required.

* lisp/progmodes/c-ts-mode.el (c-ts-mode--font-lock-settings): Remove
node no longer in use.

[0]:
https://github.com/tree-sitter/tree-sitter-c/commit/c75868f8b508ae32a0c8490da91bb31b2b96430e

2 years agoMake compat check also check typescript
Theodor Thornhill [Mon, 24 Jul 2023 14:17:34 +0000 (16:17 +0200)]
Make compat check also check typescript

* lisp/progmodes/typescript-ts-mode.el
(tsx-ts-mode--font-lock-compatibility-bb1f97b):
Add argument so that we run the 'treesit-query-capture' when the
language is 'typescript', not only 'tsx'.

* lisp/progmodes/typescript-ts-mode.el
(typescript-ts-mode--font-lock-settings): Use supplied argument.

2 years ago; * etc/HISTORY: Fix the 28.3 entry.
Eli Zaretskii [Sun, 23 Jul 2023 13:36:30 +0000 (16:36 +0300)]
; * etc/HISTORY: Fix the 28.3 entry.

2 years ago; * lisp/ldefs-boot.el: Regenerated for Emacs 29.1.
Eli Zaretskii [Sun, 23 Jul 2023 08:18:31 +0000 (04:18 -0400)]
; * lisp/ldefs-boot.el: Regenerated for Emacs 29.1.

2 years agoUpdate HISTORY and ChangeLog.4
Eli Zaretskii [Sun, 23 Jul 2023 07:54:44 +0000 (03:54 -0400)]
Update HISTORY and ChangeLog.4

* etc/HISTORY:
* ChangeLog.4: Update for the Emacs 29.1 release.

2 years agoBump Emacs version
Eli Zaretskii [Sun, 23 Jul 2023 07:40:46 +0000 (03:40 -0400)]
Bump Emacs version

* README:
* configure.ac:
* nt/README.W32:
* msdos/sed2v2.inp: Bump Emacs version to 29.1.

2 years agoUpdate AUTHORS and ChangeLog.4
Eli Zaretskii [Sun, 23 Jul 2023 07:36:32 +0000 (03:36 -0400)]
Update AUTHORS and ChangeLog.4

* ChangeLog.4:
* etc/AUTHORS: Update for Emacs 29.1 release.

2 years ago; * etc/NEWS: Prepare for Emacs 29.1 release.
Eli Zaretskii [Sun, 23 Jul 2023 07:16:35 +0000 (03:16 -0400)]
; * etc/NEWS: Prepare for Emacs 29.1 release.

Do not merge to master.

2 years ago; * lisp/progmodes/typescript-ts-mode.el (treesit-query-capture): Declare.
Eli Zaretskii [Sun, 23 Jul 2023 05:16:14 +0000 (08:16 +0300)]
; * lisp/progmodes/typescript-ts-mode.el (treesit-query-capture): Declare.

2 years agoUpdate JSX support due to upstream changes (bug#64647)
Vincenzo Pupillo [Sat, 22 Jul 2023 11:38:48 +0000 (13:38 +0200)]
Update JSX support due to upstream changes (bug#64647)

A recent change in tree-sitter-javascript grammar support for
JSX (commit bb1f97b), changed two things:
1. renamed nested_identifier to member_expression
2. removed jsx_fragment, jsx_text is used instead

* lisp/progmodes/js.el (js-jsx--treesit-indent-compatibility-bb1f97b):
Indent helper function to handle different tree-sitter-javascript
version.
* lisp/progmodes/js.el (js--treesit-indent-rules): Use the new
function to handle both jsx_fragment and jsx_text.
* lisp/progmodes/js.el (js-jsx--treesit-font-lock-compatibility-bb1f97b):
Font lock helper function for handle different tree-sitter-javascript
version.
* lisp/progmodes/js.el (js--treesit-font-lock-settings): Use the new
function to handle both nested_identifier and member_expression.

2 years agoUpdate TSX support due to upstream changes (bug#64647)
Vincenzo Pupillo [Sat, 22 Jul 2023 11:37:54 +0000 (13:37 +0200)]
Update TSX support due to upstream changes (bug#64647)

A recent change in tree-sitter-typescript grammar support for
TSX (commit b893426), changed two things:
1. renamed nested_identifier to member_expression
2. removed jsx_fragment, jsx_text is used instead

* lisp/progmodes/typescript-ts-mode.el
(tsx-ts-mode--indent-compatibility-b893426): Indent helper function
to handle different tree-sitter-typescript version.
* lisp/progmodes/typescript-ts-mode.el
(typescript-ts-mode--indent-rules): use the new function to handle
both jsx_fragment and jsx_text.
* lisp/progmodes/typescript-ts-mode.el
(tsx-ts-mode--font-lock-compatibility-bb1f97b): Font lock helper
function for handle different tree-sitter-typescript version.
* lisp/progmodes/typescript-ts-mode.el
(typescript-ts-mode--font-lock-settings): Use the new function to
handle both nested_identifier and member_expression.

2 years ago; Fix customization form of 'bookmark-watch-bookmark-file'
Eli Zaretskii [Sat, 22 Jul 2023 12:45:40 +0000 (15:45 +0300)]
; Fix customization form of 'bookmark-watch-bookmark-file'

* lisp/bookmark.el (bookmark-watch-bookmark-file): Fix the doc
string and the customization type.  (Bug#64790)

2 years ago; Improve documentation of automatic addition to minibuffer history
Eli Zaretskii [Sat, 22 Jul 2023 08:02:04 +0000 (11:02 +0300)]
; Improve documentation of automatic addition to minibuffer history

* doc/lispref/minibuf.texi (Minibuffer History)
(Minibuffer Commands, Text from Minibuffer)
(Minibuffer Completion): Document the behavior of 'M-n' and
"future history" when the value(s) in DEFAULT is/are exhausted.
(Bug#64656)

2 years ago; Improve documentation of 'last-command-event'
Eli Zaretskii [Sat, 22 Jul 2023 06:34:15 +0000 (09:34 +0300)]
; Improve documentation of 'last-command-event'

* doc/lispref/text.texi (Commands for Insertion):
* doc/lispref/commands.texi (Command Loop Info):
* src/cmds.c (syms_of_cmds) <post-self-insert-hook>: Improve the
documentation of 'last-command-event' and 'post-self-insert-hook'.

2 years ago; * lisp/subr.el (ignore, always): Doc fixes. (Bug#64776)
Eli Zaretskii [Sat, 22 Jul 2023 05:36:08 +0000 (08:36 +0300)]
; * lisp/subr.el (ignore, always): Doc fixes.  (Bug#64776)

2 years agoUnbreak build with CHECK_STRUCTS.
Philipp Stephani [Fri, 21 Jul 2023 16:22:34 +0000 (18:22 +0200)]
Unbreak build with CHECK_STRUCTS.

The hash for the Lisp_Overlay structure has changed due to the (comment-only)
commit 7ac947f34c745c61f8acc1fe2452a2c720d57a0d.

* src/pdumper.c (dump_overlay): Update struct hash.

2 years agoRevert "Improve commentary in nsfns.m"
Mattias Engdegård [Fri, 21 Jul 2023 12:49:35 +0000 (14:49 +0200)]
Revert "Improve commentary in nsfns.m"

This reverts commit 3af27a4b815906c2ee38cbaf3a765289b3df061a,
because it missed the point completely.
Please talk to the original author next time.

2 years agoFix NetBSD build --with-sound
Eli Zaretskii [Thu, 20 Jul 2023 16:09:42 +0000 (19:09 +0300)]
Fix NetBSD build --with-sound

* src/sound.c (alsa_write): Use ESTRPIPE only if defined.
(Bug#64698)

2 years agoFix typo in pre-filter for underline property
Mauro Aranda [Sat, 15 Jul 2023 20:05:23 +0000 (17:05 -0300)]
Fix typo in pre-filter for underline property

* lisp/cus-face.el (custom-face-attributes): Fix typo (Bug#64347)

2 years ago; * src/xdisp.c: Fix wording in commentary.
Eli Zaretskii [Thu, 20 Jul 2023 10:23:01 +0000 (13:23 +0300)]
; * src/xdisp.c: Fix wording in commentary.

2 years agoImprove commentary in nsfns.m
Po Lu [Thu, 20 Jul 2023 08:01:34 +0000 (16:01 +0800)]
Improve commentary in nsfns.m

* src/nsfns.m (lispString): Avoid C++ comment and make the
commentary actually relevant to the reason `make_string' is
used.

2 years agoFix typos and ommissions in cus-edit.el
Po Lu [Thu, 20 Jul 2023 07:55:07 +0000 (15:55 +0800)]
Fix typos and ommissions in cus-edit.el

* lisp/cus-edit.el (custom-display): Add missing display types.

2 years ago; * src/xdisp.c: Fix typos in the commentary.
Eli Zaretskii [Wed, 19 Jul 2023 16:28:48 +0000 (19:28 +0300)]
; * src/xdisp.c: Fix typos in the commentary.

2 years ago; * src/xdisp.c: Improve commentary. (Bug#64596)
Eli Zaretskii [Wed, 19 Jul 2023 14:54:53 +0000 (17:54 +0300)]
; * src/xdisp.c: Improve commentary.  (Bug#64596)

2 years ago; * admin/notes/bugtracker: Fix punctuation.
Eli Zaretskii [Wed, 19 Jul 2023 12:05:52 +0000 (15:05 +0300)]
; * admin/notes/bugtracker: Fix punctuation.

2 years ago; * admin/notes/bugtracker: Use 'e.g.' throughout the document.
Arash Esbati [Tue, 18 Jul 2023 21:07:01 +0000 (23:07 +0200)]
; * admin/notes/bugtracker: Use 'e.g.' throughout the document.

2 years agoConvert NUL-containing NSString objects to Lisp strings correctly
Mattias Engdegård [Tue, 18 Jul 2023 13:42:55 +0000 (15:42 +0200)]
Convert NUL-containing NSString objects to Lisp strings correctly

This cures the inability to paste text containing NUL from other
applications on macOS, introduced by mistake in 7e3c2b553f
(bug#64697).

* src/nsfns.m ([NSString lispString]): Use make_string instead of
build_string which relies on NUL-termination.

2 years ago; * doc/lispref/keymaps.texi (Modifying Menus): Add cross-references.
Eli Zaretskii [Tue, 18 Jul 2023 13:17:15 +0000 (16:17 +0300)]
; * doc/lispref/keymaps.texi (Modifying Menus): Add cross-references.

2 years ago; * doc/lispref/keymaps.texi (Extended Menu Items): Add @pxref.
Eli Zaretskii [Tue, 18 Jul 2023 12:57:01 +0000 (15:57 +0300)]
; * doc/lispref/keymaps.texi (Extended Menu Items): Add @pxref.

2 years ago; * src/xdisp.c: Minor improvements of the commentary.
Eli Zaretskii [Tue, 18 Jul 2023 11:58:09 +0000 (14:58 +0300)]
; * src/xdisp.c: Minor improvements of the commentary.

2 years ago; Improve accuracy of out-out-order message insertion
Philip Kaludercic [Mon, 17 Jul 2023 20:02:38 +0000 (22:02 +0200)]
; Improve accuracy of out-out-order message insertion

* lisp/net/rcirc.el (rcirc-print): Do not ignore the return value of
'next-single-property-change'.

2 years ago; Improve robustness of package-report-bug
Spencer Baugh [Sun, 9 Jul 2023 16:59:50 +0000 (12:59 -0400)]
; Improve robustness of package-report-bug

* lisp/emacs-lisp/package.el (package-report-bug): Do not assume that
every entry in 'custom-current-group-alist' has a non-nil entry for a
filename.

It is possible for a group to not be associated with any file, e.g. when
a 'defgroup' form is evaluated using 'eval-expression'.  (bug#64543)

2 years ago; * lisp/simple.el (kill-new): Fix a typo. (Bug#64423)
Eli Zaretskii [Sat, 15 Jul 2023 19:08:52 +0000 (22:08 +0300)]
; * lisp/simple.el (kill-new): Fix a typo.  (Bug#64423)

2 years ago; * src/lisp.h: Improve commentary for XIL, XLI, XLP (bug#64645).
Eli Zaretskii [Sat, 15 Jul 2023 10:04:41 +0000 (13:04 +0300)]
; * src/lisp.h: Improve commentary for XIL, XLI, XLP (bug#64645).

2 years agoIgnore quit while getting interprogram paste in kill-new
Spencer Baugh [Sat, 8 Jul 2023 16:36:22 +0000 (12:36 -0400)]
Ignore quit while getting interprogram paste in kill-new

On X, if the current selection owner is not responding to selection
requests, the user may want to take ownership of the selection.  The
obvious way to do this is to kill some text (which a user might also
be doing just as part of normal editing at the time the selection
owner becomes nonresponsive).  However, if
save-interprogram-paste-before-kill is non-nil, then killing text will
hang until the user quits, and this quit will abort the entire
kill-new, preventing the user from taking ownership of the selection.

Now instead if the user quits while we are attempting to retrieve the
selection from hanging owner, we will proceed to take ownership of the
selection as normal, resolving the problem.

(One example of a selction owner that might not be responding to
selection requests is another instance of Emacs itself; while Emacs is
blocked in call-process or Lisp execution, it currently does not
respond to selection requests.)

* lisp/simple.el (kill-new): Ignore quit while getting interprogram
paste (bug#64423)

2 years ago* lisp/progmodes/gdb-mi.el: Fix interactive invocation of 'gud-go'.
Wang Diancheng [Fri, 14 Jul 2023 03:06:32 +0000 (11:06 +0800)]
* lisp/progmodes/gdb-mi.el: Fix interactive invocation of 'gud-go'.

Bug#64590.

Copyright-paperwork-exempt: yes

2 years agoFix NetBSD build with and without ncurses
Valtteri Vuorikoski [Thu, 13 Jul 2023 09:35:51 +0000 (12:35 +0300)]
Fix NetBSD build with and without ncurses

* configure.ac (netbsd): Don't set TERMINFO=no unless the termcap
library is either -ltermcap or -lcurses.  This prevents aborts
because on recent versions of NetBSD libtermcap is actually a
symlink to libterminfo. (Bug#64577)

Copyright-paperwork-exempt: yes

2 years ago; * lisp/paren.el (show-paren-function): Fix last change (bug#64547).
Eli Zaretskii [Sat, 15 Jul 2023 07:21:07 +0000 (10:21 +0300)]
; * lisp/paren.el (show-paren-function): Fix last change (bug#64547).

2 years ago; Fix last change.
Eli Zaretskii [Fri, 14 Jul 2023 17:33:29 +0000 (20:33 +0300)]
; Fix last change.

2 years agoImprove documentation of 'enable-local-variables' in Emacs manual
YugaEgo [Fri, 14 Jul 2023 15:49:36 +0000 (18:49 +0300)]
Improve documentation of 'enable-local-variables' in Emacs manual

* doc/emacs/custom.texi (Safe File Variables): Document ':all'.
(Bug#64621)

2 years ago; Fix copy-paste in Widget Manual (Bug#64610)
Mauro Aranda [Fri, 14 Jul 2023 10:41:58 +0000 (07:41 -0300)]
; Fix copy-paste in Widget Manual (Bug#64610)

2 years ago; * doc/misc/eshell.texi (Aliases): Remove stray "@end table".
Eli Zaretskii [Fri, 14 Jul 2023 05:32:57 +0000 (08:32 +0300)]
; * doc/misc/eshell.texi (Aliases): Remove stray "@end table".

2 years ago; * lisp/progmodes/sql.el (sql-interactive-mode): Remove FIXME (bug#64602).
YugaEgo [Thu, 13 Jul 2023 19:50:27 +0000 (22:50 +0300)]
; * lisp/progmodes/sql.el (sql-interactive-mode): Remove FIXME (bug#64602).

2 years ago; * doc/misc/eshell.texi (Variables): Add missing index for $INSIDE_EMACS
Jim Porter [Thu, 13 Jul 2023 16:10:57 +0000 (09:10 -0700)]
; * doc/misc/eshell.texi (Variables): Add missing index for $INSIDE_EMACS

Do not merge to master.  On master, this was fixed by 0bb8a011d57.

2 years ago; * doc/misc/eshell.texi (Invocation): Whitespace cleanup.
Michael Albinus [Tue, 11 Jul 2023 10:18:31 +0000 (12:18 +0200)]
; * doc/misc/eshell.texi (Invocation): Whitespace cleanup.

Do not merge to master.  This is a backport of 04710bd01b2.

2 years agoAdd documentation about remote access in Eshell
Jim Porter [Sun, 9 Jul 2023 19:04:01 +0000 (12:04 -0700)]
Add documentation about remote access in Eshell

Do not merge to master.  This is a backport of 438921161ac.

* doc/misc/eshell.texi
(Invocation): Mention the '*' prefix.
(Remote Access): New section...
(Commands): ... link to it.

2 years ago; * doc/misc/eshell.texi: Fix last change.
Jim Porter [Sat, 8 Jul 2023 19:13:22 +0000 (12:13 -0700)]
; * doc/misc/eshell.texi: Fix last change.

Do not merge to master.  This is a backport of 8c5fef4eb30.

2 years ago; * doc/misc/eshell.texi: Fix typos and clean up unclear wording.
Jim Porter [Sat, 8 Jul 2023 01:19:08 +0000 (18:19 -0700)]
; * doc/misc/eshell.texi: Fix typos and clean up unclear wording.

Do not merge to master.  This is a backport of 118582efb30.

2 years agoDocument some missing Eshell commands
Jim Porter [Sat, 8 Jul 2023 00:30:26 +0000 (17:30 -0700)]
Document some missing Eshell commands

Do not merge to master.  This is a backport of f7a899d7ca0.

* doc/misc/eshell.texi (Built-ins): Document 'eshell-debug'.
(Extra built-in commands): Document 'count', 'ff', and 'gf'.

2 years agoDocument optional Eshell modules
Jim Porter [Sat, 13 May 2023 03:03:48 +0000 (20:03 -0700)]
Document optional Eshell modules

Do not merge to master.  This is a backport of 77f13edab0f.

* doc/misc/eshell.texi (Built-ins): Move disabled-by-default commands
to...
(Tramp extensions, Extra built-in commands): ...here
(Optional modules, Key rebinding, Smart scrolling): Add documentation.
(Bug and ideas): Documentation is no longer incomplete!

2 years agoCorrect the Eshell documentation about how to write new modules
Jim Porter [Sat, 13 May 2023 03:11:01 +0000 (20:11 -0700)]
Correct the Eshell documentation about how to write new modules

* doc/misc/eshell.texi (Writing a module): Fix the documentation.
'eshell-defgroup' doesn't exist anymore.

Do not merge to master.  This is a backport of 77f13edab0f.

2 years agoRestructure Eshell extension modules documentation
Jim Porter [Mon, 30 Jan 2023 03:59:56 +0000 (19:59 -0800)]
Restructure Eshell extension modules documentation

This adds a section for documenting all the optional modules.

Do not merge to master.  This is a backport of f2981a1681d.

* doc/misc/eshell.texi (Extension modules): Move explanation about
writing modules to...
(Writing a module): ... here.
(Module testing): Remove.  Testing an Eshell module doesn't require
any special documentation.
(Key binding, Smart scrolling, Electric forward slash): Move under...
(Optional modules): ... here.
(Directory handling, Terminal emulation): Remove.  These modules are
enabled by default, and so are documented above.
(Tramp extensions, Extra built-in commands): New sections.

2 years ago; * doc/misc/eshell.texi (Bugs and ideas): Remove implemented feature.
Jim Porter [Mon, 30 Jan 2023 02:29:02 +0000 (18:29 -0800)]
; * doc/misc/eshell.texi (Bugs and ideas): Remove implemented feature.

Do not merge to master.  This is a backport of 194de36ca9f.

2 years ago; * src/lisp.h (struct Lisp_Overlay): Update commentary (bug#64580).
Eli Zaretskii [Thu, 13 Jul 2023 08:33:54 +0000 (11:33 +0300)]
; * src/lisp.h (struct Lisp_Overlay): Update commentary (bug#64580).

2 years agoReplace duplicate text from epa.texi by a reference
Jens Schmidt [Tue, 11 Jul 2023 19:57:31 +0000 (21:57 +0200)]
Replace duplicate text from epa.texi by a reference

* doc/misc/auth.texi (GnuPG and EasyPG Assistant Configuration):
Replace duplicate text from epa.texi by a reference to
that. (Bug#64154)

2 years agoAdd basic usage information and fix references
Jens Schmidt [Sun, 9 Jul 2023 14:17:27 +0000 (16:17 +0200)]
Add basic usage information and fix references

* doc/misc/epa.texi (Top): Add menu entry for new node GnuPG Pinentry.
(Quick Start): Add information on and reference to basic GnuPG
configuration.
(Encrypting/decrypting gpg files): Add usage information.
(GnuPG version compatibility): Update version information.
(GnuPG Pinentry): Add new node.
(Caching Passphrases): Describe mandatory gpg-agent usage for GnuPG
2.0 and later.
(Overview, Encrypting/decrypting gpg files, GnuPG version compatibility)
(Caching Passphrases, Bug Reports): Fix references, terminology,
mark-up, and index entries.  (Bug#64154)

2 years agoAdd concept index, title-case structure titles
Jens Schmidt [Sun, 2 Jul 2023 11:39:48 +0000 (13:39 +0200)]
Add concept index, title-case structure titles

* doc/misc/epa.texi (Top, Overview, Commands, Key management)
(Cryptographic operations on regions, Cryptographic operations on files)
(Dired integration, Mail-mode integration)
(Encrypting/decrypting gpg files, Querying a key server)
(GnuPG version compatibility, Caching Passphrases)
(GNU Free Documentation License): Add concept index, title-case
structure titles.  (Bug#64154)

2 years ago; * lisp/emacs-lisp/lisp.el (raise-sexp): Fix typo in doc string.
Eli Zaretskii [Wed, 12 Jul 2023 12:19:10 +0000 (15:19 +0300)]
; * lisp/emacs-lisp/lisp.el (raise-sexp): Fix typo in doc string.

2 years ago; * doc/misc/modus-themes.org: Fix whitespace (bug#64548).
Stephen Berman [Mon, 10 Jul 2023 10:20:10 +0000 (12:20 +0200)]
; * doc/misc/modus-themes.org: Fix whitespace (bug#64548).

2 years agoFix show-paren-mode when the parentheses is partially visible
Eli Zaretskii [Mon, 10 Jul 2023 14:15:21 +0000 (17:15 +0300)]
Fix show-paren-mode when the parentheses is partially visible

* lisp/paren.el (show-paren-function): Support the case where the
open paren is partially visible, but enough so to not consider it
"off-screen".  (Bug#64547)

2 years ago; Improve documentation of with-restriction
Gregory Heytings [Sun, 9 Jul 2023 19:27:12 +0000 (19:27 +0000)]
; Improve documentation of with-restriction

* lisp/subr.el (with-restriction):
* doc/lispref/positions.texi (Narrowing): Make it clear that the
argument is evaluated and that the result of the evaluation must
not be nil.

2 years ago; * admin/git-bisect-start: Update failing commits
Gregory Heytings [Sun, 9 Jul 2023 16:08:02 +0000 (16:08 +0000)]
; * admin/git-bisect-start: Update failing commits

2 years agoMerge branch 'scratch/bug64391' into emacs-29
Gregory Heytings [Sat, 8 Jul 2023 19:30:17 +0000 (19:30 +0000)]
Merge branch 'scratch/bug64391' into emacs-29

2 years ago* lisp/net/tramp.el (tramp-get-buffer-string): Stabilize.
Michael Albinus [Sat, 8 Jul 2023 13:43:41 +0000 (15:43 +0200)]
* lisp/net/tramp.el (tramp-get-buffer-string): Stabilize.

2 years agoFix stale cache in Tramp (don't merge)
Michael Albinus [Sat, 8 Jul 2023 13:43:21 +0000 (15:43 +0200)]
Fix stale cache in Tramp (don't merge)

* lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-directly):
Flush cache in time.

2 years agoMark failing icalendar test as unstable (bug#56241)
Mattias Engdegård [Fri, 7 Jul 2023 12:40:37 +0000 (14:40 +0200)]
Mark failing icalendar test as unstable (bug#56241)

* test/lisp/calendar/icalendar-tests.el
(icalendar-export-bug-56241-dotted-pair):
This test started failing early July 2023 in multiple branches at
once without any change to the code and is likely sensitive to the
current date.  Tag it to keep it quiet for now.

2 years ago; * src/coding.c (Fcoding_system_put): Improve doc string.
Eli Zaretskii [Fri, 7 Jul 2023 07:29:55 +0000 (10:29 +0300)]
; * src/coding.c (Fcoding_system_put): Improve doc string.

2 years ago; * doc/lispref/keymaps.texi (Key Binding Commands): Fix typo.
Eli Zaretskii [Fri, 7 Jul 2023 06:59:52 +0000 (09:59 +0300)]
; * doc/lispref/keymaps.texi (Key Binding Commands): Fix typo.

2 years ago; Improve documentation of 'vertical-motion' in ELisp manual
Eli Zaretskii [Fri, 7 Jul 2023 06:26:58 +0000 (09:26 +0300)]
; Improve documentation of 'vertical-motion' in ELisp manual

* doc/lispref/positions.texi (Screen Lines): Improve the
documentation of 'vertical-motion'.

2 years ago; * src/indent.c (Fvertical_motion): Doc fix.
Eli Zaretskii [Fri, 7 Jul 2023 06:16:12 +0000 (09:16 +0300)]
; * src/indent.c (Fvertical_motion): Doc fix.

2 years agoSimplify after adding internal function to enter a labeled restriction
Gregory Heytings [Thu, 6 Jul 2023 17:04:55 +0000 (17:04 +0000)]
Simplify after adding internal function to enter a labeled restriction

* src/editfns.c: (Finternal__labeled_narrow_to_region): Merge the
code of Finternal__label_restriction into this function.
(Finternal__label_restriction): Remove this function.
(syms_of_editfns): Remove the 'outermost-restriction' buffer local
variable, which is not used anymore, and the symbol of
'internal--label-restriction'.
(Fwiden): Remove the call to reset the 'outermost-restriction'
buffer local variable.

2 years agoAdd internal function to enter a labeled restriction
Gregory Heytings [Thu, 6 Jul 2023 17:04:53 +0000 (17:04 +0000)]
Add internal function to enter a labeled restriction

* src/editfns.c (Finternal__labeled_narrow_to_region): New
function.  A specific function is necessary to avoid unnecessary
slowdowns when 'narrow-to-region'/'widen' are called in a loop.
(Fnarrow_to_region): Remove the call to Fset, which has been moved
into Finternal__labeled_narrow_to_region.
(labeled_narrow_to_region): Use the new function.
(syms_of_editfns): Add the symbol of the new function.

* lisp/subr.el (internal--with-restriction): Use the new function.

2 years ago; * lisp/dired.el (dired-no-confirm): Doc fix. (Bug#64493)
Eli Zaretskii [Thu, 6 Jul 2023 10:12:21 +0000 (13:12 +0300)]
; * lisp/dired.el (dired-no-confirm): Doc fix.  (Bug#64493)

2 years ago; Improve documentation of key-binding commands
Eli Zaretskii [Thu, 6 Jul 2023 08:42:01 +0000 (11:42 +0300)]
; Improve documentation of key-binding commands

* doc/lispref/keymaps.texi (Key Binding Commands): Improve the
documentation of arguments expected by key binding commands.

* lisp/keymap.el (keymap-set, keymap-global-set)
(keymap-local-set, keymap-global-unset, keymap-local-unset)
(keymap-unset, key-parse): Doc fixes.

2 years agoImprove natnump shortdoc
Robert Pluim [Tue, 4 Jul 2023 15:44:43 +0000 (17:44 +0200)]
Improve natnump shortdoc

* lisp/emacs-lisp/shortdoc.el (number): Make it clear that zero
satisfies 'natnump'.  Move 'natnump' next to 'cl-plusp' to highlight
the difference between them.