]> git.eshelyaron.com Git - emacs.git/log
emacs.git
3 years agoGNUmakefile: Fix last change.
Eli Zaretskii [Thu, 1 Apr 2021 12:59:28 +0000 (15:59 +0300)]
GNUmakefile: Fix last change.

3 years agoFix 'extraclean' targets
Eli Zaretskii [Thu, 1 Apr 2021 12:57:55 +0000 (15:57 +0300)]
Fix 'extraclean' targets

* GNUmakefile: Add description of 'extraclean'.

* Makefile.in (extraclean_dirs): Add lwlib.

* lwlib/Makefile.in (clean mostlyclean extraclean): Add
'extraclean' target.

* lisp/Makefile.in (extraclean): Remove ${loaddefs}, not just
${LOADDEFS}.  Delete all backup and autosave files.

3 years agoUse lexical-binding in epg-config.el and add tests
Stefan Kangas [Thu, 1 Apr 2021 09:07:06 +0000 (11:07 +0200)]
Use lexical-binding in epg-config.el and add tests

* lisp/epg-config.el: Use lexical-binding.
(epg-find-configuration): Improve error message.
* test/lisp/epg-config-tests.el: New file.

3 years agoUse lexical-binding in isearchb.el
Stefan Kangas [Thu, 1 Apr 2021 08:34:39 +0000 (10:34 +0200)]
Use lexical-binding in isearchb.el

* lisp/isearchb.el: Use lexical-binding.  Remove redundant :group
args.

3 years agoRemove redundant #' before lambda in Gnus
Stefan Kangas [Thu, 1 Apr 2021 08:23:21 +0000 (10:23 +0200)]
Remove redundant #' before lambda in Gnus

* lisp/gnus/gnus-group.el (gnus-group-list-cached)
(gnus-group-list-dormant, gnus-group-list-ticked):
* lisp/gnus/gnus-registry.el (gnus-registry-remove-extra-data):
* lisp/gnus/gnus-score.el (gnus-score-edit-file-at-point):
* lisp/gnus/gnus-sum.el (gnus-fetch-headers):
* lisp/gnus/mm-partial.el (mm-inline-partial):
* lisp/gnus/nnselect.el (nnselect-uncompress-artlist)
(numbers-by-group, nnselect-request-expire-articles)
(nnselect-request-update-info, nnselect-request-thread):
* lisp/gnus/nnvirtual.el (nnvirtual-request-expire-articles):
* lisp/gnus/spam-stat.el (spam-stat-score-buffer): Remove redundant #'
before lambda.

3 years agoUse lexical-binding in avoid.el
Stefan Kangas [Wed, 31 Mar 2021 23:26:52 +0000 (01:26 +0200)]
Use lexical-binding in avoid.el

* lisp/avoid.el: Use lexical-binding.  Remove redundant :group args.
(mouse-avoidance-fancy): Quote function symbol as such.

3 years agoUse emacs-version instead of obsolete version variables
Stefan Kangas [Wed, 31 Mar 2021 16:17:15 +0000 (18:17 +0200)]
Use emacs-version instead of obsolete version variables

* lisp/calendar/icalendar.el (icalendar-version):
* lisp/dframe.el (dframe-version):
* lisp/emacs-lisp/checkdoc.el (checkdoc-version):
* lisp/emulation/edt.el (edt-version):
* lisp/international/mule.el (mule-version):
* lisp/linum.el (linum-version):
* lisp/play/bubbles.el (bubbles-version):
* lisp/textmodes/remember.el (remember-version):
* lisp/url/url-vars.el (url-version):
* lisp/woman.el (woman-version): Use emacs-version instead of obsolete
version variables.

3 years ago* lisp/strokes.el: Use lexical-binding. Remove redundant `:group` args
Stefan Monnier [Wed, 31 Mar 2021 22:39:52 +0000 (18:39 -0400)]
* lisp/strokes.el: Use lexical-binding.  Remove redundant `:group` args

(strokes-char-table): Move initialization into declaration.

3 years ago* lisp/forms.el: Use lexical-binding. Remove redundant `:group` args
Stefan Monnier [Wed, 31 Mar 2021 22:27:14 +0000 (18:27 -0400)]
* lisp/forms.el: Use lexical-binding.  Remove redundant `:group` args

(forms--process-format-list, forms--debug): Strength-reduce `eval`
to `symbol-value`.

