1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-27 07:37:33 +00:00
Commit Graph

146129 Commits

Author SHA1 Message Date
Michael Albinus
ed320ebe28 ; Fix last change 2021-03-31 21:12:09 +02:00
Michael Albinus
0f5bd3b7fa * lisp/net/tramp-sh.el (tramp-sh-gio-monitor-process-filter):
Make assumption for emba.
2021-03-31 21:09:55 +02:00
Stefan Kangas
f236b516b6 Use lexical-binding in progmodes/inf-lisp.el
* lisp/progmodes/inf-lisp.el: Use lexical-binding.  Doc fixes.
(inferior-lisp-mode-map, lisp-mode-map)
(inferior-lisp-install-letter-bindings): Quote function symbols as such.
(inferior-lisp-menu, lisp-compile-string, lisp-eval-string)
(lisp-show-variable-documentation): Doc fixes.
2021-03-31 12:59:37 +02:00
Michael Albinus
97992a342b ; * lisp/net/tramp-sh.el (tramp-sh-gio-monitor-process-filter):
; Instrument for emba.
2021-03-31 11:37:35 +02:00
Stefan Kangas
3b1c646202 Use lexical-binding in scroll-all.el
* lisp/scroll-all.el: Use lexical-binding.
(scroll-all-scroll-down-all, scroll-all-scroll-up-all)
(scroll-all-page-down-all, scroll-all-page-up-all)
(scroll-all-beginning-of-buffer-all)
(scroll-all-end-of-buffer-all): Doc fixes.
2021-03-31 08:25:24 +02:00
Stefan Kangas
99026711d7 * lisp/dynamic-setting.el: Use lexical-binding. 2021-03-31 08:05:58 +02:00
Luke Lee
8ac3132957 Fix incorrect regular expression for more general text replacements.
* lisp/progmodes/hideif.el (hif-evaluate-macro): fix regexp to trim
  off leading/trailing spaces, but not within.
2021-03-31 11:42:33 +08:00
Stefan Kangas
571c261525 Use lexical-binding in chistory.el
* lisp/chistory.el: Use lexical-binding.  Remove redundant :group
args.
(command-history-mode-map): Quote function symbols as such.
2021-03-31 01:43:47 +02:00
Stefan Kangas
20f2488dbf * lisp/ebuff-menu.el: Use lexical-binding. 2021-03-31 01:23:29 +02:00
Stefan Kangas
051f791f9e Use lexical-binding in double.el
* lisp/double.el: Use lexical-binding.  Remove redundant :group
args.
2021-03-31 01:11:21 +02:00
Stefan Kangas
995d1d9995 Use lexical-binding in dirtrack.el
* lisp/dirtrack.el: Use lexical-binding.  Remove redundant group
args.
2021-03-31 00:58:18 +02:00
Stefan Kangas
d47db03829 * lisp/progmodes/cwarn.el: Use lexical-binding. 2021-03-31 00:07:03 +02:00
Stefan Kangas
63608efe7e Remove redundant #' before lambda in cedet
* lisp/cedet/mode-local.el (mode-local-map-mode-buffers)
(mode-local--activate-bindings, mode-local--deactivate-bindings)
(setq-mode-local, describe-mode-local-bindings-in-mode):
* lisp/cedet/semantic.el (semantic-repeat-parse-whole-stream):
* lisp/cedet/semantic/bovine/c.el (semantic-c-describe-environment):
* lisp/cedet/semantic/db-ebrowse.el
(semanticdb-ebrowse-get-ebrowse-structure):
* lisp/cedet/semantic/db-global.el
(semanticdb-enable-gnu-global-databases):
* lisp/cedet/semantic/edit.el (semantic-changes-in-region):
* lisp/cedet/semantic/fw.el (semantic-install-function-overrides):
* lisp/cedet/semantic/grammar.el (semantic-grammar-ASSOC)
(semantic-grammar-tag-symbols, semantic-grammar-keywords)
(semantic--grammar-macros-regexp-1)
(semantic-format-tag-summarize):
* lisp/cedet/semantic/idle.el (semantic-idle-core-handler)
(semantic-idle-work-core-handler):
* lisp/cedet/semantic/imenu.el (semantic-imenu-semanticdb-hook):
* lisp/cedet/semantic/java.el (semantic-java-doc-keywords-map)
(semantic-java-doc-setup):
* lisp/cedet/semantic/lex-spp.el (semantic-lex-spp-save-table)
(semantic-lex-spp-macros):
* lisp/cedet/semantic/lex.el (semantic-lex-map-symbols)
(semantic-lex-keywords, semantic-lex-types):
* lisp/cedet/semantic/util-modes.el
(semantic-toggle-minor-mode-globally):
* lisp/cedet/semantic/wisent/comp.el (wisent-defcontext)
(wisent-automaton-lisp-form):
* lisp/cedet/semantic/wisent/grammar.el (wisent-grammar-assocs)
(wisent-grammar-terminals): Remove redundant #' before lambda.
2021-03-30 23:52:50 +02:00
Stefan Kangas
3c00496baa Delete Emacs 19 compat code in foldout.el
* lisp/foldout.el (foldout-hide-flag):
(foldout-show-flag): Delete Emacs 19 compat code and make obsolete.
(foldout-exit-fold): Don't use above obsolete variable.
2021-03-30 23:37:09 +02:00
Stefan Kangas
d3aac3b34c Use lexical-binding in lpr.el and add rudimentary tests
* lisp/lpr.el: Use lexical-binding.  Remove redundant :group args.
(print-region-function): Declare MS-Windows specific function.
* test/lisp/lpr-tests.el: New file.
2021-03-30 23:11:24 +02:00
Stefan Kangas
4f3c9df047 Use lexical-binding in echistory.el
* lisp/echistory.el: Use lexical-binding.
(electric-history-map): Quote function symbols as such.
(Electric-history-undefined): Use command substitutions.
2021-03-30 19:02:20 +02:00
Stefan Kangas
49cbf2392b Delete empty "History" sections
* lisp/bs.el:
* lisp/calendar/timeclock.el:
* lisp/cedet/semantic/bovine/grammar.el:
* lisp/cedet/semantic/grammar.el:
* lisp/cedet/semantic/wisent.el:
* lisp/cedet/semantic/wisent/comp.el:
* lisp/cedet/semantic/wisent/java-tags.el:
* lisp/cedet/semantic/wisent/wisent.el:
* lisp/erc/erc.el:
* lisp/net/newst-treeview.el:
* lisp/recentf.el:
* lisp/ruler-mode.el:
* lisp/textmodes/remember.el:
* lisp/thumbs.el:
* lisp/tree-widget.el:
* lisp/vc/vc-hg.el: Delete empty "History" sections.

