Paul Eggert
4da38c6321
Update copyright year to 2025
...
Run "TZ=UTC0 admin/update-copyright".
2025-01-01 07:39:17 +00:00
Po Lu
ecf08f0621
Merge from savannah/emacs-29
...
dc4e6b1329
; Update copyright years in more files
64b3777631
; Run set-copyright from admin.el
8e1c56ae46
; Add 2024 to copyright years
# Conflicts:
# doc/misc/modus-themes.org
# doc/misc/texinfo.tex
# etc/NEWS
# etc/refcards/ru-refcard.tex
# etc/themes/modus-operandi-theme.el
# etc/themes/modus-themes.el
# etc/themes/modus-vivendi-theme.el
# lib/alloca.in.h
# lib/binary-io.h
# lib/c-ctype.h
# lib/c-strcasecmp.c
# lib/c-strncasecmp.c
# lib/careadlinkat.c
# lib/cloexec.c
# lib/close-stream.c
# lib/diffseq.h
# lib/dup2.c
# lib/filemode.h
# lib/fpending.c
# lib/fpending.h
# lib/fsusage.c
# lib/getgroups.c
# lib/getloadavg.c
# lib/gettext.h
# lib/gettime.c
# lib/gettimeofday.c
# lib/group-member.c
# lib/malloc.c
# lib/md5-stream.c
# lib/md5.c
# lib/md5.h
# lib/memmem.c
# lib/memrchr.c
# lib/nanosleep.c
# lib/save-cwd.h
# lib/sha1.c
# lib/sig2str.c
# lib/stdlib.in.h
# lib/strtoimax.c
# lib/strtol.c
# lib/strtoll.c
# lib/time_r.c
# lib/xalloc-oversized.h
# lisp/auth-source-pass.el
# lisp/emacs-lisp/lisp-mnt.el
# lisp/emacs-lisp/timer.el
# lisp/info-look.el
# lisp/jit-lock.el
# lisp/loadhist.el
# lisp/mail/rmail.el
# lisp/net/ntlm.el
# lisp/net/webjump.el
# lisp/progmodes/asm-mode.el
# lisp/progmodes/project.el
# lisp/progmodes/sh-script.el
# lisp/textmodes/flyspell.el
# lisp/textmodes/reftex-toc.el
# lisp/textmodes/reftex.el
# lisp/textmodes/tex-mode.el
# lisp/url/url-gw.el
# m4/alloca.m4
# m4/clock_time.m4
# m4/d-type.m4
# m4/dirent_h.m4
# m4/dup2.m4
# m4/euidaccess.m4
# m4/fchmodat.m4
# m4/filemode.m4
# m4/fsusage.m4
# m4/getgroups.m4
# m4/getloadavg.m4
# m4/getrandom.m4
# m4/gettime.m4
# m4/gettimeofday.m4
# m4/gnulib-common.m4
# m4/group-member.m4
# m4/inttypes.m4
# m4/malloc.m4
# m4/manywarnings.m4
# m4/mempcpy.m4
# m4/memrchr.m4
# m4/mkostemp.m4
# m4/mktime.m4
# m4/nproc.m4
# m4/nstrftime.m4
# m4/pathmax.m4
# m4/pipe2.m4
# m4/pselect.m4
# m4/pthread_sigmask.m4
# m4/readlink.m4
# m4/realloc.m4
# m4/sig2str.m4
# m4/ssize_t.m4
# m4/stat-time.m4
# m4/stddef_h.m4
# m4/stdint.m4
# m4/stdio_h.m4
# m4/stdlib_h.m4
# m4/stpcpy.m4
# m4/strnlen.m4
# m4/strtoimax.m4
# m4/strtoll.m4
# m4/time_h.m4
# m4/timegm.m4
# m4/timer_time.m4
# m4/timespec.m4
# m4/unistd_h.m4
# m4/warnings.m4
# nt/configure.bat
# nt/preprep.c
# test/lisp/register-tests.el
2024-01-02 10:28:14 +08:00
Po Lu
8e1c56ae46
; Add 2024 to copyright years
2024-01-02 09:47:10 +08:00
Eli Zaretskii
486094126b
Merge from origin/emacs-29
...
0f361cc985
; Minor copyedits in description of ':box' face property
46fe7a17f5
Fix dragging mode line on text terminals with a mouse (bu...
12daf386f3
; * doc/lispref/processes.texi (Network): Fix wording and...
037d858dc1
(rust-ts-mode): Set electric-indent-chars
dc9b733ab8
js-ts-mode: Highlight function parameters inside destruct...
4a72f13bdf
js-ts-mode: Highlight property shorthands in assignments
83ed9018ed
(js--treesit-font-lock-settings): Highlight parameters in...
ad0f87bb4c
(js--treesit-font-lock-settings): Remove some duplicates
71c5f3694f
; Another fix of doc string of 'message-mail-user-agent' ...
04a39353ba
; * lisp/gnus/message.el (message-mail-user-agent): Doc f...
82ddcf37ec
; * doc/lispref/files.texi (Changing Files): Fix last cha...
89068516b3
Don't claim to signal an error when deleting a nonexistin...
4fd254e183
* lisp/indent.el (indent-rigidly): Improve prompt (bug#67...
5f923ff1a6
; Fix typos
a1f88963f5
rust-ts-mode--comment-docstring: Handle block doc comments
a547b0e2e8
rust-ts-mode--comment-docstring: Fix/improve the previous...
2023-12-09 07:25:21 -05:00
Eli Zaretskii
4fd254e183
* lisp/indent.el (indent-rigidly): Improve prompt (bug#67620).
2023-12-04 14:22:32 +02:00
Eli Zaretskii
914e9bd4fe
; * lisp/indent.el (indent-for-tab-command): Use 'memq'. (Bug#67158)
2023-11-29 16:24:48 +02:00
Aymeric Agon-Rambosson
ab9c62c2b3
Repair tab-first-completion
(bug#67158)
...
Copyright-paperwork-exempt: yes
* lisp/indent.el (indent-for-tab-command): Use `syntax-class` to fix
longstanding thinko introduced back in 2020 in commit 64c8511664
.
Rework the check for `syn` because TAB always completed when
`tab-first-completion` had value `word-or-paren` or `word-or-paren-or-punct`.
(cherry picked from commit c20226a1ef
)
2023-11-29 16:19:58 +02:00
Aymeric Agon-Rambosson
c20226a1ef
Repair tab-first-completion
(bug#67158)
...
Copyright-paperwork-exempt: yes
* lisp/indent.el (indent-for-tab-command): Use `syntax-class` to fix
longstanding thinko introduced back in 2020 in commit 64c8511664
.
Rework the check for `syn` because TAB always completed when
`tab-first-completion` had value `word-or-paren` or `word-or-paren-or-punct`.
2023-11-25 10:24:39 -05:00
Eli Zaretskii
cae528457c
; Add 2023 to copyright years.
2023-01-01 05:31:12 -05:00
Eli Zaretskii
8b8b791567
; Improve documentation of TAB/SPC indentation
...
* lisp/indent.el (tab-to-tab-stop):
* src/indent.c (Findent_to): Mention 'indent-tabs-mode' in doc
strings.
2022-12-27 20:23:16 +02:00
Stefan Kangas
aac4965702
Prefer defvar-keymap in several cases
...
* lisp/calc/calc-embed.el (calc-override-minor-modes-map):
* lisp/calc/calc-yank.el (calc-edit-mode-map):
* lisp/calc/calc.el (calc-trail-mode-map):
* lisp/cedet/semantic/mru-bookmark.el (semantic-mru-bookmark-mode-map):
* lisp/cedet/semantic/util-modes.el (semantic-highlight-edits-mode-map)
(semantic-show-unmatched-syntax-mode-map)
(semantic-show-parser-state-mode-map)
(semantic-stickyfunc-mode-map, semantic-highlight-func-mode-map):
* lisp/cedet/srecode/srt-mode.el (srecode-template-mode-map):
* lisp/gnus/gnus-art.el (gnus-prev-page-map, gnus-next-page-map):
* lisp/gnus/gnus-search.el (gnus-search-minibuffer-map):
* lisp/gnus/score-mode.el (gnus-score-mode-map):
* lisp/gnus/smime.el (smime-mode-map):
* lisp/indent.el (edit-tab-stops-map):
* lisp/isearch.el (minibuffer-local-isearch-map):
* lisp/printing.el (pr-interface-map):
* lisp/progmodes/prog-mode.el (prog-mode-map):
* lisp/progmodes/subword.el (subword-mode-map):
* lisp/reveal.el (reveal-mode-map):
* lisp/strokes.el (strokes-mode-map):
* lisp/textmodes/flyspell.el (flyspell-mouse-map):
* lisp/textmodes/less-css-mode.el (less-css-mode-map):
* lisp/textmodes/remember.el (remember-mode-map)
(remember-notes-mode-map):
* lisp/wid-browse.el (widget-browse-mode-map):
* lisp/wid-edit.el (widget-key-sequence-map): Prefer defvar-keymap in
some easy-to-convert cases.
2022-09-13 15:05:38 +02:00
Stefan Kangas
67a15ce156
Use substitute-command-keys in a few more places
...
* lisp/indent.el (edit-tab-stops):
* lisp/printing.el (pr-help-message, pr-show-setup):
* lisp/progmodes/cperl-mode.el (cperl-narrow-to-here-doc): Use
substitute-command-keys.
2022-08-23 21:08:38 +02:00
Juri Linkov
0e99046d62
Add new args MESSAGE and TIMEOUT to set-transient-map (bug#21634)
...
* lisp/subr.el (set-transient-map): Add new args MESSAGE and TIMEOUT.
(set-transient-map-timeout, set-transient-map-timer): New variables.
* lisp/international/emoji.el (emoji-zoom-increase):
* lisp/indent.el (indent-rigidly):
* lisp/face-remap.el (text-scale-adjust, global-text-scale-adjust):
Use the arg MESSAGE of set-transient-map.
* doc/lispref/keymaps.texi (Controlling Active Maps): Mention new args
MESSAGE and TIMEOUT of set-transient-map.
2022-07-06 20:39:41 +03:00
Lars Ingebrigtsen
c74e7f801e
Bind TAB in indent-rigidly-map as a convenience
...
* lisp/indent.el (indent-rigidly): Mention it.
(indent-rigidly-map): Bind TAB so that `C-x TAB TAB...' does the
logical thing.
2022-05-12 03:35:49 +02:00
Stefan Kangas
cd44d45d92
Merge from origin/emacs-28
...
6dbc3da205
Fix :tag for eol in tab-first-completion
2022-03-01 07:05:15 +01:00
Lars Ingebrigtsen
6dbc3da205
Fix :tag for eol in tab-first-completion
...
* lisp/indent.el (tab-first-completion): Fix the :tag description
(bug#54179).
2022-02-28 10:14:23 +01:00
Stefan Kangas
3fbe137adb
Merge from origin/emacs-28
...
7f36aca99d
* lisp/indent.el (tab-first-completion): Fix incorrect cho...
2022-01-16 06:51:09 +01:00
Philipp Stephani
7f36aca99d
* lisp/indent.el (tab-first-completion): Fix incorrect choices.
2022-01-15 12:07:01 +01:00
Philipp Stephani
ec52d2775a
* lisp/indent.el (indent-for-tab-command): Use 'eq' for symbols.
2022-01-14 21:02:08 +01:00
Philipp Stephani
64109fcae7
indent-for-tab-command: Deal with large point or modiff values.
...
* lisp/indent.el (indent-for-tab-command): Don't use 'eq' to compare
integers that aren't guaranteed to be fixnums.
2022-01-14 20:59:28 +01:00
Philipp Stephani
c723401151
Simplify code for 'indent-for-tab-command' slightly.
...
* lisp/indent.el (indent-for-tab-command): Don't use a one-element
list for SYN.
2022-01-14 20:56:03 +01:00
Eli Zaretskii
dcd76bd48d
Merge from origin/emacs-28
...
836be7a112
; * etc/refcards/ru-refcard.tex: Update Copyright year.
86cbc6ee4a
* lisp/net/tramp-sh.el: Adapt copyright year
ebe8772f65
; Minor fixes related to copyright years
23c1ee6989
; * test/manual/etags/ETAGS.good_N: Adjust to copyright ye...
8d3fc7ec89
* src/xfaces.c (face_for_font): Make 'hash' be uintptr_t.
19dcb237b5
; Add 2022 to copyright years.
# Conflicts:
# etc/NEWS
# etc/refcards/ru-refcard.tex
# lib/cdefs.h
# lisp/erc/erc-dcc.el
# lisp/erc/erc-imenu.el
# lisp/erc/erc-replace.el
# lisp/image-dired.el
# lisp/progmodes/xref.el
# m4/alloca.m4
# m4/byteswap.m4
# m4/errno_h.m4
# m4/getopt.m4
# m4/gnulib-common.m4
# m4/inttypes.m4
# m4/stddef_h.m4
# m4/stdint.m4
# m4/sys_socket_h.m4
2022-01-01 07:03:03 -05:00
Eli Zaretskii
19dcb237b5
; Add 2022 to copyright years.
2022-01-01 02:45:51 -05:00
Miha Rihtaršič
f596f0db82
Don't ignore restriction in indent-region-line-by-line
...
* lisp/indent.el (indent-according-to-mode): Don't widen if the new
optional argument is non-nil.
(indent-region): Explicitly widen before calling
indent-region-line-by-line.
(indent-region-line-by-line): Don't widen (bug#51892).
Emacs convention is that low-level functions should respect restriction
so that their callers can set restriction according to their needs. For
example, 'c-indent-region' is a lower-level function which respects the
current restriction and 'indent-region' is a higher-level user command
which sets the restriction for lower-level functions, it calls
"(widen)".
'indent-region-line-by-line' is a low-level function on a similar level
as 'c-indent-region'. This patch makes it respect the current
restriction instead of having it call "(widen)".
2021-11-18 08:11:26 +01:00
Stefan Kangas
aebba085cb
; More minor stylistic fixes found by checkdoc
2021-09-22 20:26:40 +02:00
Eli Zaretskii
aecf4518a0
; * lisp/indent.el (tab-first-completion): Fix :version tag.
2021-09-05 21:24:22 +03:00
Eli Zaretskii
a4c922d84f
Clarify indent-line-function doc string
...
* lisp/indent.el (indent-line-function): Clarify by avoiding
specifics (bug#20846).
2021-05-30 06:11:02 +02:00
Stefan Monnier
cfb91b5bca
* lisp/indent.el (beginning-of-line-text): Mark it as a movement command
...
So that combining it with `shift` selects the text, as usual, in case
you have it bound for example to `C-a` in a mode like `enriched-mode`.
2021-02-08 09:18:41 -05:00
Glenn Morris
c0d504eb7e
Merge from origin/emacs-27
...
8ad48a0bdd
(origin/emacs-27) Improve doc string of 'text-scale-adjust'
7a25ff767d
Clarify the indent-rigidly doc string
6c5ddf0e0b
Fix two small tab bar issues
c71e08eba9
Fix last change in syntax.texi
# Conflicts:
# lisp/indent.el
2021-02-06 08:10:38 -08:00
Lars Ingebrigtsen
7a25ff767d
Clarify the indent-rigidly doc string
...
* lisp/indent.el (indent-rigidly): Clarify exiting the transient
mode (bug#46296).
2021-02-06 11:46:58 +01:00
Lars Ingebrigtsen
a14811fc96
Don't hard-code ignored functions in `indent-according-to-mode'
...
* lisp/indent.el (indent-line-ignored-functions): New variable
(bug#26945).
(indent-according-to-mode): Use it.
2021-02-05 13:36:06 +01:00
Paul Eggert
ba05d005e5
Update copyright year to 2021
...
Run "TZ=UTC0 admin/update-copyright".
2021-01-01 01:13:56 -08:00
Paul Eggert
8c1fe1e5ef
Update copyright year to 2021
...
Run "TZ=UTC0 admin/update-copyright $(git ls-files)".
2021-01-01 00:32:32 -08:00
Lars Ingebrigtsen
c41c1ac410
indent-rigidly doc string clarification
...
* lisp/indent.el (indent-rigidly): Note that the command
deactivates the mark (bug#42842).
2020-10-16 17:52:56 +02:00
Alex Branham
64c8511664
Add a new variable tab-first-completion
...
* doc/emacs/indent.texi (Indent Convenience): Mention it.
* doc/lispref/text.texi (Mode-Specific Indent): Document it.
* lisp/indent.el (tab-first-completion): New variable (bug#34787).
(indent-for-tab-command): Use it.
2020-10-14 07:26:58 +02:00
Lars Ingebrigtsen
65565a16cf
Revert "Explain in the tab-always-indent doc how to make TAB insert a TAB"
...
This reverts commit 4b23716311
.
overriding-terminal-local-map should apparently not be used for minor stuff like this.
2020-09-08 12:34:42 +02:00
Lars Ingebrigtsen
4b23716311
Explain in the tab-always-indent doc how to make TAB insert a TAB
...
* lisp/indent.el (tab-always-indent): Mention how to make TAB
insert a TAB character always (bug#37183).
2020-09-05 16:40:58 +02:00
Paul Eggert
365e01cc9f
Update copyright year to 2020
...
Run "TZ=UTC0 admin/update-copyright $(git ls-files)".
2020-01-01 00:59:52 +00:00
Paul Eggert
f744797af1
Go back to "Maintainer: emacs-devel@gnu.org"
...
Restore lines saying "Maintainer: emacs-devel@gnu.org" when there is
no special maintainer for a file. Although this wasn't documented
it was common practice and removing the lines didn't have consensus.
2019-05-25 14:25:18 -07:00
Paul Eggert
bef1be8730
Fixes for "Maintainer:" and related lines
...
Mostly, this just removes "Maintainer: emacs-devel@gnu.org" lines,
which are not that useful. It also cleans up and regularizes a
few similar lines.
2019-05-19 21:34:27 -07:00
Alex Branham
10cd65878c
Update documentation for indent-relative functions
...
* lisp/indent.el (indent-relative): Document what happens when there
is no previous nonblank line.
* doc/lispref/text.texi (Relative Indent): Document
indent-relative-first-indent-point instead of obsolete
indent-relative-maybe. Fix documentation of which argument from
'indent-relative' is used.
Bug#34858
2019-04-05 19:48:21 -05:00
Basil L. Contovounesios
0e468a6204
Avoid using obsolete indent-relative-maybe
...
* lisp/electric.el (electric-indent-functions-without-reindent):
* lisp/indent.el (indent-according-to-mode): Check for
indent-relative-first-indent-point in addition to its obsolete alias
indent-relative-maybe.
* lisp/obsolete/vi.el (vi-com-map): Use
indent-relative-first-indent-point in place of its obsolete alias
indent-relative-maybe.
2019-04-03 17:55:40 +01:00
Paul Eggert
ba809612c0
Merge from origin/emacs-26
...
2fcf2df
Fix copyright years by hand
26bed8b
Update copyright year to 2019
2814292
Fix value of default frame height. (Bug#33921)
2018-12-31 17:57:29 -08:00
Paul Eggert
26bed8ba10
Update copyright year to 2019
...
Run 'TZ=UTC0 admin/update-copyright $(git ls-files)'.
2019-01-01 01:01:13 +00:00
Noam Postavsky
8217998b0d
Preserve nonblank whitespace when indenting (Bug#32200)
...
* lisp/indent.el (indent-line-to): Remove only spaces and tabs, not
any whitespace syntax characters.
2018-07-22 10:52:48 -04:00
Noam Postavsky
c249e17324
* lisp/indent.el (indent-line-to): Fix dedenting of tabs.
2018-07-10 12:07:01 -04:00
Noam Postavsky
e4ad2d1a8f
Respect field boundaries in indent-line-to (Bug#32014)
...
* lisp/indent.el (indent-line-to): Use the back-to-indentation point
as the end-point of whitespace removal, rather than
backward-to-indentation which doesn't respect field boundaries.
* test/lisp/emacs-lisp/lisp-mode-tests.el
(lisp-indent-with-read-only-field): Don't expect to fail.
2018-07-09 20:08:13 -04:00
Paul Eggert
5c7dd8a783
Update copyright year to 2018
...
Run admin/update-copyright.
2018-01-01 00:57:59 -08:00
Dmitry Gutov
b9fbc03b86
Widen in indent-for-tab-command in the normal case, too
...
Fixing this obvious omission.
* lisp/indent.el (indent--funcall-widened): New function.
(indent-for-tab-command): Use it.
2017-12-20 01:42:49 +02:00
Dmitry Gutov
7e9eef0ffd
Consolidate 'widen' calls
...
* lisp/progmodes/prog-mode.el (prog-indentation-context):
Un-document all elements but the first.
(prog-widen): Remove.
(http://lists.gnu.org/archive/html/emacs-devel/2017-12/msg00321.html )
* doc/lispref/text.texi (Mode-Specific Indent): Update.
* lisp/progmodes/ruby-mode.el (ruby-calculate-indent):
Don't call widen.
* lisp/progmodes/python.el
(python-indent-guess-indent-offset)
(python-info-current-defun): Replace prog-widen with widen;
these functions are not called during indentation.
(python-indent-context)
(python-indent--calculate-indentation)
(python-info-dedenter-opening-block-message)
(python-info-line-ends-backslash-p)
(python-info-beginning-of-backslash)
(python-info-continuation-line-p)
(python-info-current-defun): Remove 'widen' calls.
* lisp/indent.el (indent-according-to-mode)
(indent-for-tab-command, indent-region): Move them here.
* lisp/textmodes/mhtml-mode.el (mhtml-indent-line):
Bind prog-indentation-context to one-element list.
2017-12-14 11:18:51 +02:00