3 years ago* lisp/progmodes/dcl-mode.el: Use lexical-binding
Stefan Monnier [Wed, 31 Mar 2021 22:15:28 +0000 (18:15 -0400)]
* lisp/progmodes/dcl-mode.el: Use lexical-binding

(dcl-guess-option-value, dcl-save-local-variable)
(dcl-save-nondefault-options): Strength-reduce `eval` to `symbol-value`.

3 years ago; Fix last change
Michael Albinus [Wed, 31 Mar 2021 19:12:09 +0000 (21:12 +0200)]
; Fix last change

3 years ago* lisp/net/tramp-sh.el (tramp-sh-gio-monitor-process-filter):
Michael Albinus [Wed, 31 Mar 2021 19:09:55 +0000 (21:09 +0200)]
* lisp/net/tramp-sh.el (tramp-sh-gio-monitor-process-filter):

Make assumption for emba.

3 years agoUse lexical-binding in progmodes/inf-lisp.el
Stefan Kangas [Wed, 31 Mar 2021 10:59:11 +0000 (12:59 +0200)]
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.

3 years ago; * lisp/net/tramp-sh.el (tramp-sh-gio-monitor-process-filter):
Michael Albinus [Wed, 31 Mar 2021 09:37:35 +0000 (11:37 +0200)]
; * lisp/net/tramp-sh.el (tramp-sh-gio-monitor-process-filter):

; Instrument for emba.

3 years agoUse lexical-binding in scroll-all.el
Stefan Kangas [Wed, 31 Mar 2021 06:25:24 +0000 (08:25 +0200)]
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.

3 years ago* lisp/dynamic-setting.el: Use lexical-binding.
Stefan Kangas [Wed, 31 Mar 2021 06:05:58 +0000 (08:05 +0200)]
* lisp/dynamic-setting.el: Use lexical-binding.

3 years agoFix incorrect regular expression for more general text replacements.
Luke Lee [Wed, 31 Mar 2021 03:22:47 +0000 (11:22 +0800)]
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.

3 years agoUse lexical-binding in chistory.el
Stefan Kangas [Tue, 30 Mar 2021 23:42:16 +0000 (01:42 +0200)]
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.

3 years ago* lisp/ebuff-menu.el: Use lexical-binding.
Stefan Kangas [Tue, 30 Mar 2021 23:23:29 +0000 (01:23 +0200)]
* lisp/ebuff-menu.el: Use lexical-binding.

3 years agoUse lexical-binding in double.el
Stefan Kangas [Tue, 30 Mar 2021 23:11:21 +0000 (01:11 +0200)]
Use lexical-binding in double.el

* lisp/double.el: Use lexical-binding.  Remove redundant :group
args.

3 years agoUse lexical-binding in dirtrack.el
Stefan Kangas [Tue, 30 Mar 2021 22:58:18 +0000 (00:58 +0200)]
Use lexical-binding in dirtrack.el

* lisp/dirtrack.el: Use lexical-binding.  Remove redundant group
args.

3 years ago* lisp/progmodes/cwarn.el: Use lexical-binding.
Stefan Kangas [Tue, 30 Mar 2021 22:07:03 +0000 (00:07 +0200)]
* lisp/progmodes/cwarn.el: Use lexical-binding.

3 years agoRemove redundant #' before lambda in cedet
Stefan Kangas [Tue, 30 Mar 2021 21:44:48 +0000 (23:44 +0200)]
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.

3 years agoDelete Emacs 19 compat code in foldout.el
Stefan Kangas [Tue, 30 Mar 2021 21:26:42 +0000 (23:26 +0200)]
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.

3 years agoUse lexical-binding in lpr.el and add rudimentary tests
Stefan Kangas [Tue, 30 Mar 2021 21:09:14 +0000 (23:09 +0200)]
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.

3 years agoUse lexical-binding in echistory.el
Stefan Kangas [Tue, 30 Mar 2021 16:56:02 +0000 (18:56 +0200)]
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.

3 years agoDelete empty "History" sections
Stefan Kangas [Tue, 30 Mar 2021 13:46:57 +0000 (15:46 +0200)]
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.

3 years agoUse lexical-binding in follow.el
Stefan Kangas [Tue, 30 Mar 2021 13:16:28 +0000 (15:16 +0200)]
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'.

3 years agolisp/progmodes/verilog-mode.el internal code cleanup.
Mattias Engdegard [Tue, 30 Mar 2021 11:54:41 +0000 (07:54 -0400)]
lisp/progmodes/verilog-mode.el internal code cleanup.