* lisp/cedet/semantic/grammar.el
(semantic-grammar-header-template): Don't add "History" section to
generated file.
2021-03-30 15:50:26 +02:00
Stefan Kangas
4ed75f9fcb Use lexical-binding in follow.el
* lisp/follow.el: Use lexical-binding.
(follow-mode-map, follow-debug-message): Quote function symbols as
such.
(follow-pos-visible-in-window-p): Remove unused variable 'last'.
(follow-move-to-window-line): Remove unused variable 'middle-window'.
2021-03-30 15:16:28 +02:00
Mattias Engdegard
c2e90d1119 lisp/progmodes/verilog-mode.el internal code cleanup.
* lisp/progmodes/verilog-mode.el (verilog-at-close-struct-p):
Internal code cleanup.
2021-03-30 07:54:41 -04:00
Arash Esbati
4bfcfdb416 * lisp/textmodes/reftex-auc.el: Improve the external function declarations
(LaTeX-add-bibitems): Move declaration closer to the others.
Fix those declarations to refer to the right file.
2021-03-29 22:40:26 -04:00
Dmitry Gutov
24c92b35b5 Provide information to show icons with Elisp completions
* lisp/progmodes/elisp-mode.el (elisp--company-kind): New function.
(elisp-completion-at-point): Use it.  And a couple of anonymous
:company-kind functions too.
2021-03-30 03:42:11 +03:00
Stefan Monnier
5a5cccb6ac lisp/progmodes/verilog-mode.el: Prepare for lexical-binding.
* lisp/progmodes/verilog-mode.el: Activate lexical-binding.
Insert newlines to avoid some situations where arguments were easy
to misunderstand.
(verilog-set-compile-command): Strength-reduce `eval` to `symbol-value`.
(verilog-error-regexp-add-emacs): Replace `mapcar` => `mapc` since
the result is not used.
(verilog-surelint-off): Remove always-nil var `dir`.
(verilog-do-indent): Minor simplification of the code.
(verilog-pred): Delete var.  It was always nil.
(verilog-flag): Delete var; pass the corresponding data via
explicit arguments instead.
(verilog-keyword-completion): Use `dolist`.
(verilog-completion-response): Rename to `verilog--complete-with-action`.
Change calling convention to match that of `complete-with-action`.
Use `complete-with-action` instead when available.
Adjust all callers.
(verilog-completion, verilog-comp-defun): Change arg names so they
don't collide with dynamically scoped vars, and let-bind `verilog-str`
explicitly instead.  Use `with-current-buffer`.
(verilog-batch-execute-func): Use `with-current-buffer`.
(verilog-complete-word): Don't convert the completion list into
a completion alist, since lists work just as well.
(verilog-showscopes): Use `with-current-buffer`.
(verilog-symbol-detick, verilog-symbol-detick-text)
(verilog-signals-matching-enum): Strength-reduce `eval` to `symbol-value`.
(verilog--insert-indent): Rename from `verilog--insert-indent`.
Add `indent-pt` argument.
(verilog-insert-indent): New macro wrapper to provide the old
calling convention.
(verilog-auto-assign-modport, verilog-auto-inout-modport):
Remove always-nil var `direction-re`.
(verilog--auto-inst-first): Rename from `verilog-auto-inst-first`.
Add `indent-pt` argument.
(verilog-auto-inst-port): Adjust call accordingly.
2021-03-29 18:35:01 -04:00
Stefan Monnier
66d04c0438 * lisp/progmodes/verilog-mode.el: Use #' where appropriate. 2021-03-29 18:07:25 -04:00
Wilson Snyder
b4831acebd lisp/progmodes/verilog-mode.el: Fix indentation of enum.
* lisp/progmodes/verilog-mode.el (verilog-at-close-struct-p): Fix
indentation of enum with multiple objects. Reported by punzik. (#1716).
2021-03-29 18:03:33 -04:00
Stefan Monnier
5c23621db5 * lisp/completion.el: Activate lexical-binding
Remove redundant `:group` arguments.

(list-all-completions-1): Merge into `list-all-completions` and
then delete.
(list-all-completions-by-hash-bucket-1): Use `push`.  Merge into
`list-all-completions-by-hash-bucket` and then delete.
(completions-list-return-value): Delete variable, not used any more.
2021-03-29 16:46:41 -04:00
Stefan Monnier
990720337b * lisp/woman.el: Activate lexical-binding. Require cl-lib
(woman-mode, woman2-roff-buffer): Use `cl-letf`.
(woman-request): Move declaration before first use.
(woman0-macro): Rename arg to not shadow the dynamically scoped var.
(woman-set-arg): Strength-reduce `eval` to `symbol-value`.
2021-03-29 16:34:19 -04:00
Juri Linkov
b6552b1d7c * lisp/progmodes/project.el (project-regexp-history-variable): New variable.
(project--read-regexp): Use it as HISTORY arg of 'read-regexp' with
'grep-regexp-history' default (bug#47012).
2021-03-29 22:34:51 +03:00
Stefan Monnier
fcc7373b28 * lisp/allout*.el: Use lexical-binding
* lisp/allout.el: Activate lexical-binding.
(allout-setup-menubar): Delete "complex no-op" function.
(allout-mode): Delete call to it.
(allout-hotspot-key-handler): Delete XEmacs-only code.
(allout-copy-exposed-to-buffer): Remove always-nil var `start-list`.

* lisp/allout-widgets.el: Activate lexical-binding.
(allout-item-icon-keymap): Use `ignore`.
(allout-widgets-exposure-change-processor): Use `cl-callf` instead of
relying on dynamic binding to apply some code to two different variables.
2021-03-29 15:29:26 -04:00
Alan Mackenzie
1440dbed54 Fix an infinite loop in C++ Mode redisplay. This was bug #47191.
* lisp/progmodes/cc-defs.el (c-forward-syntactic-ws, c-backward-syntactic-ws):
When point is on the wrong side of a supplied search limit, leave point
unmoved rather than setting it to that limit.

* lisp/progmodes/cc-engine.el (c-forward-name): After scanning a template
argument list (which is not itself subject to a search limit) recalculate the
search limit starting from the end point, since these argument lists can
legitimately be long.  At each of the scanning loops, check point hasn't gone
past the limit.
2021-03-29 15:35:50 +00:00
Glenn Morris
309635af69 Merge from origin/emacs-27
8a92030f6a (origin/emacs-27) Fix hang in autorevert-tests.el

# Conflicts:
#	test/lisp/autorevert-tests.el
2021-03-29 08:31:15 -07:00
Glenn Morris
c0bf73ee39 ; Merge from origin/emacs-27
The following commits were skipped:

91eea74229 Revert "Clarify dired-do-shell-command doc string"
b23e22e0de Clarify dired-do-shell-command doc string
2021-03-29 08:26:25 -07:00
Glenn Morris
7ebd79f3c6 Merge from origin/emacs-27
bcc4cc3362 Doc fixes for 'face-foreground' and 'face-background'.
bf6442fafd ; * admin/make-tarball.txt: Minor addition to the Web page...
38b127d32e * admin/admin.el (set-version): Handle malformed NEWS markup.
0d7e2a993e admin.el fix for bug#47394
fdec444758 ; * etc/NEWS: Fix typo.
1e6ca2765f ; * admin/make-tarball.txt: Another minor addition.

# Conflicts:
#	etc/NEWS
2021-03-29 08:26:25 -07:00
Glenn Morris
31153cb509 ; Merge from origin/emacs-27
The following commit was skipped:

3e9047115e Bump Emacs version past 27.2
2021-03-29 08:26:25 -07:00
Michael Albinus
5805697d3b ; Fix schedule in admin/notes/emba 2021-03-29 16:51:50 +02:00
Michael Albinus
f113d0c4fd Some Tramp doc clarifications
* doc/misc/tramp.texi (Remote shell setup): Explain meaning of
`tramp-sh-extra-args' for bash.
(Frequently Asked Questions): New item about unloading / reloading Tramp.
2021-03-29 13:52:01 +02:00
Eli Zaretskii
a1e454d6df Protect add-variable-watcher from incorrect usage
* src/data.c (Fadd_variable_watcher): Avoid crashes if SYMBOL
isn't.  (Bug#47462)
2021-03-29 13:39:43 +03:00
Michael Albinus
afc214f139 ; Fix last change 2021-03-29 12:12:33 +02:00
Michael Albinus
e1177f0258 Optimize test jobs for emba
* test/infra/gitlab-ci.yml (.test-template): Do not run fast and
normal test jobs when scheduled.
2021-03-29 11:33:36 +02:00
Stefan Kangas
67ef8c36bd Doc fixes in follow.el
* lisp/follow.el:
(follow-pos-visible-in-window-p, follow-adjust-window)
(follow-prev-buffer, follow-internal-force-redisplay):
Minor doc fixes.
2021-03-29 11:31:05 +02:00
Michael Albinus
0057caa53c * test/infra/gitlab-ci.yml (test-filenotify-gio): Use *.log for make_params. 2021-03-29 10:15:45 +02:00
Michael Albinus
8a92030f6a Fix hang in autorevert-tests.el
* test/lisp/autorevert-tests.el (auto-revert--wait-for-revert):
Apply more robust check, whether file notification is used.
2021-03-28 21:06:24 +02:00
Lars Ingebrigtsen
ee3a4e3d1b Fix a dbus.el byte compilation warning
* lisp/net/dbus.el (dbus-register-monitor): Silence a
byte-compilation warning on systems without dbus.
2021-03-28 19:22:15 +02:00
Lars Ingebrigtsen
216c65b135 Use a 64KB page size for pdump
* src/pdumper.c (dump_get_page_size): Use a 64KB page size on all
architectures, as this many vary between systems (bug#47125).
2021-03-28 19:17:34 +02:00
Michael Albinus
81b56434a5 * admin/notes/emba: Explain job types and artifacts. 2021-03-28 19:16:12 +02:00
Lars Ingebrigtsen
91eea74229 Revert "Clarify dired-do-shell-command doc string"
This reverts commit cf607c262e.

The doc string already explains this.

(cherry picked from commit 01cf0eb757)
2021-03-28 18:22:15 +03:00
Lars Ingebrigtsen
01cf0eb757 Revert "Clarify dired-do-shell-command doc string"
This reverts commit cf607c262e.

The doc string already explains this.
2021-03-28 17:06:01 +02:00
Lars Ingebrigtsen
b23e22e0de Clarify dired-do-shell-command doc string
* lisp/dired-aux.el (dired-do-shell-command): Mention what happens
to FILE-LIST (bug#47432).

(cherry picked from commit cf607c262e)
2021-03-28 17:22:04 +03:00
Lars Ingebrigtsen
cf607c262e Clarify dired-do-shell-command doc string
* lisp/dired-aux.el (dired-do-shell-command): Mention what happens
to FILE-LIST (bug#47432).
2021-03-28 16:01:53 +02:00
Eli Zaretskii
bcc4cc3362 Doc fixes for 'face-foreground' and 'face-background'.
* lisp/faces.el (face-foreground, face-background): Clarify how a
face specified in INHERIT arg is used.  (Bug#47437)
2021-03-28 16:26:21 +03:00
pillule
8b754ca318 compilation-goto-locus does not handle right display-buffer
* lisp/progmodes/compile.el (compilation-goto-locus): Pop to the
source buffer if the match buffer is the selected window (bug#47414).

Copyright-paperwork-exempt: yes
2021-03-28 15:19:47 +02:00