Mauro Aranda
ad02fc212b
Fix indentation and fontification in shell-script (Bug#26217)
...
* lisp/progmodes/sh-script.el (sh-smie--sh-keyword-p): Treat "do" as
special, like we treat "in".
(sh-smie--sh-keyword-in-p): Change signature. Take the token to
decide correctly if it's a keyword.
(sh-font-lock-keywords-var-1): Add do.
* test/lisp/progmodes/sh-script-resources/sh-indents.erts: New test.
* test/lisp/progmodes/sh-script-tests.el
(sh-script-test-do-fontification): New test.
2023-10-14 11:00:15 -04:00
Yuan Fu
2547fbe9c4
Obsolete treesit-block/sexp/sentence/text-type-regexp
...
And replace them with treesit-thing-settings.
* doc/lispref/positions.texi (List Motion): Remove mention of
treesit-sexp/sentence-type-regexp.
* lisp/progmodes/c-ts-mode.el (c-ts-base-mode)
* lisp/progmodes/dockerfile-ts-mode.el (dockerfile-ts-mode)
* lisp/progmodes/java-ts-mode.el (java-ts-mode)
* lisp/progmodes/js.el (js-ts-mode)
* lisp/progmodes/json-ts-mode.el (json-ts-mode)
* lisp/progmodes/ruby-ts-mode.el (ruby-ts-mode)
* lisp/progmodes/typescript-ts-mode.el (typescript-ts-base-mode)
(tsx-ts-mode)
* lisp/progmodes/heex-ts-mode.el (heex-ts-mode)
* lisp/progmodes/sh-script.el (bash-ts-mode)
* lisp/progmodes/prog-mode.el (prog-fill-reindent-defun)
* lisp/textmodes/html-ts-mode.el (html-ts-mode): Replace
treesit-sexp/sentence/text-type-regexp with treesit-thing-settings.
* lisp/treesit.el (treesit-sexp-type-regexp)
(treesit-sentence-type-regexp): Mark obsolete.
(treesit-block-type-regexp): Remove.
* lisp/treesit.el (treesit-forward-sexp)
(treesit-transpose-sexps)
(treesit-beginning-of-defun)
(treesit-end-of-defun)
(treesit-forward-sentence)
(treesit-defun-at-point): Make use of treesit-thing-settings.
(treesit-thing-definition)
(treesit-thing-defined-p): New functions.
(treesit-major-mode-setup): Replace
treesit-sexp/sentence-type-regexp with treesit-thing-settings.
2023-09-01 20:38:25 -07:00
Stefan Kangas
6426912515
; Delete redundant defvars; font-lock is preloaded
2023-08-25 23:54:51 +02:00
Andreas Schwab
a5bf0ae661
sh-script: improve fontification of RPM spec files
...
Fontifiy only macros at line beginning as keywords, otherwise as
variables. Add more accurate match for macros.
* lisp/progmodes/sh-script.el (sh-font-lock-keywords-var): Add
more accurate patterns for rpm macros. Also fontify parenthesized
word after keyword.
2023-07-03 00:08:21 +02:00
Davide Masserut
bfec5674c6
Recognize PKGBUILD as bash style
...
* lisp/progmodes/sh-script.el (sh--guess-shell): Handle PKGBUILD.
(Bug#64251)
2023-07-01 11:27:58 +03:00
Eli Zaretskii
d1ddd1d5d9
Merge from origin/emacs-29
...
84d2da003e
; Fix example in the Flymake manual
0a1459f1d9
* doc/misc/calc.texi (Advanced Math Functions): Correct c...
92faf1f564
Consider 'dired-kill-when-opening-new-dired-buffer' in mo...
bafe71a69f
; Fix use-package.texi markup
018e4ca6c5
; * doc/misc/calc.texi (Advanced Math Functions): Fix las...
1952dbd4c5
Fix Gamma function definition in calc.texi
f73f82d7e8
Fix subscripts in the Calc manual
70fc7c41ef
Improve documentation of 'declare' forms
c835758238
; * src/lread.c (bytecode_from_rev_list): Avoid C++ comment.
2847857496
Improve tree-sitter docs
0e9307eb2b
Fix some Texinfo markup in manuals
8dc08333ee
Fix bol/bos anchors in tree-sitter :match regexps
8225ade615
; * src/xdisp.c (syms_of_xdisp) <display-line-numbers>: F...
1f0527a312
; Fix last change in tex-mode.el
4da479920e
* lisp/subr.el (with-restriction): Tweak indent rule
36aa9bd818
; Fix previous change
aaeaf608d8
Fix setting region in the minibuffer
1383efe01d
Fix setting $DBUS_SESSION_BUS_ADDRESS after Emacs has sta...
bdb0bc2b4e
Fix tex-mode display-buffer issues
90047c38ce
Add test for when 'completion-auto-help' is 'visible'
2c623e4feb
Avoid errors in 'apropos-documentation' after 'eval-buffer'
dd3b98121c
; * doc/emacs/indent.texi (Indentation Commands): Fix las...
904edf1f07
Mention indent-rigidly in the Emacs manual
2023-06-17 05:02:55 -04:00
Basil L. Contovounesios
8dc08333ee
Fix bol/bos anchors in tree-sitter :match regexps
...
Further regexp fixes to follow separately (bug#64019#29).
* lisp/progmodes/c-ts-mode.el (c-ts-mode--font-lock-settings):
* lisp/progmodes/cmake-ts-mode.el
(cmake-ts-mode--font-lock-settings):
* lisp/progmodes/java-ts-mode.el (java-ts-mode--font-lock-settings):
* lisp/progmodes/js.el (js--treesit-font-lock-settings):
* lisp/progmodes/python.el (python--treesit-settings):
* lisp/progmodes/rust-ts-mode.el (rust-ts-mode--font-lock-settings):
* lisp/progmodes/sh-script.el (sh-mode--treesit-settings):
* lisp/progmodes/typescript-ts-mode.el
(typescript-ts-mode--font-lock-settings):
* test/src/treesit-tests.el (treesit-query-api): Anchor :match
regexps at beginning/end of string, not line.
2023-06-13 14:35:14 +01:00
Eli Zaretskii
709d558047
Merge from origin/emacs-29
...
c62afb10cf
Fix wallpaper-tests on MS-Windows
f2d212c696
Fix a couple of eglot-tests
338b3718b6
Fix visiting RPM files
b4afee0319
Fix ff-quiet-mode doc
2445100d7d
; Improve documentation of 'match-buffers'
d4d0da96f0
; Update make-tarball.txt for Emacs 29.
9b0bf694da
; Fix ldefs-boot.el.
0cb86a348c
; Update ChangeLog.4.
# Conflicts:
# ChangeLog.4
2023-04-15 12:44:48 -04:00
Eli Zaretskii
338b3718b6
Fix visiting RPM files
...
We cannot call 'sh-set-shell' inside 'sh-base-mode', since various
settings of 'sh-mode', in particular the syntax table, is not yet
set. Likewise with various hooks: since 'sh-base-mode' is not a
mode any file should be visited with, it makes no sense to set up
stuff like 'hack-local-variables-hook' in 'sh-base-mode'; it
should be set in the descendant modes instead.
* lisp/progmodes/sh-script.el (sh-base-mode): Move the call to
'sh-set-shell' from here...
(sh-mode): ...to here...
(bash-ts-mode): ...with a copy here. (Bug#62748)
2023-04-10 16:09:58 +03:00
Stefan Kangas
aad617870b
Merge from origin/emacs-29
...
1c67e4f895
Fix c-ts-mode indentation
d724d7d678
Fix c-ts-mode indentation
7292b24c80
Fix c-ts-mode indentation
75cdc1afbe
; Change font-lock-variable-name-face to font-lock-variab...
b1b3af5b90
Update to Org 9.6.1-40-g3d817c
80e1037df4
Add string-interpolation feature to bash-ts-mode
5b8e0b3154
Fix tramp-sh-handle-insert-directory
2258ed01f4
; Minor fix of last change
9c18af0cfa
* Warn when certain primitives are redefined (bug#61880)
5af695c747
; * lib-src/etags.c (print_help): Fix indentation.
2023-03-06 06:30:13 +01:00
Yuan Fu
75cdc1afbe
; Change font-lock-variable-name-face to font-lock-variable-use-face
...
* lisp/progmodes/sh-script.el:
(sh-mode--treesit-settings): Change font-lock-variable-name-face to
font-lock-variable-use-face.
2023-03-05 14:46:18 -08:00
Yuan Fu
80e1037df4
Add string-interpolation feature to bash-ts-mode
...
* lisp/progmodes/sh-script.el:
(bash-ts-mode): Add string-interpolation feature.
(sh-mode--treesit-settings): Add rule for string-interpolation feature.
2023-03-05 14:17:57 -08:00
Philippe Altherr
68f49083af
Add support for Zsh's case branches ;|.
...
* lisp/progmodes/sh-script.el (sh-font-lock-paren)
(sh-smie-sh-grammar, sh-smie-sh-rules, sh-smie-rc-grammar):
Support case branches ending with ";|", per Zsh. (Bug#60833)
* test/manual/indent/shell.sh (bar): Add ";|".
2023-03-02 12:49:32 +02:00
Philippe Altherr
30e2a85717
Use 'sh-indent-for-continuation' for continued lines in 'sh-script-mode'
...
* lisp/progmodes/sh-script.el (sh-smie--indent-continuation): Use
'sh-indent-for-continuation' instead of 'sh-basic-offset'.
(Bug#60832)
* test/lisp/progmodes/sh-script-tests.el
(test-indent-after-continuation): New test.
2023-03-02 12:37:58 +02:00
Eli Zaretskii
3c55fbd4ad
Merge from origin/emacs-29
...
cae528457c
; Add 2023 to copyright years.
b394359261
Improve documentation of 'isearch-open-overlay-temporary'
ab3210e709
Document 'use-package' in the 2 main manuals
# Conflicts:
# etc/refcards/ru-refcard.tex
# lib/explicit_bzero.c
# m4/explicit_bzero.m4
2023-01-01 05:47:47 -05:00
Eli Zaretskii
cae528457c
; Add 2023 to copyright years.
2023-01-01 05:31:12 -05:00
Stefan Kangas
dce6791e99
Merge from origin/emacs-29
...
db96b1282f
* lisp/help.el: Use 'C-h C-q' to toggle 'help-quick' wind...
489865c21e
; Improve markup of long key sequences
d42c2668cf
; * etc/NEWS: Fix wording of a recently edited entry.
7a0eaee198
* lisp/isearch.el: Small fixes.
b69bffeec0
* lisp/vc/diff-mode.el (diff-minor-mode-prefix): Replace ...
9263847ab7
; * etc/NEWS: Move the paragraph with 'C-u RET' closer to...
62fb2dc37d
* doc/emacs/display.texi (Text Scale): Improve section ab...
70480d3b6b
* lisp/repeat.el (repeat-echo-function): Suggest 'add-fun...
fd48201ffe
* lisp/tab-line.el (tab-line-cache-key-default): More cac...
b164660260
* etc/package-keyring.gpg: Update with new key
c0be51389e
; Yet another declare-function to avoid treesit-related w...
8676bec51d
; * lisp/treesit.el (treesit--simple-imenu-1): Doc fix; w...
2ddc480f44
Warn of absent networks module in ERC
19d00fab9a
Avoid "already compiled" warning in erc-compat
2d8f7b66bc
; Fix one more treesit byte-compilation warning.
2d0a921486
; Avoid treesit-related byte-compiler warnings
8503b370be
(python--treesit-settings): Remove duplicate matcher
b464e6c490
Make last change of w32 GUI dialogs conditional and rever...
eedc9d79ae
Fix tree-sitter typos
248c13dcfe
Update tree-sitter major modes to use the new Imenu facility
b39dc7ab27
Add tree-sitter helper functions for Imenu
ba1ddea9da
Fix treesit--things-around (bug#60355)
7512b9025a
; * lisp/treesit.el (treesit-traverse-parent): Remove alias.
5326b04198
Improve treesit-node-top-level and treesit-parent-until
637f5b164f
; Add "src" to the heuristic sub-directory heuristic
8ab6df0c9f
; * lisp/epa-ks.el (epa-ks-do-key-to-fetch): Fix 'when' u...
2b55a48d3e
* src/w32menu.c (simple_dialog_show): Use MB_YESNOCANCEL ...
8b8b791567
; Improve documentation of TAB/SPC indentation
624e382211
; Improve doc strings of some new faces
41f12e1019
; * lisp/elide-head.el (elide-head): Doc fix to silence c...
e3b4cd0ac1
; * lisp/htmlfontify.el (hfy-text-p): Fix whitespace.
1b4dc4691c
Fix htmlfontify.el command injection vulnerability.
1fe4b98b4d
Improve support for Scheme R6RS and R7RS libraries (bug#5...
2347f37f67
; * test/src/treesit-tests.el: remove dead store (bytecom...
a6d961ae2f
Add a new tree-sitter query predicate 'pred'
835a80dcc4
; Fix tree-sitter defun tests
a14821d615
Improve gnutls-min-prime-bits docstring
b14bbd108e
Improve handling of tab-bar height.
669160d47b
; * nt/INSTALL.W64: More fixes and updates.
26b2ec7cb8
Simplify last change (bug#60311)
082fc6e308
Fix 'json-available-p' on MS-Windows
6c86faec29
loaddefs-gen: Group results by absolute file name
d90d7d15f2
; Fix vindexes in parsing.texi
eb26872837
Fix imenu for c-ts-mode (bug#60296)
8f68b6497e
Clean up python-ts-mode font-lock features
28f26b11a1
Add comment indent and filling to other tree-sitter major...
c6b0282645
; Remove unused function in c-ts-mode
6e52a9fcad
; * doc/lispref/modes.texi (Parser-based Font Lock): Mino...
2bcd1e9a99
; * doc/lispref/parsing.texi (Retrieving Nodes): Add notice.
7c7950fe00
Add maintainer stub for tree-sitter files
cf32776622
; * doc/lispref/parsing.texi (Using Parser): Remove delet...
# Conflicts:
# etc/NEWS
# lisp/progmodes/c-ts-mode.el
# lisp/progmodes/typescript-ts-mode.el
# lisp/treesit.el
2022-12-28 21:40:59 +01:00
Eli Zaretskii
c0be51389e
; Yet another declare-function to avoid treesit-related warning
2022-12-28 19:08:19 +02:00
Stefan Kangas
03892d4f7c
Merge from origin/emacs-29
...
033071692c
; Fix typos
f4a513344d
Add lambda_expression-rule to java-ts-mode (bug#60091)
546aed3543
eglot: Add support for new language server csharp-ls
cb761eb7ac
Use the new tree-sitter commands
037407ad95
Add "function" feature to python-ts-mode (bug#59977)
fee2efe1b0
Add go-ts-mode and go-mod-ts-mode (Bug#60025)
e8f7ab67ad
Add basic support for hideshow in python-ts-mode (bug#60044)
cac070b23e
Add "this" keyword to java-ts-mode (bug#60086)
c8d75046a2
When completing relative project file names, use relative...
3b618d0e3e
Avoid segfaults due to invalid selected-window's buffer
# Conflicts:
# lisp/progmodes/sh-script.el
2022-12-16 08:45:06 +01:00
Yuan Fu
cb761eb7ac
Use the new tree-sitter commands
...
* lisp/progmodes/c-ts-mode.el (c-ts-mode--defun-valid-p)
(c-ts-mode--defun-skipper): New functions.
(c-ts-base-mode): Setup defun navigation.
* lisp/progmodes/sh-script.el (bash-ts-mode): Setup defun navigation.
* lisp/treesit.el (treesit-beginning-of-defun)
(treesit-end-of-defun): Change to new implementation, which is
intended to be used as commands.
(treesit-major-mode-setup): Setup remap for beginning/end-of-defun
commands.
2022-12-15 17:44:07 -08:00
Stefan Kangas
fa70076974
Merge from origin/emacs-29
...
fafcf02c85
Fix syntax tables of tree-sitter modes (bug#59807)
91b8d9b7db
; * admin/notes/tree-sitter/build-module/build.sh: Minor ...
1b0e282a7f
; Comment and stylistic change in treesit.el
489b02d03c
* doc/misc/Makefile.in (need_emacsver): Add use-package.
2022-12-15 21:13:13 +01:00
Kai Ma
fafcf02c85
Fix syntax tables of tree-sitter modes (bug#59807)
...
Tree-sitter modes should use the same syntax table as the
non-tree-sitter ones.
* lisp/progmodes/js.el (js-mode-syntax-table)
(js-ts-mode)
* lisp/progmodes/python.el (python-ts-mode)
* lisp/progmodes/sh-script.el (bash-ts-mode)
Copyright-paperwork-exempt: yes
xx
2022-12-13 18:05:48 -08:00
Theodor Thornhill
b889eced44
Add prog-fill-reindent-defun (bug#59664)
...
Introduce a new command that aims to reindent code in a defun, or fill
a paragraph of text. The command uses treesit.el when available,
otherwise falls back to using syntax-ppss and regexps. Treesit.el
needs a new variable that is intended to be set by the major modes so
that this and other future functions can know what kind of node we are
looking at.
* doc/emacs/programs.texi: Mention the new command.
* etc/NEWS: Mention the new command.
* lisp/progmodes/c-ts-mode.el (c++-ts-mode): Add regexp for the new
variable.
* lisp/progmodes/csharp-mode.el (csharp-ts-mode): Add regexp for the
new variable.
* lisp/progmodes/java-ts-mode.el (java-ts-mode): Add regexp for the
new variable.
* lisp/progmodes/js.el (js-ts-mode): Add regexp for the new variable.
* list/progmodes/prog-mode.el (prog-mode-map): Bind the new command by
default.
(prog-fill-reindent-defun): New command.
* lisp/progmodes/sh-script.el (bash-ts-mode): Add regexp for the new
variable.
* lisp/progmodes/typescript-ts-mode.el (typescript-ts-base-mode): Add
regexp for the new variable.
* lisp/treesit.el (treesit-text-type-regexp): New variable.
2022-12-11 22:31:31 +02:00
Yikai Zhao
f72cda2b82
Speed up auto-completion in 'sh-script-mode'
...
* lisp/progmodes/sh-script.el (sh--cmd-completion-table-gen): New
function, replacement for 'sh--cmd-completion-table'.
(sh--cmd-completion-table): Function removed.
(sh-completion-at-point-function): Use
'sh--cmd-completion-table-gen'. (Bug#59678)
2022-12-02 15:42:09 +02:00
Eli Zaretskii
c3240ca540
; * lisp/progmodes/sh-script.el (sh--redirect-bash-ts-mode): Doc fix.
2022-11-27 09:58:02 +02:00
Yuan Fu
3fe5fc3dc1
Make bash-ts-mode fall back to sh-mode if the file isn't in Bash
...
* lisp/progmodes/sh-script.el (sh--guess-shell): Take out into a new
function.
(sh-base-mode): Use the new function.
(bash-ts-mode): Update docstring.
(sh--redirect-recursing): New variable.
(sh--redirect-bash-ts-mode): New function.
2022-11-26 15:40:25 -08:00
Yuan Fu
93c8220937
Reorganize treesit-font-lock-feaure-list's to the new level scheme
...
* lisp/progmodes/c-ts-mode.el (c-ts-mode--base-mode)
* lisp/progmodes/csharp-mode.el (csharp-ts-mode)
* lisp/progmodes/java-ts-mode.el (java-ts-mode)
* lisp/progmodes/js.el (js-ts-mode)
* lisp/progmodes/python.el (python-ts-mode)
* lisp/progmodes/sh-script.el (bash-ts-mode)
* lisp/progmodes/typescript-ts-mode.el (typescript-ts-mode):
Reorganized treesit-font-lock-feature-list.
2022-11-26 15:40:24 -08:00
Randy Taylor
0ed3136422
Utilize new font-lock faces for more tree-sitter modes (Bug#59397)
...
* lisp/progmodes/java-ts-mode.el (java-ts-mode--font-lock-settings):
Use font-lock-number-face.
(java-ts-mode): Alphabetize features.
* lisp/progmodes/js.el (js--treesit-operators): Define operators.
(js--treesit-font-lock-settings): Use bracket, delimiter,
escape-sequence, property, number, and operator font-lock faces.
(js-ts-mode): Add them to the feature list and alphabetize.
* lisp/progmodes/json-ts-mode.el (json-ts-mode--font-lock-settings):
Use bracket, delimiter, escape-sequence, and number faces. Remove
unused features.
(json-ts-mode): Add them to the feature list and alphabetize.
* lisp/progmodes/sh-script.el (sh-mode--treesit-settings): Use
bracket, delimiter, number, misc-punctuation, and operator font-lock
faces.
(sh-mode--treesit-operators): Remove ; and ;; from list.
(bash-ts-mode): Add them to the feature list and alphabetize.
* lisp/progmodes/ts-mode.el (ts-mode--operators): Define operators.
(ts-mode--font-lock-settings): Use escape-sequence, number, and
operator font-lock faces.
(ts-mode): Add them to the feature list and alphabetize.
2022-11-22 19:07:26 -08:00
Yuan Fu
1161c96cc9
Separate tree-sitter and non-tree-sitter variant of sh-mode
...
Now there are three modes, sh-base-mode, sh-mode, bash-ts-mode.
The change I made: change sh-mode to sh-base-mode, remove docstring.
Below the new sh-base-mode, create a new definition for sh-mode, paste
the dostring, add setup for font-lock-defaults. Below sh-mode, add
bash-ts-mode.
* lisp/progmodes/sh-script.el (sh-mode): Moves all setup into
sh-base-mode, except for the setup for font-lock-defaults and the
docstring.
(sh-base-mode): New mode.
(bash-ts-mode): New mode.
2022-11-22 01:06:52 -08:00
Yuan Fu
aaeaa310f0
Merge remote-tracking branch 'savannah/master' into feature/tree-sitter
2022-11-21 12:54:35 -08:00
Yuan Fu
4fa13b2d83
Fix uses of treesit-ready-p
...
* lisp/progmodes/c-ts-mode.el (c-ts-mode)
(c++-ts-mode)
* lisp/progmodes/java-ts-mode.el (java-ts-mode)
* lisp/progmodes/js.el (js-ts-mode)
* lisp/progmodes/json-ts-mode.el (json-ts-mode)
* lisp/progmodes/python.el (python-ts-mode)
* lisp/progmodes/sh-script.el (sh-mode)
* lisp/progmodes/ts-mode.el (ts-mode): Remove the MODE argument.
2022-11-19 18:58:12 -08:00
Yuan Fu
59eaa30b07
Use keyword-face for declaration commands in tree-sitter sh-mode
...
* lisp/progmodes/sh-script.el: Change builtin to keyword.
2022-11-19 01:33:36 -08:00
Stefan Kangas
ba485eb949
; Fix typos
2022-11-18 16:02:19 +01:00
Yuan Fu
d5c6d69b4f
Improvements to the tree-sitter setup in sh-script.el
...
* lisp/progmodes/sh-script.el (sh-mode--treesit-settings): Add defvar.
(sh-mode): Change feature names.
(sh-mode--treesit-fontify-decl-command): Remove function.
(sh-mode--treesit-declaration-commands): New variable.
(sh-mode--treesit-settings): Change feature names. Simplify
declaration-command feature.
2022-11-17 10:11:21 -08:00
Yuan Fu
28490cd65b
; Minor stylistic fix for previous change on sh-script.el
...
* lisp/progmodes/sh-script.el: Stylistic change.
2022-11-17 10:11:21 -08:00
João P. L. de Carvalho
d06127e573
Initial fontification in sh-mode with tree-sitter
...
* lisp/progmodes/sh-script.el (sh-mode): Add tree-sitter setup. Move
setup of font-lock-defaults into branch.
(sh-mode--treesit-operators)
(sh-mode--treesit-keywords)
(sh-mode--treesit-settings): New variables.
(sh-mode--treesit-other-keywords)
(sh-mode--treesit-fontify-decl-command): New functions.
2022-11-17 10:11:21 -08:00
Augusto Stoffel
767a10cc63
New Flymake backend using the shellcheck program
...
See bug#57884.
* lisp/progmodes/sh-script.el: Require let-alist and subr-x when
compiling.
(sh--json-read): Helper function to deal with possible absence of
json-parse-buffer.
(sh-shellcheck-program, sh--shellcheck-process,
sh-shellcheck-flymake): Variables and function defining a Flymake
backend.
(sh-mode): Add it to 'flymake-diagnostic-functions'.
2022-09-24 09:59:51 +02:00
Stefan Kangas
1f29ee2d21
Delete many items obsolete since 24.3
...
* lisp/allout.el (allout-exposure-change-hook)
(allout-structure-added-hook, allout-structure-deleted-hook)
(allout-structure-shifted-hook):
* lisp/arc-mode.el (archive-extract-hooks):
* lisp/buff-menu.el (Buffer-menu-buffer+size-width):
* lisp/calendar/timeclock.el (timeclock-modeline-display)
(timeclock-modeline-display, timeclock-update-modeline):
* lisp/cedet/semantic/db-el.el
(semanticdb-elisp-sym-function-arglist):
* lisp/cedet/semantic/db-file.el (semanticdb-save-database-hooks):
* lisp/cedet/semantic/edit.el (semantic-change-hooks)
(semantic-edits-new-change-hooks)
(semantic-edits-delete-change-hooks)
(semantic-edits-reparse-change-hooks):
* lisp/cedet/semantic/lex.el (semantic-lex-reset-hooks):
* lisp/comint.el (comint--unquote&expand-filename)
(comint-unquote-filename):
* lisp/custom.el (user-variable-p):
* lisp/dired.el (dired-shrink-to-fit, dired-pop-to-buffer)
(dired-sort-set-modeline):
* lisp/ebuff-menu.el (Electric-buffer-menu-mode):
* lisp/emacs-lisp/byte-run.el (macro-declaration-function):
* lisp/emacs-lisp/checkdoc.el (custom-print-functions)
(checkdoc-comment-style-hooks):
* lisp/emacs-lisp/cl-lib.el (custom-print-functions):
* lisp/emacs-lisp/edebug.el (gud-inhibit-global-bindings):
* lisp/erc/erc-dcc.el (erc-dcc-chat-filter-hook):
* lisp/eshell/esh-mode.el (eshell-status-in-modeline):
* lisp/eshell/eshell.el (eshell-add-to-window-buffer-names)
(eshell-remove-from-window-buffer-names):
* lisp/faces.el (set-face-underline-p, font-list-limit):
* lisp/files.el (automount-dir-prefix, toggle-read-only):
* lisp/filesets.el (filesets-cache-fill-content-hooks):
* lisp/frame.el (automatic-hscrolling):
* lisp/generic-x.el (javascript-generic-mode)
(javascript-generic-mode-hook):
* lisp/gnus/gnus-start.el (gnus-subscribe-newsgroup-hooks):
* lisp/gnus/nndiary.el (nndiary-request-create-group-hooks)
(nndiary-request-update-info-hooks)
(nndiary-request-accept-article-hooks):
* lisp/htmlfontify.el (hfy-post-html-hooks):
* lisp/international/mule-cmds.el
(inactivate-current-input-method-function)
(inactivate-input-method, input-method-inactivate-hook)
(ucs-insert):
* lisp/international/quail.el (quail-inactivate)
(quail-inactivate-hook):
* lisp/international/robin.el (robin-inactivate)
(robin-inactivate-hook):
* lisp/leim/quail/hangul.el (hangul-input-method-inactivate):
* lisp/leim/quail/uni-input.el (ucs-input-inactivate):
* lisp/mail/emacsbug.el (report-emacs-bug-info):
* lisp/mh-e/mh-e.el (mh-kill-folder-suppress-prompt-hooks):
* lisp/mpc.el (mpc-string-prefix-p):
* lisp/net/rcirc.el (rcirc-print-hooks, rcirc-sentinel-hooks)
(rcirc-receive-message-hooks, rcirc-activity-hooks):
* lisp/obsolete/crisp.el (crisp-mode-modeline-string):
* lisp/pcomplete.el (pcomplete-arg-quote-list)
(pcomplete-quote-argument):
* lisp/progmodes/cc-mode.el (c-prepare-bug-report-hooks):
* lisp/progmodes/python.el (python-info-ppss-context)
(python-info-ppss-context-type)
(python-info-ppss-comment-or-string-p, python-indent)
(python-guess-indent, python-buffer, python-preoutput-result)
(python-proc, python-send-receive, python-send-string)
(python-use-skeletons):
* lisp/progmodes/sh-script.el (sh-maybe-here-document):
* lisp/replace.el (query-replace-interactive):
* lisp/strokes.el (strokes-modeline-string):
* lisp/subr.el (redraw-modeline):
* lisp/term.el (term-default-fg-color, term-default-bg-color):
* lisp/textmodes/tex-mode.el (latex-string-prefix-p)
(tex-string-prefix-p):
* lisp/url/url-parse.el (url-recreate-url-attributes):
* lisp/vc/add-log.el (change-log-acknowledgement):
* lisp/vc/ediff-wind.el
(ediff-choose-window-setup-function-automatically):
* lisp/vc/pcvs-util.el (cvs-string-prefix-p):
* lisp/vc/vc.el (vc-string-prefix-p):
* lisp/window.el (display-buffer-function):
* lisp/winner.el (winner-mode-leave-hook): Remove many functions and
variables obsolete since 24.3.
* lisp/buff-menu.el (list-buffers--refresh):
* lisp/dired.el (dired-mode-map):
* lisp/files.el (abbreviate-file-name):
* lisp/generic-x.el (generic-default-modes):
* lisp/mh-e/mh-funcs.el (mh-kill-folder):
* lisp/progmodes/hideif.el (hide-ifdef-mode-submap):
* lisp/replace.el (query-replace-read-from):
* lisp/term.el (term):
* lisp/window.el (display-buffer): Don't use above deleted
functions and variables.
* src/marker.c (Fbuffer_has_markers_at): Delete DEFUN obsolete
since 24.3.
(syms_of_marker) <Sbuffer_has_markers_at>: Delete defsubr.
* lisp/subr.el (buffer-has-markers-at): Remove obsoletion
of above deleted DEFUN.
* etc/TODO: Doc fix; don't mention above deleted function.
* admin/cus-test.el (cus-test-get-options):
* lisp/pcomplete.el: Doc fixes; don't mention removed items.
; * etc/NEWS: List removed items.
2022-09-09 11:27:30 +02:00
Stefan Kangas
3e7f6ff4b0
Prefer defcustom :safe to putting 'safe-local-variable'
...
* lisp/emacs-lisp/lisp-mode.el (lisp-indent-offset)
(lisp-body-indent, emacs-lisp-docstring-fill-column):
* lisp/files.el (version-control):
* lisp/progmodes/modula2.el (m2-indent):
* lisp/progmodes/octave.el (octave-block-offset):
* lisp/progmodes/sh-script.el (sh-basic-offset):
* lisp/progmodes/tcl.el (tcl-indent-level)
(tcl-continued-indent-level):
* lisp/simple.el (fill-prefix):
* lisp/textmodes/fill.el (colon-double-space):
* lisp/textmodes/paragraphs.el (paragraph-start)
(paragraph-separate, sentence-end-double-space)
(sentence-end-without-period, sentence-end-without-space)
(sentence-end, sentence-end-base, page-delimiter)
(paragraph-ignore-fill-prefix):
* lisp/textmodes/tex-mode.el (tex-fontify-script):
* lisp/vc/add-log.el (add-log-dont-create-changelog-file):
* lisp/vc/vc-hooks.el (vc-follow-symlinks): Prefer defcustom :safe to
putting 'safe-local-variable'.
2022-07-06 20:50:42 +02:00
Stefan Kangas
22bcbf8e2c
Fix missing :value with defcustom const :type
...
* lisp/calendar/calendar.el (calendar-intermonth-header)
(calendar-intermonth-text, calendar-date-style):
* lisp/calendar/diary-lib.el (diary-face-attrs):
* lisp/emacs-lisp/package.el (package-check-signature):
* lisp/erc/erc-dcc.el (erc-dcc-get-default-directory):
* lisp/gnus/gnus-art.el (gnus-auto-select-part):
* lisp/gnus/gnus-cus.el (gnus-agent-parameters):
* lisp/gnus/gnus.el (gnus-user-agent):
* lisp/mail/rmail.el (rmail-retry-ignored-headers):
* lisp/progmodes/sh-script.el (sh-indent-after-continuation):
Fix missing :value with defcustom const :type.
2022-07-06 15:30:32 +02:00
Davide Masserut
a2e56a8d65
Send region to the subshell specified by the current file interpreter
...
* sh-script.el (sh-execute-region): Send region to the subshell
specified by the current file interpreter (bug#56406).
2022-07-06 13:45:40 +02:00
Lars Ingebrigtsen
c3138ba1b1
Bump sh-imenu-generic-expression defcustom version
...
* lisp/progmodes/sh-script.el (sh-imenu-generic-expression): Bump
the :version since we changed the value.
2022-06-11 18:13:27 +02:00
Visuwesh
4881ce7a74
Support mksh-specific function names in imenu
...
* lisp/progmodes/sh-script.el (sh-imenu-generic-expression): Add
mksh-specific function names to imenu-generic-expression
(bug#55889).
2022-06-11 13:05:17 +02:00
Stefan Kangas
7da754015f
Merge from origin/emacs-28
...
9283508fb2
Fix format specifiers in tramp-adb.el
a9f17ccce3
; Fix some doc typos and minor language issues
2022-05-27 06:30:20 +02:00
Štěpán Němec
a9f17ccce3
; Fix some doc typos and minor language issues
2022-05-26 10:29:10 +02:00
Lars Ingebrigtsen
4d7390576b
Add a new command 'yank-in-context'
...
* lisp/simple.el (escaped-string-quote): New variable.
(yank-in-context): New command.
(yank-in-context--transform): Helper function.
* lisp/progmodes/sh-script.el (sh-mode): Set up an
escaped-string-quote function.
* lisp/progmodes/sql.el (sql-mode): Define escaped-string-quote.
2022-05-20 03:24:38 +02:00
Eli Zaretskii
454caf858d
; Improve doc string of 'sh-indent-statement-after-and'
...
* lisp/progmodes/sh-script.el (sh-indent-statement-after-and):
Clarify the doc string. (Bug#22645)
2022-05-12 19:58:39 +03:00
Lars Ingebrigtsen
7a8bed2553
Add new user option 'sh-indent-statement-after-and'
...
* lisp/progmodes/sh-script.el (sh-indent-statement-after-and): New
user option (bug#22645).
(sh-smie-sh-rules): Use it.
2022-05-12 18:16:43 +02:00
Davide Masserut
e32dcc7527
Add .bashrc detection to sh-mode
...
* lisp/progmodes/sh-script.el (sh-mode): Add .bashrc string-match
(bug#54727).
2022-04-06 11:38:08 +02:00
Lars Ingebrigtsen
985e7148a7
Improve indentation of some shell script forms
...
* lisp/progmodes/sh-script.el (sh-smie--default-backward-token):
Don't skip past things like "true;then" (bug#53817).
2022-02-07 09:13:54 +01:00