* lisp/progmodes/verilog-mode.el (verilog-at-close-struct-p):
Internal code cleanup.

3 years ago* lisp/textmodes/reftex-auc.el: Improve the external function declarations
Arash Esbati [Tue, 30 Mar 2021 02:40:26 +0000 (22:40 -0400)]
* 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.

3 years agoProvide information to show icons with Elisp completions
Dmitry Gutov [Tue, 30 Mar 2021 00:42:11 +0000 (03:42 +0300)]
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.

3 years agolisp/progmodes/verilog-mode.el: Prepare for lexical-binding.
Stefan Monnier [Mon, 29 Mar 2021 22:35:01 +0000 (18:35 -0400)]
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.

3 years ago* lisp/progmodes/verilog-mode.el: Use #' where appropriate.
Stefan Monnier [Mon, 29 Mar 2021 22:07:25 +0000 (18:07 -0400)]
* lisp/progmodes/verilog-mode.el: Use #' where appropriate.

3 years agolisp/progmodes/verilog-mode.el: Fix indentation of enum.
Wilson Snyder [Mon, 29 Mar 2021 22:03:33 +0000 (18:03 -0400)]
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).

3 years ago* lisp/completion.el: Activate lexical-binding
Stefan Monnier [Mon, 29 Mar 2021 20:46:41 +0000 (16:46 -0400)]
* 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.

