emacs.git
9 months agoMerge upstream version 30.1
Sean Whitton [Mon, 24 Feb 2025 07:41:47 +0000 (15:41 +0800)]
Merge upstream version 30.1

Fixes CVE-2025-1244 and CVE-2024-53920.

Drop obsolete patch disabling flymake included-c-header-files test.

Closes: #1088690, #1098255, #1098780
9 months agoFix eldoc warning in patch adding debian-emacs-flavor
Xiyue Deng [Tue, 28 Jan 2025 07:23:37 +0000 (23:23 -0800)]
Fix eldoc warning in patch adding debian-emacs-flavor

Forwarded: not-needed
Closes: #1095133
9 months agoMark dired-test-bug27243-02 as unstable for now
Rob Browning [Sat, 29 Jun 2024 16:01:56 +0000 (11:01 -0500)]
Mark dired-test-bug27243-02 as unstable for now

This appears to be a known issue:

  https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27243#64
  https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27243#115

Sample failure:

  Test dired-test-bug27243-02 backtrace:
    signal(ert-test-failed (((should (eq (point) pt1)) :form (eq 176 179
    ert-fail(((should (eq (point) pt1)) :form (eq 176 179) :value nil))
    #f(compiled-function () #<bytecode -0xdd3f9b8b64b2928>)()
    ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
    ert-run-test(#s(ert-test :name dired-test-bug27243-02 :documentation
    ert-run-or-rerun-test(#s(ert--stats :selector (not ...) :tests [...
    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/
    command-line()
    normal-top-level()
  Test dired-test-bug27243-02 condition:
      (ert-test-failed
       ((should
         (eq
          (point)
          pt1))
        :form
        (eq 176 179)
        :value nil))
     FAILED   5/16  dired-test-bug27243-02 (0.010115 sec) at ../../build-src/test/lisp/dired-tests.el:189

Bug: https://debbugs.gnu.org/27243
Forwarded: not-needed

9 months agoChange native-comp-async-report-warnings-errors to silent
Sean Whitton [Thu, 28 Mar 2024 05:24:49 +0000 (13:24 +0800)]
Change native-comp-async-report-warnings-errors to silent

We have had numerous bug reports across packages about this bothering
users.

9 months agoChange native-comp-async-jobs-number default to 1
Sean Whitton [Tue, 29 Aug 2023 08:08:55 +0000 (09:08 +0100)]
Change native-comp-async-jobs-number default to 1

9 months agoPatch project-vc-recognizes-git test for Debian build
Sean Whitton [Mon, 31 Jul 2023 08:26:48 +0000 (09:26 +0100)]
Patch project-vc-recognizes-git test for Debian build

9 months 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

9 months 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

9 months 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

9 months 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)

9 months 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

9 months 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

9 months 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.

9 months 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.

9 months 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>
9 months 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.

9 months 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

9 months 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>

9 months 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.

9 months agorecord new upstream branch
Sean Whitton [Mon, 24 Feb 2025 07:23:14 +0000 (15:23 +0800)]
record new upstream branch

9 months agoMerge upstream version 30.1
Sean Whitton [Mon, 24 Feb 2025 07:14:29 +0000 (15:14 +0800)]
Merge upstream version 30.1

9 months agoRelease Emacs 30.1
Stefan Kangas [Sun, 23 Feb 2025 16:29:57 +0000 (17:29 +0100)]
Release Emacs 30.1

* ChangeLog.5: New file.
* Makefile.in (CHANGELOG_HISTORY_INDEX_MAX): Bump.
* etc/HISTORY: Add Emacs 30.1.

9 months ago; * ChangeLog.4: Update.
Stefan Kangas [Sun, 23 Feb 2025 16:19:47 +0000 (17:19 +0100)]
; * ChangeLog.4: Update.

9 months agoMention CVE-2025-1244 in NEWS
Stefan Kangas [Sun, 23 Feb 2025 15:25:37 +0000 (16:25 +0100)]
Mention CVE-2025-1244 in NEWS

* etc/NEWS: Document CVE-2025-1244.

For anyone looking to backport this, the fix is in commit
820f0793f0b46448928905552726c1f1b999062f.

9 months agoUse character position for ranges in treesit_sync_visible_region
Yuan Fu [Sun, 23 Feb 2025 07:24:38 +0000 (23:24 -0800)]
Use character position for ranges in treesit_sync_visible_region

* src/treesit.c (treesit_sync_visible_region): Use character position
instead of byte position when comparing to ranges, because the
ranges are in character position.

9 months ago; * admin/authors.el (authors-aliases): Add Vladimir Nikishkin.
Eli Zaretskii [Sat, 22 Feb 2025 10:07:16 +0000 (12:07 +0200)]
; * admin/authors.el (authors-aliases): Add Vladimir Nikishkin.

9 months ago; * INSTALL.REPO: Minor copyedits.
Eli Zaretskii [Sat, 22 Feb 2025 07:16:05 +0000 (09:16 +0200)]
; * INSTALL.REPO: Minor copyedits.

9 months ago; Don't fail image tests if jpeg is supported via imagemagick
Ulrich Müller [Fri, 21 Feb 2025 11:13:20 +0000 (12:13 +0100)]
; Don't fail image tests if jpeg is supported via imagemagick

* test/lisp/image-tests.el (image-supported-file-p/optional):
Consider also the imagemagick case.  (Bug#76465)

9 months ago; Skip autorevert test when notify support is missing
Ulrich Müller [Fri, 21 Feb 2025 08:15:50 +0000 (09:15 +0100)]
; Skip autorevert test when notify support is missing

* test/lisp/autorevert-tests.el
(auto-revert-test07-auto-revert-several-buffers): Skip if file
notification support is not available.  (Bug#76459)

9 months ago; Skip shr-test/zoom-image test if png or libxml support is missing
Ulrich Müller [Fri, 21 Feb 2025 09:36:52 +0000 (10:36 +0100)]
; Skip shr-test/zoom-image test if png or libxml support is missing

* test/lisp/net/shr-tests.el (shr-test/zoom-image): Skip if png
images or libxml are not supported.  (Bug#76464)

9 months ago; Skip image type test if support is missing
Ulrich Müller [Fri, 21 Feb 2025 08:58:16 +0000 (09:58 +0100)]
; Skip image type test if support is missing

* test/lisp/image-tests.el (image-type-from-file-name): Skip if
image types are not available.  (Bug#76462)

9 months agoFix reported Haiku build error in emacs-30.1-rc1
Po Lu [Fri, 21 Feb 2025 05:28:52 +0000 (13:28 +0800)]
Fix reported Haiku build error in emacs-30.1-rc1

* src/haiku_support.cc (keysym_from_raw_char): Don't define
duplicate cases on the previous release.

9 months ago; Delete troff markers from ChangeLog files
Stefan Kangas [Thu, 20 Feb 2025 01:46:43 +0000 (02:46 +0100)]
; Delete troff markers from ChangeLog files

9 months ago; * Update 'ldefs-boot.el' (do not merge)
Stefan Kangas [Thu, 20 Feb 2025 01:36:41 +0000 (02:36 +0100)]
; * Update 'ldefs-boot.el' (do not merge)

9 months agoBump Emacs version to 30.1
Stefan Kangas [Wed, 19 Feb 2025 23:47:07 +0000 (00:47 +0100)]
Bump Emacs version to 30.1

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

9 months agoUpdate files for Emacs 30.1
Stefan Kangas [Wed, 19 Feb 2025 23:46:32 +0000 (00:46 +0100)]
Update files for Emacs 30.1

* ChangeLog.4:
* etc/AUTHORS: Update for Emacs 30.1.

9 months ago; Fix typo introduced in "* ChangeLog.4: Reformat down to 28 March 2024."
Stefan Kangas [Wed, 19 Feb 2025 23:30:15 +0000 (00:30 +0100)]
; Fix typo introduced in "* ChangeLog.4: Reformat down to 28 March 2024."

9 months agoFix remaining Android bugs reported over the past months
Po Lu [Wed, 19 Feb 2025 12:40:12 +0000 (20:40 +0800)]
Fix remaining Android bugs reported over the past months

* java/org/gnu/emacs/EmacsActivity.java (attachWindow):
Guarantee that child windows promoted to toplevels receive
layout parameters that direct them to receive their parents'
dimensions.  Otherwise, the size of the window as a child is
retained on Huawei HarmonyOS 4.2 and possibly other Android
distributions.

* java/org/gnu/emacs/EmacsService.java (updateCursorAnchorInfo):
Run anchor updates on the UI thread, as
`InputMethodManager#updateCursorAnchorInfo' is liable to call
`View#requestLayout'.

* java/org/gnu/emacs/EmacsView.java (onMeasure): Always call
`measureChildren', or child frames' onLayout handlers might not
be invoked after they request a layout cycle and are duly
processed in `onLayout'.
(swapBuffers): Delete erroneous commentary.

* java/org/gnu/emacs/EmacsWindow.java (viewLayout): If
overrideRedirect, don't inadvertently clear rect.left and
rect.top by recording the window's WM window-relative position.
Fix typos.
(reparentTo): Invalidate focus after transferring frame.
(translateCoordinates): Account for override-redirect windows.
Mostly important for mouse-drag-and-drop-region.

9 months agoProperly move existing tooltips on Android
Po Lu [Wed, 19 Feb 2025 07:34:51 +0000 (15:34 +0800)]
Properly move existing tooltips on Android

* java/org/gnu/emacs/EmacsWindow.java (requestViewLayout): If an
override redirect window, additionally notify the window manager
of layout changes.

9 months ago; * ChangeLog.4: Reformat down to 28 March 2024.
Po Lu [Wed, 19 Feb 2025 07:33:59 +0000 (15:33 +0800)]
; * ChangeLog.4: Reformat down to 28 March 2024.

9 months ago; * ChangeLog.4: Check in ommitted change.
Po Lu [Tue, 18 Feb 2025 12:50:03 +0000 (20:50 +0800)]
; * ChangeLog.4: Check in ommitted change.

9 months ago; * ChangeLog.4: Fix log entries down to the 1 May 2024.
Po Lu [Tue, 18 Feb 2025 12:47:32 +0000 (20:47 +0800)]
; * ChangeLog.4: Fix log entries down to the 1 May 2024.

9 months ago; Fix typos
Stefan Kangas [Mon, 27 Jan 2025 05:46:01 +0000 (06:46 +0100)]
; Fix typos

9 months ago; * ChangeLog.4: Update.
Stefan Kangas [Sun, 16 Feb 2025 21:32:29 +0000 (22:32 +0100)]
; * ChangeLog.4: Update.

9 months ago; * admin/authors.el (authors-ignored-files): Ignore gnus-nocem.el.
Stefan Kangas [Sun, 16 Feb 2025 21:32:08 +0000 (22:32 +0100)]
; * admin/authors.el (authors-ignored-files): Ignore gnus-nocem.el.

9 months agoFix crash in frame deletion on Android
Po Lu [Mon, 17 Feb 2025 03:33:50 +0000 (11:33 +0800)]
Fix crash in frame deletion on Android

* java/org/gnu/emacs/EmacsWindow.java (destroyHandle):
Invalidate the input focus in the UI thread, as is proper.

9 months ago* src/pgtkterm.c (pgtk_enumerate_devices): Circumvent bug#76239.
Po Lu [Mon, 17 Feb 2025 02:56:37 +0000 (10:56 +0800)]
* src/pgtkterm.c (pgtk_enumerate_devices): Circumvent bug#76239.

9 months ago* lisp/man.el (Man-shell-file-name): Ensure a Bourne shell. (Bug#75308)
Michael Albinus [Sun, 16 Feb 2025 10:00:46 +0000 (11:00 +0100)]
* lisp/man.el (Man-shell-file-name): Ensure a Bourne shell.  (Bug#75308)

9 months ago; Update etc/AUTHORS (bug#76319).
Eli Zaretskii [Sun, 16 Feb 2025 07:03:06 +0000 (02:03 -0500)]
; Update etc/AUTHORS (bug#76319).

9 months ago; * admin/authors.el (authors-aliases): Add "Elías Gabriel Pérez" (bug#76319).
Eli Zaretskii [Sun, 16 Feb 2025 06:49:12 +0000 (08:49 +0200)]
; * admin/authors.el (authors-aliases): Add "Elías Gabriel Pérez" (bug#76319).

10 months ago; * doc/emacs/package.texi (Package Installation): Add omitted index entry.
Eli Zaretskii [Sat, 15 Feb 2025 10:12:30 +0000 (12:12 +0200)]
; * doc/emacs/package.texi (Package Installation): Add omitted index entry.

10 months ago; Move index entries in user manual
Eli Zaretskii [Sat, 15 Feb 2025 10:08:41 +0000 (12:08 +0200)]
; Move index entries in user manual

* doc/emacs/package.texi (Packages): Move index entries from here...
(Package Installation): ...to here.  Index entries should be where
the main description of the subject can be found.

10 months agoAdd two missing NULL checks of malloc'd values on Android
Po Lu [Sat, 15 Feb 2025 08:58:18 +0000 (16:58 +0800)]
Add two missing NULL checks of malloc'd values on Android

* src/android.c (sendDndUri, sendDndText): Verify that allocated
string memory is non-nil before writing to it.

10 months ago; * etc/PROBLEMS: Document how to grant storage permissions on Wear OS.
Po Lu [Sat, 15 Feb 2025 06:46:37 +0000 (14:46 +0800)]
; * etc/PROBLEMS: Document how to grant storage permissions on Wear OS.

10 months ago; * etc/TODO: Rethink finder-known-keywords.
Stefan Kangas [Thu, 13 Feb 2025 21:08:18 +0000 (22:08 +0100)]
; * etc/TODO: Rethink finder-known-keywords.

10 months agoFix (Non)GNU ELPA description in manual
Stefan Kangas [Thu, 13 Feb 2025 15:37:51 +0000 (16:37 +0100)]
Fix (Non)GNU ELPA description in manual

* doc/emacs/package.texi (Packages): Move detailed (Non)GNU ELPA
description...
(Package Installation): ...here, and fix incorrect information.

10 months agoMove 'package-archives' documentation to emacs manual
Stefan Kangas [Thu, 13 Feb 2025 15:36:40 +0000 (16:36 +0100)]
Move 'package-archives' documentation to emacs manual

* doc/lispref/package.texi (Package Archives): Move documentation
of package-archives variable from here...
* doc/emacs/package.texi (Package Installation): ...to here.
(Bug#76266)

10 months ago; * src/fns.c (Fmapconcat): Doc fix (bug#76242).
Eli Zaretskii [Thu, 13 Feb 2025 09:03:26 +0000 (11:03 +0200)]
; * src/fns.c (Fmapconcat): Doc fix (bug#76242).

10 months ago; Fix >72 character long lines in docstring
Stefan Kangas [Thu, 13 Feb 2025 07:45:42 +0000 (08:45 +0100)]
; Fix >72 character long lines in docstring

10 months ago; Change "virus" to "malicious" in lispref
Stefan Kangas [Thu, 13 Feb 2025 02:02:39 +0000 (03:02 +0100)]
; Change "virus" to "malicious" in lispref

* doc/lispref/functions.texi (Function Safety): Replace 'virus' with
'malicious' to ensure broader accuracy, as 'malicious' encompasses all
harmful software types.

10 months agoFix eldoc warning in patch adding debian-emacs-flavor
Sean Whitton [Thu, 13 Feb 2025 01:58:04 +0000 (09:58 +0800)]
Fix eldoc warning in patch adding debian-emacs-flavor

Thanks to Xiyue Deng for the report and fix.

Closes: #1095133
10 months agoFix eldoc warning in patch adding debian-emacs-flavor
Xiyue Deng [Tue, 28 Jan 2025 07:23:37 +0000 (23:23 -0800)]
Fix eldoc warning in patch adding debian-emacs-flavor

Forwarded: not-needed
Closes: #1095133
10 months agoAdjust debian/changelog for UNRELEASED 29.4+1-7 development
Sean Whitton [Thu, 13 Feb 2025 01:56:35 +0000 (09:56 +0800)]
Adjust debian/changelog for UNRELEASED 29.4+1-7 development

10 months agoDocument (Non-)GNU ELPA in emacs manual
Stefan Kangas [Wed, 12 Feb 2025 15:38:15 +0000 (16:38 +0100)]
Document (Non-)GNU ELPA in emacs manual

* doc/emacs/package.texi (Packages): Document GNU ELPA and NonGNU
ELPA.  (Bug#59609)

10 months ago; * .mailmap: Add entry for Thuna. (Bug#76221)
Stefan Kangas [Wed, 12 Feb 2025 14:33:32 +0000 (15:33 +0100)]
; * .mailmap: Add entry for Thuna.  (Bug#76221)

Note that this is deliberately different from the display in
AUTHORS, on request from the author.

10 months agoFix author name
Robert Pluim [Wed, 12 Feb 2025 13:00:55 +0000 (14:00 +0100)]
Fix author name

* admin/authors.el (authors-aliases): Fix entry for
"thuna.cing@gmail.com"  (Bug#76221).

10 months agoUse c-ts-common's comment setup in go-ts-mode (bug#75978)
Yuan Fu [Wed, 12 Feb 2025 04:38:00 +0000 (20:38 -0800)]
Use c-ts-common's comment setup in go-ts-mode (bug#75978)

c-ts-common-comment-setup sets up fill-paragraph-function, which
enables filling for comments.

* lisp/progmodes/go-ts-mode.el (go-ts-mode):
(go-mod-ts-mode): Use c-ts-common-comment-setup.

10 months agoAdd java-language-server to eglot-server-programs
Robert Brown [Wed, 9 Nov 2022 00:23:10 +0000 (19:23 -0500)]
Add java-language-server to eglot-server-programs

* lisp/progmodes/eglot.el (eglot-server-programs): Add support for Java
server <https://github.com/georgewfraser/java-language-server>.
(Bug#59138)

Copyright-paperwork-exempt: yes

10 months ago; Add a utility script for retrieving Android port dependencies
Po Lu [Wed, 12 Feb 2025 03:14:29 +0000 (11:14 +0800)]
; Add a utility script for retrieving Android port dependencies

* admin/download-android-deps.sh: New file.

10 months agoDisable native compilation on loong64
Sean Whitton [Wed, 12 Feb 2025 00:40:07 +0000 (08:40 +0800)]
Disable native compilation on loong64

10 months agoEglot: mention ocaml-ts-mode in eglot-server-programs
João Távora [Tue, 11 Feb 2025 13:00:33 +0000 (13:00 +0000)]
Eglot: mention ocaml-ts-mode in eglot-server-programs

* lisp/progmodes/eglot.el (eglot-server-programs): Mention
ocaml-ts-mode.

(cherry picked from commit 96dc5deddc2b60210feb10e3a68b74ecd2480b34)

10 months ago; Don't document a complicated default
Stefan Kangas [Tue, 11 Feb 2025 08:12:07 +0000 (09:12 +0100)]
; Don't document a complicated default

* doc/misc/message.texi (Superseding): Don't document the default value
of 'message-ignored-supersedes-headers' here; the list was out-of-date,
and is likely to become out-of-date again in the future if updated.
It's also easy enough to look up for users outside of Info.

10 months agoFix minibuffer-next-completion in completing-read-multiple
Dmitry Gutov [Tue, 11 Feb 2025 15:47:21 +0000 (17:47 +0200)]
Fix minibuffer-next-completion in completing-read-multiple

* lisp/emacs-lisp/crm.el (completing-read-multiple):
Adapt to the previous removal of completion-base-affixes
(bug#48356, bug#48356).

10 months ago; Document 'completing-read-multiple' in the ELisp manual
Eli Zaretskii [Tue, 11 Feb 2025 14:42:19 +0000 (16:42 +0200)]
; Document 'completing-read-multiple' in the ELisp manual

* doc/lispref/minibuf.texi (Minibuffer Completion): Mention
'completing-read-multiple' (bug#76194).

10 months ago; * lisp/gnus/nnweb.el (nnweb-type): Doc fix.
Stefan Kangas [Tue, 11 Feb 2025 06:50:05 +0000 (07:50 +0100)]
; * lisp/gnus/nnweb.el (nnweb-type): Doc fix.

10 months agolisp/help.el (help-function-arglist): Fix out-of-bounds access (bug#76179)
Stefan Monnier [Mon, 10 Feb 2025 20:35:20 +0000 (15:35 -0500)]
lisp/help.el (help-function-arglist): Fix out-of-bounds access (bug#76179)

10 months ago; * .mailmap: Add a few more entries.
Stefan Kangas [Mon, 10 Feb 2025 00:31:30 +0000 (01:31 +0100)]
; * .mailmap: Add a few more entries.

10 months ago; * .mailmap: Add Felicián Németh.
Stefan Kangas [Sun, 9 Feb 2025 15:26:48 +0000 (16:26 +0100)]
; * .mailmap: Add Felicián Németh.

10 months ago; * etc/PROBLEMS: Fix last change (bug#74220).
Eli Zaretskii [Sun, 9 Feb 2025 07:17:31 +0000 (09:17 +0200)]
; * etc/PROBLEMS: Fix last change (bug#74220).

10 months ago; * etc/PROBLEMS: Document problem with GPM mouse display (bug#74220).
Jared Finder [Sun, 9 Feb 2025 03:08:05 +0000 (19:08 -0800)]
; * etc/PROBLEMS: Document problem with GPM mouse display (bug#74220).

10 months agoFix program execution on Android 15 QPR2 Beta
Po Lu [Sun, 9 Feb 2025 04:06:52 +0000 (12:06 +0800)]
Fix program execution on Android 15 QPR2 Beta

* exec/trace.c (process_vm_readv, process_vm_writev): New
function pointers.  Attempt to load them on recent Android
systems when `exec' was not linked with a sufficiently
up-to-date libc.
(read_memory, user_copy): Always use process_vm_readv and
process_vm_writev if available.
(handle_openat): Write trailing NULL byte of filename to user
buffer.
(exec_init): Attempt to dlsym process_vm_readv and
process_vm_writev.

10 months ago; * admin/authors.el (authors-aliases): Add aliases.
Eli Zaretskii [Sat, 8 Feb 2025 12:06:00 +0000 (14:06 +0200)]
; * admin/authors.el (authors-aliases): Add aliases.

10 months ago; Avoid passive tense in Emacs manual
Eli Zaretskii [Sat, 8 Feb 2025 11:47:11 +0000 (13:47 +0200)]
; Avoid passive tense in Emacs manual

* doc/lispref/variables.texi (Defining Variables): Avoid passive
tense (bug#76135).

10 months agoFix gnus-score-find-score-files-function :type
Mauro Aranda [Fri, 7 Feb 2025 10:31:34 +0000 (07:31 -0300)]
Fix gnus-score-find-score-files-function :type

* lisp/gnus/gnus-score.el (gnus-score-find-score-files-function): Delete
extra quotes.  (Bug#76118)

10 months agoImprove documentation of 'file-name-concat'
Eli Zaretskii [Thu, 6 Feb 2025 08:42:04 +0000 (10:42 +0200)]
Improve documentation of 'file-name-concat'

* doc/lispref/files.texi (Directory Names):
* src/fileio.c (Ffile_name_concat): Advise not to use
'file-name-concat' unless necessary.  (Bug#76023)

10 months ago* src/fileio.c (Fsubstitute_in_file_name): Doc fix (bug#76023).
Eli Zaretskii [Tue, 4 Feb 2025 14:06:36 +0000 (16:06 +0200)]
* src/fileio.c (Fsubstitute_in_file_name): Doc fix (bug#76023).

10 months ago; Update link to picons database
Stefan Kangas [Mon, 3 Feb 2025 22:51:15 +0000 (23:51 +0100)]
; Update link to picons database

* lisp/gnus/gnus-art.el (gnus-picon-databases): Fix broken link.

10 months ago* lisp/emacs-lisp/track-changes.el (track-changes-fetch): Fix bug#75906
Stefan Monnier [Mon, 3 Feb 2025 20:50:36 +0000 (15:50 -0500)]
* lisp/emacs-lisp/track-changes.el (track-changes-fetch): Fix bug#75906

10 months ago; Don't use HTTPS in HTTP-specific example
Stefan Kangas [Mon, 3 Feb 2025 11:37:06 +0000 (12:37 +0100)]
; Don't use HTTPS in HTTP-specific example

* doc/misc/org.org (External Links): Change HTTP example to use HTTP.
Changing it to HTTPS has been done before, but it's a mistake.  To avoid
making this mistake again, change the URL to orgmode.org to make it more
similar to the example on the next line, thereby contrasting the two.

10 months agoBetter NaN handling in proced-tests.el
Michael Albinus [Mon, 3 Feb 2025 11:51:48 +0000 (12:51 +0100)]
Better NaN handling in proced-tests.el

* test/lisp/proced-tests.el (proced--cpu-at-point): Make it more robust.
(proced--assert-process-valid-cpu-refinement):
Handle `ert-test-skipped' signal.

10 months agoFix padding when using which-key-setup-side-window-right
Robert Pluim [Sun, 2 Feb 2025 12:33:37 +0000 (13:33 +0100)]
Fix padding when using which-key-setup-side-window-right

* lisp/which-key.el (which-key--pad-column): Insert zero padding
spaces when the description string is longer than the column
width.  (Bug#75765)

10 months agoImprove documentation of 'display-monitor-attributes-
Eli Zaretskii [Sun, 2 Feb 2025 13:58:18 +0000 (15:58 +0200)]
Improve documentation of 'display-monitor-attributes-

* doc/lispref/frames.texi (Multiple Terminals):
* lisp/frame.el (display-monitor-attributes-list): Better
documentation of what the 'source' key means on X.  (Bug#75936)

10 months ago; * etc/NEWS: Fix wording.
Michael Albinus [Sat, 1 Feb 2025 11:24:27 +0000 (12:24 +0100)]
; * etc/NEWS: Fix wording.

10 months agoRemove bookmark fringe marks when deleting all bookmarks
Eli Zaretskii [Sat, 1 Feb 2025 09:33:34 +0000 (11:33 +0200)]
Remove bookmark fringe marks when deleting all bookmarks

* lisp/bookmark.el (bookmark-delete-all): Remove fringe marks for
all the bookmarks.  (Bug#75953)

10 months agoImprove wording in symbols.texi
Stefan Kangas [Sat, 1 Feb 2025 03:08:43 +0000 (04:08 +0100)]
Improve wording in symbols.texi

* doc/lispref/symbols.texi (Symbol Components): Improve wording
(Bug#75512).   Reported by Matt Trzcinski <matt@excalamus.com>.

10 months agoFix typo in Gnus manual
Manuel Giraud [Fri, 31 Jan 2025 18:25:03 +0000 (19:25 +0100)]
Fix typo in Gnus manual

* doc/misc/gnus.texi (Comparing Mail Back Ends): Fix a missing
verb.  (Bug#75974)

10 months agoeglot: Allow omnisharp binary to be capitalized "OmniSharp"
Damien Cassou [Thu, 30 Jan 2025 20:44:31 +0000 (21:44 +0100)]
eglot: Allow omnisharp binary to be capitalized "OmniSharp"

Some distributors (e.g. nixpkgs) provide a binary "OmniSharp" instead of
"omnisharp", which breaks on case-sensitive file-systems.

* lisp/progmodes/eglot.el (eglot-server-programs): Add "OmniSharp" as a
valid binary name to search for.  (Bug#75954)

10 months agoDo not set `trusted-content` in major modes
Stefan Kangas [Sun, 26 Jan 2025 13:53:49 +0000 (14:53 +0100)]
Do not set `trusted-content` in major modes

* lisp/progmodes/elisp-mode.el (lisp-interaction-mode):
* lisp/ielm.el (inferior-emacs-lisp-mode): Do not set `trusted-content.
* lisp/ielm.el (ielm):
* lisp/simple.el (get-scratch-buffer-create): Set `trusted-content` here
instead.
* lisp/files.el (trusted-content): Doc fix; warn against setting this
option to :all in a major or mode mode.
Problem reported by Max Nikulin <manikulin@gmail.com>.

10 months ago; * lisp/subr.el (sit-for): Doc fix.
Eli Zaretskii [Thu, 30 Jan 2025 09:37:40 +0000 (11:37 +0200)]
; * lisp/subr.el (sit-for): Doc fix.

10 months ago* src/puresize.h (BASE_PURESIZE): Increase (bug#75907).
Eli Zaretskii [Thu, 30 Jan 2025 06:38:05 +0000 (08:38 +0200)]
* src/puresize.h (BASE_PURESIZE): Increase (bug#75907).