1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-26 00:34:17 -07:00
Commit graph

187891 commits

Author SHA1 Message Date
Ken Brown
b57067e8a0 Support the Cygwin build of MPS
* mps/code/prmccyi6.c:
* mps/code/cyi6gc.gmk: New files, for the Cygwin build.

* mps/code/config.h:
* mps/code/lockix.c:
* mps/code/prmcix.c:
* mps/code/protix.c:
* mps/code/protsgix.c:
* mps/code/pthrdext.c:
* mps/code/testthr.h:
* mps/code/thix.c:
* mps/code/vmix.c: Port to Cygwin.

* mps/configure.ac (x86_64-*-cygwin*/no): Add definitions for
Cygwin.

* mps/code/mps.c [MPS_PF_CYI6GC]:
* mps/code/mpstd.h: Define 64-bit Cygwin stuff.

* mps/code/gcbench.c: [MPS_OS_CY]:
* mps/code/djbench.c [MPS_OS_CY]: Include alloca.h.

* mps/code/arenacv.c (TEST_ARENA_SIZE) [MPS_OS_CY]: Increase to
make test pass.  (Bug#74805)

* mps/code/arenavm.c (VMArenaCreate): Avoid compiler warning.
2025-10-08 10:33:45 -04:00
Helmut Eller
380057b6b3 Remove the closure argument from dflt_scan_obj
The closure argument is only needed for mps_pool_walk.  Without it,
dflt_scan_obj can be a bit simpler and faster.

* src/igc.c (dflt_scan_obj): Remove the closure argument.
(dflt_scanx): Call collect_stats here.
(dflt_scan): Expand the loop here and drop the NULL argument.
2025-10-05 18:35:58 +02:00
Helmut Eller
20a02d0755 * src/igc.c (Figc_info): Remove pragma.
Apparently the GCC diagnostic ignored "-Wsuggest-attribute=noreturn"
pragma is no longer needed.
2025-10-05 16:27:10 +02:00
Helmut Eller
146a2d4faf Simplify igc--format-bytes-human-readable
Suggested by Pip Cet.

* lisp/emacs-lisp/igc.el (igc--format-bytes-human-readable): Use
file-size-human-readable.
2025-10-04 20:54:19 +02:00
Eli Zaretskii
051b4e6d74 Implement 'igc--describe-arena' without 'open_memstream'
*src/igc.c (Figc__describe_arena) [!HAVE_OPEN_MEMSTREAM]:
Implementation for platforms that don't have 'open_memstream'.
(syms_of_igc): Always defsubr 'Sigc__describe_arena'.
2025-10-04 19:57:49 +03:00
Eli Zaretskii
db34f7877b ; Unbreak the MS-Windows build
* src/igc.c (syms_of_igc): Defsubr 'Sigc__describe_arena' only if
HAVE_OPEN_MEMSTREAM is defined.
2025-10-04 19:05:27 +03:00
Helmut Eller
79873ad156 Remove EMACS_IGC_PAUSE_TIME and EMACS_IGC_COMMIT_LIMIT env vars
Should not be needed as we have igc--set-pause-time and
igc--set-commit-limit functions.

* src/igc.c (read_pause_time, read_commit_limit): Deleted.
(make_arena): Use hard-coded defaults.
2025-10-04 17:47:30 +02:00
Helmut Eller
f9f8ffbb00 Add a igc-describe-arena command
* src/igc.c (Figc__describe_arena): New wrapper for ArenaDescribe.
(syms_of_igc): Register it.
* lisp/emacs-lisp/igc.el (igc-describe-arena): New command.
2025-10-04 17:33:10 +02:00
Helmut Eller
98e1b11f16 Merge branch 'master' into feature/igc 2025-10-04 16:41:45 +02:00
Helmut Eller
c5f80fa076 Minor optimization
* lisp/emacs-lisp/igc.el (igc--format-bytes-human-readable): Avoid some
consing.
2025-10-04 16:40:01 +02:00
Eli Zaretskii
5ee1e205e1 ; Improve the documentation of the last commit
* lisp/vc/log-view.el (log-view-copy-revision-as-kill):
* doc/emacs/maintaining.texi (VC Change Log):
* etc/NEWS: Improve wording of last commit.  (Bug#79493)
2025-10-04 17:18:12 +03:00
Sean Whitton
d0c63b8427 Improve log-view-copy-revision-as-kill
* lisp/vc/log-view.el (log-view-copy-revision-as-kill): Signal
user-error if there is no revision at point.
* doc/emacs/maintaining.texi (VC Change Log):
* etc/NEWS: Shorten docs for the new command.
2025-10-04 14:41:16 +01:00
Timo Myyrä
2ce33b66c5 New command log-view-copy-revision-as-kill
* lisp/vc/log-view.el (log-view-copy-revision-as-kill): New
command.
(log-view-mode-map): Bind it.
* doc/emacs/maintaining.texi (VC Change Log):
* etc/NEWS: Document it.
2025-10-04 14:40:03 +01:00
Elías Gabriel Pérez
3271d9fc96 hideshow.el: Minor optimizations
* lisp/progmodes/hideshow.el (hs-hideable-region-p): New
function.
(hs--make-indicators-overlays, hs--add-indicators)
(hs-hide-block-at-point, hs-hide-all, hs-hide-block)
(hs-hide-initial-comment-block): Use it.  (Bug#79533)
2025-10-04 11:27:27 +03:00
Augusto Stoffel
b8555ebff4 Add 'auto-mode-alist' entry for Containerfile
* lisp/progmodes/dockerfile-ts-mode.el: Also match Containerfile
and Containerfile.* in the 'auto-mode-alist' entry.  (Bug#79524)
2025-10-04 11:16:37 +03:00
Jeremy Bryant
1b3a8a0099 * lisp/emacs-lisp/igc.el: Add docstrings in stats export functions
(igc--collect-stats-csv, igc--collect-stats-sqlite): Add docstrings.
(Bug#79564)
2025-10-04 10:21:45 +03:00
Stefan Monnier
6a12fe3d79 (editorconfig-indentation-alist): Pare down
* lisp/editorconfig.el (editorconfig-indentation-alist): Remove entries
of the form `(MODE-mode MODE-basic-offset)`, `(MODE-mode
MODE-indent-level)`, or `(MODE-mode MODE-indent-offset)` since they are
covered by the fallback guessing code.
(editorconfig--default-indent-size-function): Remove "-block-offset"
from the guessing code since it's used only by `octave-mode`.
2025-10-03 17:17:02 -04:00
Sean Whitton
9deff2926b New command log-view-unmark-all-entries
* lisp/vc/log-view.el (log-view-unmark-all-entries): New
command.
(log-view-mode-map): Bind it.
* doc/emacs/maintaining.texi (VC Change Log):
* etc/NEWS: Document it.
2025-10-03 20:54:25 +01:00
Sean Whitton
70a24e3bb5 Merge from origin/emacs-30
0aa44112b6 ; * doc/emacs/maintaining.texi (VC Change Log): Missing a...
2025-10-03 20:51:18 +01:00
Sean Whitton
2a63811b30 ; Merge from origin/emacs-30
The following commit was skipped:

b0e4e53b9a * lisp/term/w32-win.el (dynamic-library-alist): Add libxm...
2025-10-03 20:51:18 +01:00
Sean Whitton
d5faebe8db Merge from origin/emacs-30
6a8fda1f33 Fix process name matching in 'tramp-process-running-p'
217fd4f09e ; * doc/lispref/modes.texi (Defining Minor Modes): Fix la...
2025-10-03 20:51:18 +01:00
Sean Whitton
a7bb2fa62a ; TRAMP docs: "cherry pick"->"cherry-pick" (see bug#79408). 2025-10-03 20:24:59 +01:00
Helmut Eller
cb036f78e4 Fix igc tests
* test/src/igc-tests.el (set-commit-limit-test): Update for recent
changes.
2025-10-03 21:09:59 +02:00
Helmut Eller
28cfce1da5 Optionally display sizes in human readable format
* lisp/emacs-lisp/igc.el (igc--number-format): New variable.
(igc--format-bytes-human-readable, igc--format-bytes,
igc--format-bytes-cell, igc--format-avg-cell):
(igc--insert-info): Use them
(igc-cycle-number-format): New command.
(igc-stats-mode): Bind it to n.
2025-10-03 20:47:28 +02:00
Helmut Eller
b19eae1d6d * src/igc.c (Figc_info): Simplify pseudo-entries
* src/igc.c (make_fake_entry): New helper
(make_entry): Deleted.
(make_stat_entry): Do what make_entry did.
2025-10-03 17:50:30 +02:00
Helmut Eller
498f306ca6 Display igc-stats more compactly
* lisp/emacs-lisp/igc.el (igc--insert-info-row)
(igc--compute-column-widths, igc--format-cell): New helpers
(igc-stats): Use them.
2025-10-03 17:45:08 +02:00
Sean Whitton
0aa44112b6 ; * doc/emacs/maintaining.texi (VC Change Log): Missing annotations. 2025-10-03 16:01:26 +01:00
Sean Whitton
0134d4c4fd vc--prompt-other-working-tree: Better handle no other working trees
* lisp/vc/vc.el (vc--prompt-other-working-tree): If there are no
other working trees but ALLOW-EMPTY is non-nil, it is not an
error.
2025-10-03 15:32:44 +01:00
Spencer Baugh
3ec87212a4 Eglot: make markup invisible instead of deleting it (bug#79552)
We use gfm-view-mode to render Markdown before we hand over the string
to ElDoc (which usually put it in a 'special' mode "*eldoc*" buffer).
'gfm-view-mode' adds keymap text properties to make links clickable.  It
also makes some of the markup invisible with a special 'invisible'
property value which is specific to 'gfm-view-mode'.  We used to delete
the latter, therefore breaking the link-clicking.  Simply resetting the
regions with non-nil 'invisible' to 't' instead of deleting them fixes
this.  See also https://github.com/joaotavora/eglot/discussions/1238

* lisp/progmodes/eglot.el: Make invisible markup invisible
instead of deleting it.

* etc/EGLOT-NEWS: Mention bugfix.

Co-authored-by: João Távora <joaotavora@gmail.com>
2025-10-03 09:44:56 +01:00
Sean Whitton
72f3f48d36 Log View marking: Fix lambda lists
* lisp/vc/log-view.el (log-view-mark-entry)
(log-view-unmark-entry): Mark ARG as a required argument, as it
in fact is.
(log-view-toggle-mark-entry): Call them properly.
2025-10-02 21:18:51 +01:00
Helmut Eller
bb008a3d31 Refactor Figc_info a bit
* src.igc (make_stat_entry): New helper.
(Figc_info): Use it.
2025-10-02 22:05:40 +02:00
Helmut Eller
a954f14fc3 Refactor collect_stats a bit more
* src/igc.c (struct igc_stat): Factored out from struct igc_stats.
(collect_stats_1): Factored out from collect_stats.
2025-10-02 21:45:52 +02:00
Helmut Eller
a48c1ba5ac * src/igc.c (make_entry): Use unsigned integers to count bytes.
* test/src/igc-tests.el (set-commit-limit-test): Commit limits are never
negative.
2025-10-02 21:29:53 +02:00
Sean Whitton
b38e54b667 ; * lisp/vc/vc.el (vc-print-root-log): Use plusp. 2025-10-02 20:20:14 +01:00
Helmut Eller
3b34cdd3b6 * src/igc.c (collect_stats): New. Factored out from dflt_scan_obj. 2025-10-02 21:16:29 +02:00
Helmut Eller
3ee3179452 * .clang-format: Use the same ColumnLimit as on master 2025-10-02 20:57:32 +02:00
Helmut Eller
c51e11ed24 * src/pdumper.c (Fdump_emacs_portable): Remove debug printfs. 2025-10-02 20:51:16 +02:00
Eli Zaretskii
cf68270b89 * lisp/term/w32-nt.el (dynamic-library-alist): Add libxml2-16.dll.
Reported by Andy Moreton <andrewjmoreton@gmail.com>.
2025-10-02 15:38:06 +03:00
Eli Zaretskii
b0e4e53b9a * lisp/term/w32-win.el (dynamic-library-alist): Add libxml2-16.dll.
Do not merge to master.
2025-10-02 15:34:02 +03:00
Eli Zaretskii
2c0cf894f4 Fix 'restart-emacs' on MS-Windows
* src/w32.c (w32_reexec_emacs): Reset undocumented bits in
STARTUPINFO flags.  Suggested by yhr0x43 <yhr0x43@gmail.com>.
(Bug#79554)
2025-10-02 10:22:37 +03:00
Sean Whitton
17ef2d64e4 ; * doc/emacs/vc1-xtra.texi (Other Working Trees): Better example. 2025-10-01 21:06:10 +01:00
Sean Whitton
b5cf0786a2 New command vc-kill-other-working-tree-buffers
* lisp/vc/vc.el (vc-kill-other-working-tree-buffers): New
command.
* lisp/vc/vc-hooks.el (vc-prefix-map): Bind it.
* doc/emacs/vc1-xtra.texi (Other Working Trees):
* etc/NEWS: Document it.
2025-10-01 20:51:57 +01:00
Renato Ferreira
6a8fda1f33 Fix process name matching in 'tramp-process-running-p'
* lisp/net/tramp.el (tramp-process-running-p): Use 'compare-strings'
for matching PROCESS-NAME with process command.  (Bug#79545)

Copyright-paperwork-exempt: yes
2025-10-01 12:44:33 +02:00
Sean Whitton
889ae269b0 ; project-prompt-project-name: Fix pcase usage. 2025-10-01 11:27:25 +01:00
Sean Whitton
c24e173c9c vc-add-working-tree: Finish by starting Dired
There won't be any uncommitted changes in the new working tree
yet, so vc-dir is unlikely to be useful.

* lisp/vc/vc.el (vc-add-working-tree): Finish by calling 'dired'
not 'vc-dir'.
* test/lisp/vc/vc-tests/vc-tests.el
(vc-test--other-working-trees): Delete stubbing out 'vc-dir'.
2025-10-01 11:26:18 +01:00
Juri Linkov
b5ea92a62b * lisp/hl-line.el (global-hl-line-buffers): Skip internal buffers (bug#79547). 2025-10-01 09:40:05 +03:00
Sean Whitton
8453fd59d4 vc-test--checkin-patch: Use atomic change groups
* test/lisp/vc/vc-tests/vc-tests.el (vc-test--with-temp-change):
New macro.
(vc-test--checkin-patch): Use it.
2025-09-30 16:15:44 +01:00
Sean Whitton
6ef6b517aa VC: Allow deleting or moving current working tree
* lisp/progmodes/project.el (project-prompter)
(project-prompt-project-dir, project-prompt-project-name):
* lisp/vc/vc.el (vc--prompt-other-working-tree): New ALLOW-EMPTY
optional argument.
(delete-working-tree, move-working-tree): Specify that callers
must ensure DIRECTORY is not the current working tree.
(vc-delete-working-tree, vc-move-working-tree): Pass ALLOW-EMPTY
non-nil to vc--prompt-other-working-tree.  Bind
'default-directory' to another working tree when operating on
the current working tree.
(vc-delete-working-tree): Extra prompt when asked to delete the
current working tree.  When deleting the current working tree,
call 'bury-buffer' one or more times at the end.
2025-09-30 16:12:14 +01:00
Stephen Berman
ca704a67dc Fix debug specs in minibuffer-tests.el macros (bug#79499)
* test/lisp/minibuffer-tests.el (with-minibuffer-setup)
(completing-read-with-minibuffer-setup): Prevent instrumenting
functions that call these macros from erroring due to an invalid
debug specification in the 'declare' form.  Use 't' as the debug
spec since it is the most general and adequate here.
2025-09-30 11:05:22 +02:00
Juri Linkov
40a22ced14 New value 'window' of 'global-hl-line-sticky-flag'
* etc/NEWS: Rename 'global-hl-line-modes' to 'global-hl-line-buffers'
(bug#79481).  Mention new default value of 'global-hl-line-buffers'
(bug#64993).  Mention new value 'window' of 'global-hl-line-sticky-flag'
that is more useful than the value 'all' now removed from NEWS (bug#64993).

* lisp/hl-line.el (hl-line-nonselected): New face.
(global-hl-line-sticky-flag): Add the value 'window'.
(global-hl-line-buffers): Change the default value to exclude
the minibuffer and 'cursor-face-highlight-mode'.
(global-hl-line-mode): Handle the value 'window' of
'global-hl-line-sticky-flag'.
(global-hl-line-window-redisplay): New function.
2025-09-29 20:47:50 +03:00