3 years ago* lisp/woman.el: Activate lexical-binding. Require `cl-lib`
Stefan Monnier [Mon, 29 Mar 2021 20:34:19 +0000 (16:34 -0400)]
* 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`.

3 years ago* lisp/progmodes/project.el (project-regexp-history-variable): New variable.
Juri Linkov [Mon, 29 Mar 2021 19:34:51 +0000 (22:34 +0300)]
* 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).

3 years ago* lisp/allout*.el: Use lexical-binding
Stefan Monnier [Mon, 29 Mar 2021 19:29:26 +0000 (15:29 -0400)]
* 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.

3 years agoFix an infinite loop in C++ Mode redisplay. This was bug #47191.
Alan Mackenzie [Mon, 29 Mar 2021 15:32:40 +0000 (15:32 +0000)]
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.

3 years agoMerge from origin/emacs-27
Glenn Morris [Mon, 29 Mar 2021 15:31:15 +0000 (08:31 -0700)]
Merge from origin/emacs-27

8a92030f6a (origin/emacs-27) Fix hang in autorevert-tests.el

# Conflicts:
# test/lisp/autorevert-tests.el

3 years ago; Merge from origin/emacs-27
Glenn Morris [Mon, 29 Mar 2021 15:26:25 +0000 (08:26 -0700)]
; 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

3 years agoMerge from origin/emacs-27
Glenn Morris [Mon, 29 Mar 2021 15:26:25 +0000 (08:26 -0700)]
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

3 years ago; Merge from origin/emacs-27
Glenn Morris [Mon, 29 Mar 2021 15:26:25 +0000 (08:26 -0700)]
; Merge from origin/emacs-27

The following commit was skipped:

3e9047115e Bump Emacs version past 27.2

3 years ago; Fix schedule in admin/notes/emba
Michael Albinus [Mon, 29 Mar 2021 14:51:50 +0000 (16:51 +0200)]
; Fix schedule in admin/notes/emba

3 years agoSome Tramp doc clarifications
Michael Albinus [Mon, 29 Mar 2021 11:52:01 +0000 (13:52 +0200)]
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.

3 years agoProtect add-variable-watcher from incorrect usage
Eli Zaretskii [Mon, 29 Mar 2021 10:39:43 +0000 (13:39 +0300)]
Protect add-variable-watcher from incorrect usage

* src/data.c (Fadd_variable_watcher): Avoid crashes if SYMBOL
isn't.  (Bug#47462)

3 years ago; Fix last change
Michael Albinus [Mon, 29 Mar 2021 10:12:33 +0000 (12:12 +0200)]
; Fix last change

3 years agoOptimize test jobs for emba
Michael Albinus [Mon, 29 Mar 2021 09:33:36 +0000 (11:33 +0200)]
Optimize test jobs for emba

* test/infra/gitlab-ci.yml (.test-template): Do not run fast and
normal test jobs when scheduled.

3 years agoDoc fixes in follow.el
Stefan Kangas [Mon, 29 Mar 2021 09:30:53 +0000 (11:30 +0200)]
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.

3 years ago* test/infra/gitlab-ci.yml (test-filenotify-gio): Use *.log for make_params.
Michael Albinus [Mon, 29 Mar 2021 08:15:45 +0000 (10:15 +0200)]
* test/infra/gitlab-ci.yml (test-filenotify-gio): Use *.log for make_params.

3 years agoFix hang in autorevert-tests.el
Michael Albinus [Sun, 28 Mar 2021 19:06:24 +0000 (21:06 +0200)]
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.

3 years agoFix a dbus.el byte compilation warning
Lars Ingebrigtsen [Sun, 28 Mar 2021 17:22:15 +0000 (19:22 +0200)]
Fix a dbus.el byte compilation warning

* lisp/net/dbus.el (dbus-register-monitor): Silence a
byte-compilation warning on systems without dbus.

3 years agoUse a 64KB page size for pdump
Lars Ingebrigtsen [Sun, 28 Mar 2021 17:13:00 +0000 (19:13 +0200)]
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).

3 years ago* admin/notes/emba: Explain job types and artifacts.
Michael Albinus [Sun, 28 Mar 2021 17:16:12 +0000 (19:16 +0200)]
* admin/notes/emba: Explain job types and artifacts.

3 years agoRevert "Clarify dired-do-shell-command doc string"
Lars Ingebrigtsen [Sun, 28 Mar 2021 15:06:01 +0000 (17:06 +0200)]
Revert "Clarify dired-do-shell-command doc string"

This reverts commit cf607c262e15c873961fdfcced254e6f8e82f8d7.

The doc string already explains this.

(cherry picked from commit 01cf0eb75786834b7a0ee5be34be53f6e8e14c11)

3 years agoRevert "Clarify dired-do-shell-command doc string"
Lars Ingebrigtsen [Sun, 28 Mar 2021 15:06:01 +0000 (17:06 +0200)]
Revert "Clarify dired-do-shell-command doc string"

This reverts commit cf607c262e15c873961fdfcced254e6f8e82f8d7.

The doc string already explains this.

3 years agoClarify dired-do-shell-command doc string
Lars Ingebrigtsen [Sun, 28 Mar 2021 14:01:53 +0000 (16:01 +0200)]
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 cf607c262e15c873961fdfcced254e6f8e82f8d7)

3 years agoClarify dired-do-shell-command doc string
Lars Ingebrigtsen [Sun, 28 Mar 2021 14:01:53 +0000 (16:01 +0200)]
Clarify dired-do-shell-command doc string

* lisp/dired-aux.el (dired-do-shell-command): Mention what happens
to FILE-LIST (bug#47432).

3 years agoDoc fixes for 'face-foreground' and 'face-background'.
Eli Zaretskii [Sun, 28 Mar 2021 13:26:21 +0000 (16:26 +0300)]
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)

3 years agocompilation-goto-locus does not handle right display-buffer
pillule [Sun, 28 Mar 2021 13:18:26 +0000 (15:18 +0200)]
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

3 years agoClarify the doc string of plist-memeber and plist-put
Lars Ingebrigtsen [Sun, 28 Mar 2021 12:58:43 +0000 (14:58 +0200)]
Clarify the doc string of plist-memeber and plist-put

* src/fns.c (Fplist_member):
(Fplist_put): Clarify what comparison function is used for PROP
(bug#47426) and don't claim that PROP has to be a symbol.

3 years agoAvoid errors in pulse.el for some face customizations
Eli Zaretskii [Sun, 28 Mar 2021 12:29:41 +0000 (15:29 +0300)]
Avoid errors in pulse.el for some face customizations

* lisp/cedet/pulse.el (pulse-momentary-highlight-overlay): Make
sure 'face-background' always returns a color name.  Suggested by
Ingo Lohmar <ingo.lohmar@posteo.net> in bug#47437.

3 years agoMake artifacts working on emba (hopefully)
Michael Albinus [Sun, 28 Mar 2021 08:08:00 +0000 (10:08 +0200)]
Make artifacts working on emba (hopefully)

* test/infra/gitlab-ci.yml (.job-template): Use proper docker name.
(.test-template): Adapt artifacts path.

3 years ago; Adapt recent change in test/infra/gitlab-ci.yml
Michael Albinus [Sat, 27 Mar 2021 20:27:35 +0000 (21:27 +0100)]
; Adapt recent change in test/infra/gitlab-ci.yml

3 years agoDemote read-extended-command-predicate errors
Basil L. Contovounesios [Sat, 27 Mar 2021 19:25:38 +0000 (19:25 +0000)]
Demote read-extended-command-predicate errors

For discussion, see the following thread:
https://lists.gnu.org/r/emacs-devel/2021-03/msg00682.html

* lisp/simple.el (read-extended-command): Demote errors when calling
read-extended-command-predicate so M-x completion doesn't break.

3 years ago; Adapt recent change in test/infra/gitlab-ci.yml
Michael Albinus [Sat, 27 Mar 2021 19:19:27 +0000 (20:19 +0100)]
; Adapt recent change in test/infra/gitlab-ci.yml

3 years ago; Adapt recent change in test/infra/gitlab-ci.yml
Michael Albinus [Sat, 27 Mar 2021 19:14:22 +0000 (20:14 +0100)]
; Adapt recent change in test/infra/gitlab-ci.yml

3 years ago* lisp/wdired.el (wdired--self-insert): Fix thinko
Stefan Monnier [Sat, 27 Mar 2021 18:31:40 +0000 (14:31 -0400)]
* lisp/wdired.el (wdired--self-insert): Fix thinko

3 years ago; Adapt recent change in test/infra/gitlab-ci.yml
Michael Albinus [Sat, 27 Mar 2021 16:47:43 +0000 (17:47 +0100)]
; Adapt recent change in test/infra/gitlab-ci.yml

3 years ago; Adapt recent change in test/infra/gitlab-ci.yml
Michael Albinus [Sat, 27 Mar 2021 15:49:09 +0000 (16:49 +0100)]
; Adapt recent change in test/infra/gitlab-ci.yml

3 years ago* lisp/wdired.el: Fix minor regressions and simplify a bit
Stefan Monnier [Sat, 27 Mar 2021 14:54:10 +0000 (10:54 -0400)]
* lisp/wdired.el: Fix minor regressions and simplify a bit

Use `wdired--current-column` more consistently to avoid mayhem when it
doesn't return the same result as `current-column`.

(wdired-get-filename): Fix the unprocessed case.
(wdired-finish-edit): Don't force processing all the lines.
(wdired--col-perm): Remove, redundant with `wdired--perm-beg`.
(wdired-change-to-wdired-mode): Don't error in empty directory.
(wdired--set-permission-bounds): Set `wdired--perm-beg` when we can't
find permissions.  Move `wdired--perm-beg` 1 char further (like
`wdired--col-perm`).  Use `wdired--current-column`.
(wdired--point-at-perms-p): Fix when `wdired--perm-beg` is nil.
(wdired--self-insert): Lookup the keymap to know command to call.
(wdired--before-change-fn): Just use `point` instead of `beg`.
Use `with-silent-modifications` here rather than in each of the
`wdired--preprocess-*` functions.
(wdired--preprocess-files): Presume we're at BOL and within
`with-silent-modifications`.  Fix application of `read-only`.
(wdired-abort-changes): Don't use `with-silent-modifications` since
we're really modifying the buffer.
(wdired--preprocess-symlinks): Presume we're at BOL and within
`with-silent-modifications`.
(wdired--preprocess-perms): Presume we're at BOL and within
`with-silent-modifications`.
(wdired-set-bit): Add `char` argument.  Use `wdired--current-column`.
Copy previous text properties rather than duplicating the code of
`wdired--preprocess-perms`.
(wdired-toggle-bit): Delegate to `wdired-set-bit`.

3 years ago; Adapt recent change in test/infra/gitlab-ci.yml
Michael Albinus [Sat, 27 Mar 2021 13:57:32 +0000 (14:57 +0100)]
; Adapt recent change in test/infra/gitlab-ci.yml

3 years ago* lisp/wdired.el: Apply text properties lazily
Arthur Miller [Sat, 27 Mar 2021 07:29:44 +0000 (08:29 +0100)]
* lisp/wdired.el: Apply text properties lazily

Entering wdired was taking time proportional to the size of the directory,
making it inconvenient to quickly enter wdired just to rename one or two
files in a large directory.

(wdired-mode-map): Rebind `self-insert-command`.
(wdired--perm-beg, wdired--perm-end): New vars.
(wdired--col-perm, wdired--old-content, wdired--old-point)
(wdired--old-marks): Rename vars, using "--" rather than "-".
All users updated.
(wdired--before-change-fn): New function.
(wdired-change-to-wdired-mode): Use it `before-change-functions`
instead of eagerly putting the various text properties here.
(wdired--set-permission-bounds, wdired--current-column)
(wdired--point-at-perms-p, wdired--line-preprocessed-p):
New auxiliary functions.
(wdired--self-insert): New command.
(wdired--preprocess-files, wdired--preprocess-symlinks)
(wdired--preprocess-perms): Add "--" to the name.  Make it operate only
on the current line.  Use `with-silent-modifications`.
(wdired-abort-changes): Use `with-silent-modifications`.

3 years ago; Adapt recent change in test/infra/gitlab-ci.yml
Michael Albinus [Sat, 27 Mar 2021 11:49:00 +0000 (12:49 +0100)]
; Adapt recent change in test/infra/gitlab-ci.yml

3 years agoKeep *.log files on emba
Michael Albinus [Sat, 27 Mar 2021 10:43:15 +0000 (11:43 +0100)]
Keep *.log files on emba

* test/infra/gitlab-ci.yml (.test-template): New template.
(test-fast-inotify, test-lisp-inotify, test-lisp-net-inotify)
(test-filenotify-gio, test-gnustep, test-all-inotify): Use it.

3 years agoFix lisp/files-tests on MS-Windows
Eli Zaretskii [Sat, 27 Mar 2021 10:24:58 +0000 (13:24 +0300)]
Fix lisp/files-tests on MS-Windows

* test/lisp/files-tests.el (files-colon-path)
(files-tests-bug-21454): Adapt to MS-DOS/Windows, where
parse-colon-path needs and absolute file name with a drive letter.
(files-tests-file-name-non-special-get-file-buffer): Forcefully
delete the file's buffer if it happens to exist.

3 years agoFile unlock errors now issue warnings (Bug#46397)
Matt Armstrong [Fri, 19 Feb 2021 23:39:15 +0000 (15:39 -0800)]
File unlock errors now issue warnings (Bug#46397)

The primary idea is to allow `kill-buffer' and `kill-emacs' to
complete even if Emacs has trouble unlocking the buffer's file.

* lisp/userlock.el (userlock--handle-unlock-error): New function, call
`display-error'.
* src/filelock.c (unlock_file_body): New function, do what
'unlock_file' used to.
(unlock_file_handle_error): New function, call
`userlock--handle-unlock-error' with the captured error.
(unlock_file): Handle `file-error' conditions by calling the handler
defined above.
* test/src/filelock-tests.el (filelock-tests-kill-buffer-spoiled):
(filelock-tests-unlock-spoiled): Modify to test new behavior.

3 years agoAdd test coverage for src/filelock.c (Bug#46397)
Matt Armstrong [Mon, 15 Feb 2021 20:59:08 +0000 (12:59 -0800)]
Add test coverage for src/filelock.c (Bug#46397)

* test/src/filelock-tests.el: New file.

3 years agoFix encoding by ISO-2022-JP
Kenichi Handa [Sat, 27 Mar 2021 05:38:56 +0000 (14:38 +0900)]
Fix encoding by ISO-2022-JP

* src/coding.c (encode_coding): Reset the CODING_MODE_LAST_BLOCK
flag for all iterations but the last one.  (Bug#46933)

3 years agoImprove remote file notifications
Michael Albinus [Fri, 26 Mar 2021 18:30:05 +0000 (19:30 +0100)]
Improve remote file notifications

* lisp/net/tramp-sh.el (tramp-get-remote-gio-file-monitor): Remove it.
(tramp-sh-handle-file-notify-add-watch): Do not call it.
(tramp-sh-gio-monitor-process-filter): Read monitor name.

* test/lisp/filenotify-tests.el (file-notify--test-read-event)
(file-notify--test-timeout): Change timings.
(file-notify--test-monitor): Read remote monitor name more reliably.
(file-notify-test02-rm-watch): Retrieve remote monitor name in time.
(file-notify--test-event-actions): New defun.
(file-notify--test-with-actions-explainer): Use it.
(file-notify--test-with-actions-check): Use it.  Dump traces in
case of debug.
(file-notify--test-with-actions): Don't stop while debugging.
(file-notify-test03-events, file-notify-test04-autorevert)
(file-notify-test05-file-validity)
(file-notify-test07-many-events, file-notify-test08-backup)
(file-notify-test09-watched-file-in-watched-dir): Adapt tests.

3 years agoAddress some --without-x byte-compilation warnings
Basil L. Contovounesios [Fri, 26 Mar 2021 17:13:59 +0000 (17:13 +0000)]
Address some --without-x byte-compilation warnings

These came to light in the contexts of bug#29713 and bug#47234.

* lisp/emulation/edt-mapper.el (edt-xserver):
* lisp/emulation/edt.el (edt-xserver):
* lisp/gnus/gnus-util.el (gnus-rescale-image):
* lisp/gnus/nnimap.el (nnimap-map-port):
* lisp/term/w32-win.el:
* lisp/image.el (image--get-imagemagick-and-warn):
* lisp/frame.el (frame-notice-user-settings): Declare functions that
are known to be present at runtime in GUI builds.
(make-frame-on-display): Signal more informative error when called
interactively in a non-GUI build (bug#29713).
* lisp/international/mule-diag.el (describe-font):
* lisp/org/org-macs.el (org--string-from-props): Pacify warnings
about unknown functions in non-GUI bilds.
* lisp/mh-e/mh-mime.el (mh-small-image-p): Avoid eliminating fboundp
check in non-GUI builds, to pacify unused lexical variable warning.
* lisp/net/newst-plainview.el (newsticker--plainview-tool-bar-map):
* lisp/net/newst-treeview.el (newsticker-treeview-tool-bar-map):
Declare tool-bar-map as a special variable in non-GUI builds.

3 years ago* lisp/obsolete/tpu-extras.el: Avoid defadvice
Stefan Monnier [Fri, 26 Mar 2021 15:45:31 +0000 (11:45 -0400)]
* lisp/obsolete/tpu-extras.el: Avoid defadvice

(tpu--respect-bottom-scroll-margin): New function, extracted from
`newline`s defadvice.
(newline, newline-and-indent, do-auto-fill): Delete defadvice.
(tpu-set-scroll-margins): Use advice-add instead of
`ad-enable-advice`+`ad-activate`.
Use an explicit arg instead of `called-interactively-p`.

3 years ago* lisp/mh-e/: Take advice-remove of the newly enabled lexical-binding
Stefan Monnier [Fri, 26 Mar 2021 15:28:03 +0000 (11:28 -0400)]
* lisp/mh-e/: Take advice-remove of the newly enabled lexical-binding

* lisp/mh-e/mh-mime.el (mh-mm-inline-message):
* lisp/mh-e/mh-inc.el (mh-inc-spool-generator): Replace `(lambda...)
with a proper closure.

3 years ago; * admin/make-tarball.txt: Minor addition to the Web pages section.
Eli Zaretskii [Fri, 26 Mar 2021 06:37:56 +0000 (09:37 +0300)]
; * admin/make-tarball.txt: Minor addition to the Web pages section.

3 years ago* admin/admin.el (set-version): Handle malformed NEWS markup.
Glenn Morris [Thu, 25 Mar 2021 18:48:13 +0000 (11:48 -0700)]
* admin/admin.el (set-version): Handle malformed NEWS markup.

3 years agoadmin.el fix for bug#47394
Glenn Morris [Thu, 25 Mar 2021 18:23:17 +0000 (11:23 -0700)]
admin.el fix for bug#47394

* admin/admin.el (manual-html-fix-index-2): Handle Texinfo 6.7.

3 years ago; * etc/NEWS: Fix typo.
Michael Albinus [Thu, 25 Mar 2021 17:52:44 +0000 (18:52 +0100)]
; * etc/NEWS: Fix typo.

3 years ago; * admin/make-tarball.txt: Another minor addition.
Eli Zaretskii [Thu, 25 Mar 2021 17:22:55 +0000 (19:22 +0200)]
; * admin/make-tarball.txt: Another minor addition.

3 years agoBump Emacs version past 27.2
Eli Zaretskii [Thu, 25 Mar 2021 17:12:25 +0000 (19:12 +0200)]
Bump Emacs version past 27.2

* README:
* configure.ac:
* nt/README.W32:
* msdos/sed2v2.inp:
* etc/NEWS: Bump Emacs version to 27.2.50.

3 years agoAssert not local-variable-p after setq in let_default binding
Spencer Baugh [Wed, 24 Mar 2021 03:11:52 +0000 (23:11 -0400)]
Assert not local-variable-p after setq in let_default binding

Breaking this is a likely way to break this test, so this saves a bit
of time in debugging.

* test/src/data-tests.el (data-tests--let-buffer-local):
Add assertion to test.

3 years agoAdd a test for let-binding unwinding
Spencer Baugh [Wed, 24 Mar 2021 03:11:51 +0000 (23:11 -0400)]
Add a test for let-binding unwinding

Bindings in other buffers are not un-set when we unwind a let-binding
which set the default value.  There doesn't seem to be an existing
test which covers this, so here's one.

* test/src/data-tests.el (data-tests--let-buffer-local-no-unwind-other-buffers):
  Add test for let-binding unwinding behavior

3 years ago* lisp/htmlfontify.el: Fix misuses of `nconc`
Stefan Monnier [Thu, 25 Mar 2021 15:57:58 +0000 (11:57 -0400)]
* lisp/htmlfontify.el: Fix misuses of `nconc`

(hfy-face-to-style-i): `this` is not known to be fresh.
(hfy--size-to-int): Rename from `hfy--size-to-int` and return just the
integer without wrapping it in a list.
(hfy-flatten-style): Avoid O(n²) problems.  Use `float`.

3 years agoRemove XEmacs support in lexical-binding
Bill Wohler [Thu, 25 Mar 2021 16:09:27 +0000 (09:09 -0700)]
Remove XEmacs support in lexical-binding

* lisp/mh-e/mh-alias.el (mh-alias-insert-file): Remove reference to
  remove-specifier.

3 years agoUpdate rnc to use Open Document's Relax-NG schema to version 1.3
Mark A. Hershberger [Thu, 25 Mar 2021 15:44:46 +0000 (11:44 -0400)]
Update rnc to use Open Document's Relax-NG schema to version 1.3

* Use the LibreOffice Relax-NG files since they include a hack to
   support 1.2.
* rng source:
   https://raw.githubusercontent.com/freedesktop/libreoffice-core/master/
   schema/libreoffice/OpenDocument-schema-v1.3%2Blibreoffice.rng
* translation to rnc with trang:
   trang -I rng -O rnc OpenDocument-schema-v1.3+libreoffice.rng \
       OpenDocument-schema-v1.3+libreoffice.rnc

3 years agoMerge from origin/emacs-27
Paul Eggert [Thu, 25 Mar 2021 15:26:35 +0000 (08:26 -0700)]
Merge from origin/emacs-27

291a421c2e * admin/make-tarball.txt: Improve and expand the instructi...
0e4795fc98 Fix preeditarea reporting wrong spot.

3 years ago; Merge from origin/emacs-27
Paul Eggert [Thu, 25 Mar 2021 15:26:35 +0000 (08:26 -0700)]
; Merge from origin/emacs-27

The following commits were skipped:

6a4ed891d8 Fix replace-buffer-contents undefined behavior
720a8b17f8 Fix filenotify-tests.el for Solaris (bug#47262), do not merge

3 years agoMerge from origin/emacs-27
Paul Eggert [Thu, 25 Mar 2021 15:26:34 +0000 (08:26 -0700)]
Merge from origin/emacs-27

deef5efafb ; * ChangeLog.3: Update with the log of the last change.
bd991e3c9b Fix frame-inner-height in non-GUI builds

3 years ago* admin/make-tarball.txt: Improve and expand the instructions.
Eli Zaretskii [Thu, 25 Mar 2021 15:24:43 +0000 (17:24 +0200)]
* admin/make-tarball.txt: Improve and expand the instructions.

3 years agoFix preeditarea reporting wrong spot.
Amos Bird [Thu, 25 Mar 2021 06:50:46 +0000 (14:50 +0800)]
Fix preeditarea reporting wrong spot.

This patch adjust the x position of preeditarea with both left fringe
and left margin, which prevents IME preedit box (such as fcitx) from
placing at the wrong position in GUI emacs.
* src/xfns.c (xic_set_preeditarea): Adjust X for left margin width.
(Bug#47377)

3 years agoFix replace-buffer-contents undefined behavior
Paul Eggert [Mon, 22 Mar 2021 01:08:13 +0000 (18:08 -0700)]
Fix replace-buffer-contents undefined behavior

* src/editfns.c (Freplace_buffer_contents): Avoid undefined
behavior with competing side effects in parallel subexpressions.
Problem reported by Apple clang version 12.0.0 (clang-1200.0.32.29).