Juri Linkov
8ad221cdf4
* lisp/tab-bar.el (tab-bar--current-tab-find): New function.
...
(tab-bar-close-other-tabs, tab-bar-close-group-tabs): Use it.
(tab-bar--history-pre-change): Rename from
'tab-bar-history--pre-change' to follow naming convention.
(tab-bar-history-mode): Use renamed 'tab-bar--history-pre-change'.
2021-03-11 21:05:12 +02:00
Paul Eggert
b8bf62b60a
On MS-Windows, fflush stderr after newline
...
Problem reported by Ioannis Kappas (Bug#46388).
* src/sysdep.c (errputc) [WINDOWSNT]: Flush stderr after newline.
2021-03-11 10:43:33 -08:00
Stefan Monnier
1d4195856b
* lisp/outline.el (outline-font-lock-keywords): Simplify
...
The `laxmatch` part of `font-lock-keywords` is just a boolean.
2021-03-11 13:30:15 -05:00
Stefan Monnier
b21f6193fe
* lisp: Remove yet more always-nil variables
...
* lisp/align.el (align-region):
Remove always-nil variable `group-c`.
* lisp/ido.el (ido-make-prompt): Remove always-nil variable `prefix`.
* lisp/xdg.el (xdg-mime-collect-associations):
Remove always-nil variable `end`.
* lisp/calc/calc-yank.el (calc-edit):
Remove always-nil variable `flag`.
* lisp/calendar/todo-mode.el (todo-edit-item--header):
Remove always-nil variable `dayname`.
(todo-show-categories-table):
Remove always-nil variable `sortkey`.
* lisp/emacs-lisp/checkdoc.el (checkdoc-ispell-docstring-engine):
Remove always-nil variable `err`.
* lisp/emacs-lisp/tcover-ses.el: Remove always-nil variable `pause`.
* lisp/eshell/em-ls.el (eshell-ls-files):
Remove always-nil variable `ignore`.
* lisp/net/ange-ftp.el (ange-ftp-copy-file-internal): Remove always-nil
variable `temp2`.
* lisp/progmodes/cperl-mode.el (cperl-tags-hier-init): Remove
always-nil variables `l1`, `l2`, `l3`.
(cperl-tags-treeify): Remove always-nil variable `l1`.
* lisp/progmodes/ebrowse.el (ebrowse-tags-read-member+class-name):
Remove always-nil variable `class`.
* lisp/textmodes/artist.el (artist-draw-ellipse-with-0-height):
Remove always-nil variable `fill-info`.
* lisp/textmodes/flyspell.el (flyspell-emacs-popup):
Remove always-nil variable `show-affix-info`.
* lisp/textmodes/rst.el (rst-Ado):
Remove always-nil variable `char`.
* lisp/vc/vc.el (vc-diff-build-argument-list-internal):
Remove always-nil variable `rev2-default`.
2021-03-11 13:29:14 -05:00
Stefan Monnier
fe844299a4
* lisp/cedet: Remove always-nil variables
...
* lisp/cedet/ede/pmake.el (ede-proj-makefile-insert-variables):
Remove always-nil variable `conf-done`.
* lisp/cedet/ede/project-am.el: Use ref instead of dynbound var.
(project-rescan): Pass the ref.
(project-am-expand-subdirlist): Use it.
* lisp/cedet/semantic/idle.el (semantic-idle-work-core-handler):
Fix misuse of the wrong `errbuf `variable.
* lisp/cedet/semantic/scope.el (semantic-analyze-scoped-type-parts):
Remove always-nil variable `extmeth`.
* lisp/cedet/semantic/wisent/comp.el (wisent-context-name)
(wisent-context-bindings): Make them into functions.
(wisent-with-context): Use `dlet`.
2021-03-11 13:21:22 -05:00
Stefan Monnier
2c9594ae06
* lisp/emulation/edt.el (edt-with-position): Don't bind left
...
(edt-find-forward, edt-find-next-forward, edt-sentence-forward)
(edt-paragraph-forward): Adjust accordingly.
2021-03-11 13:15:32 -05:00
Stefan Monnier
6e77869750
* lisp/vc/pcvs-parse.el: Fix lexical-binding breakage
...
(cvs-parse-table, cvs-parse-merge, cvs-parse-status, cvs-parse-commit):
Declare vars set by `cvs-match` as dynamic.
2021-03-11 13:14:19 -05:00
Stefan Monnier
a0d8fd279c
* lisp/ses.el (ses-set-cell): Use macroexp-let2
...
(ses--\,@); Rename from `ses--metaprogramming`.
2021-03-11 13:11:40 -05:00
Stefan Monnier
5926f0c024
* lisp/obsolete/iswitchb.el: Remove dead code
...
(most-len, most-is-exact): Delete vars.
(iswitchb-output-completion): Delete function.
(iswitchb-completions): Delete dead code consequence of `most` being nil.
2021-03-11 13:10:13 -05:00
Stefan Monnier
7d0dc31833
* lisp/org/: Delete some always-nil variables
...
* lisp/org/ob-lilypond.el (org-babel-lilypond-compile-lilyfile):
Remove always-nil variable `arg-2`.
* lisp/org/ol-gnus.el (org-gnus-store-link):
Remove always-nil variables `newsgroup` and `xarchive`.
* lisp/org/ol.el (org-store-link):
Remove always-nil variable `description`.
* lisp/org/org-clock.el (org-clock-special-range):
Remove always-nil variables `m1` and `m`.
* lisp/org/org-crypt.el (org--matcher-tags-todo-only): Declare var.
* lisp/org/org-protocol.el (org-protocol-open-source):
Remove always-nil variable `result`.
* lisp/org/ox-odt.el (org-odt-format-label):
Remove always-nil variable `short-caption`.
(org-odt-link--inline-formula):
Remove always-nil variables `width` and `height`.
* lisp/org/ox.el (org-export--missing-definitions):
Remove always-nil variable `seen`.
2021-03-11 13:07:37 -05:00
Stefan Monnier
e13c30132a
* lisp/emacs-lisp/cconv.el (cconv--analyze-use): Warn never-initialized vars
...
(byte-compile-not-lexical-var-p): Remove Emacs<24 compatibility.
2021-03-11 13:01:59 -05:00
Lars Ingebrigtsen
27b8638409
Re-fix previous Info-fontify-node change
...
* lisp/info.el (Info-fontify-node): Re-fix previous fix here
(bug#34661) by fixing an off-by-one error in the `looking-back'.
2021-03-11 17:50:02 +01:00
Stefan Monnier
02a5cfce47
* lisp/mouse.el: Fix mouse-1-clock-follows-mouse = double
...
This functionality was broken by commit 3d5e31eceb ,
the problem being that we end up considering as distinct the events
`down-double-mouse-1` and `double-down-mouse-1`.
Reported by Eyal Soha <eyalsoha@gmail.com>
(mouse--click-1-maybe-follows-link): Make sure the last element of
the list passed to `event-convert-list` is indeed a "basic" event.
2021-03-11 11:41:53 -05:00
Michael Albinus
65441a6fab
Add remote processes to Tramp sshfs method
...
* doc/misc/tramp.texi (FUSE setup): Method sshfs supports also
remote processes.
* lisp/net/tramp-cache.el (tramp-get-file-property)
(tramp-set-file-property): Move setting of
`tramp-cache-unload-hook' out of function.
* lisp/net/tramp.el (tramp-expand-args): New defun.
(tramp-handle-make-process):
* lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band)
(tramp-maybe-open-connection):
* lisp/net/tramp-sshfs.el (tramp-sshfs-maybe-open-connection):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-send-command): Use it.
* lisp/net/tramp-sshfs.el (tramp-methods) <sshfs>:
Adapt `tramp-mount-args'. Add `tramp-login-args',
`tramp-direct-async', `tramp-remote-shell',
`tramp-remote-shell-login' and `tramp-remote-shell-args'.
(tramp-connection-properties): Set "direct-async-process" fir sshfs.
(tramp-sshfs-file-name-handler-alist): Add `exec-path',
`make-process', `process-file', `set-file-modes', `shell-command',
`start-file-process', `tramp-get-remote-gid',
`tramp-get-remote-uid' and `tramp-set-file-uid-gid'.
(tramp-sshfs-handle-exec-path, tramp-sshfs-handle-process-file)
(tramp-sshfs-handle-set-file-modes): New defuns.
* test/lisp/net/tramp-tests.el (tramp-test20-file-modes)
(tramp-test28-process-file, tramp-test29-start-file-process)
(tramp-test30-make-process, tramp-test32-shell-command)
(tramp-test32-shell-command-dont-erase-buffer)
(tramp-test34-explicit-shell-file-name, tramp-test35-exec-path)
(tramp-test43-asynchronous-requests): Run also for tramp-sshfs.
(tramp--test-shell-file-name): New defun.
(tramp-test28-process-file)
(tramp-test34-explicit-shell-file-name)
(tramp-test43-asynchronous-requests): Use it.
(tramp-test40-special-characters-with-stat)
(tramp-test40-special-characters-with-perl)
(tramp-test40-special-characters-with-ls)
(tramp-test41-utf8-with-stat, tramp-test41-utf8-with-perl)
(tramp-test41-utf8-with-ls): Remove superfluous skip.
2021-03-11 17:16:50 +01:00
Petteri Hintsanen
62610da8c4
Make tags tables from Texinfo sources
...
* doc/misc/Makefile.in (ETAGS, texifiles): New variables.
(TAGS, tags, FORCE, ${ETAGS}): New targets.
(bootstrap-clean maintainer-clean): Delete TAGS.
* doc/lispref/Makefile.in (ETAGS, texifiles): New variables.
(TAGS, tags, FORCE, ${ETAGS}): New targets.
(bootstrap-clean maintainer-clean): Delete TAGS.
* doc/lispintro/Makefile.in (ETAGS, texifiles): New variables.
(TAGS, tags, FORCE, ${ETAGS}): New targets.
(bootstrap-clean maintainer-clean): Delete TAGS.
* doc/emacs/Makefile.in (ETAGS, texifiles): New variables.
(TAGS, tags, FORCE, ${ETAGS}): New targets.
(bootstrap-clean maintainer-clean): Delete TAGS.
* Makefile.in (TAGS tags): Make tags in doc/emacs, doc/lispintro,
doc/lispref and doc/misc.
2021-03-11 16:42:57 +02:00
Philipp Stephani
222d70333f
* src/image.c (image_set_transform): Don't use ! for Lisp object.
2021-03-11 11:05:32 +01:00
Philipp Stephani
9ab51428cd
* src/image.c (FRAME_SCALE_FACTOR): Define only when needed.
2021-03-11 11:04:57 +01:00
Eli Zaretskii
0445720b75
Fix wording of a recently added documentation
...
* etc/NEWS:
* doc/lispref/display.texi (Image Descriptors): Fix wording of the
description of :transform-smoothing.
2021-03-11 08:37:29 +02:00
Stefan Monnier
8497af6892
* lisp/gnus/nnmh.el (nnmh-newsgroup-articles): Declare var
...
Reported by Barry Fishman <barry@ecubist.org>.
Along the way, I checked other variables which are similarly let-bound
to nil and then read with any intervening assignment, which found
another similar case of missing `defvar`s plus a bit of dead code.
* lisp/gnus/gnus-kill.el (gnus-apply-kill-file-internal):
Remove constant nil var `beg`.
* lisp/gnus/gnus-search.el (gnus-search-query-parse-kv):
Remove constant nil var `return`.
* lisp/gnus/gnus-start.el (gnus-ask-server-for-new-groups):
Remove constant nil var `group`.
(gnus-killed-assoc, gnus-marked-assoc, gnus-newsrc-assoc): Declare vars.
* lisp/gnus/gnus-sum.el (gnus-compute-read-articles):
Remove constant nil var `first`.
* lisp/gnus/nnbabyl.el (nnbabyl-request-accept-article):
Remove constant nil var `beg`.
* lisp/gnus/nnfolder.el (nnfolder-possibly-change-group):
Remove constant nil var `inf`.
* lisp/gnus/nnrss.el (nnrss-request-article):
Remove constant nil var `err`.
2021-03-11 01:14:30 -05:00
Basil L. Contovounesios
f695fdfef7
; Fix US spelling in last change.
2021-03-10 23:28:28 +00:00
Alan Third
c93447eac6
Enable selectable image smoothing (bug#38394)
...
* lisp/doc-view.el (doc-view-insert-image): Always use smoothing in
docview.
* lisp/image-mode.el (image-transform-smoothing): New variable.
(image-mode-map): Add smoothing binding.
(image-transform-properties): Apply smoothing when requested.
(image-transform-set-smoothing): New function.
(image-transform-reset): Reset smoothing.
* src/image.c (image_set_transform): Use new :transform-smoothing
attribute.
(syms_of_image): Add :transform-smoothing attribute.
* doc/lispref/display.texi (Image Descriptors): Document new
:transform-smoothing property.
2021-03-10 21:40:42 +00:00
Juri Linkov
d07ed6dfee
* lisp/tab-bar.el (tab-bar-close-group-tabs): New command.
...
(tab-close-group): New alias.
(tab-bar-close-other-tabs): Rewrite to fix old bug where regardless of
the returned value from tab-bar-tab-prevent-close-functions,
only one tab was retained.
2021-03-10 20:09:23 +02:00
Juri Linkov
5fa2775c0c
* lisp/tab-bar.el: 'C-x t G' (tab-group) assigns a group name to the tab.
...
* lisp/tab-bar.el (tab-bar--tab, tab-bar--current-tab): Add tab group if any.
(tab-bar-change-tab-group): New command.
(display-buffer-in-new-tab): Handle tab-group alist entry.
(tab-group): New alias.
(tab-prefix-map): Bind "G" to 'tab-group'.
2021-03-10 19:57:48 +02:00
Kévin Le Gouguec
88409b21c2
Highlight the entire summary line for selected articles
...
* lisp/gnus/gnus-sum.el (gnus-highlight-selected-summary):
Highlight the entire summary line (bug#47026).
2021-03-10 16:19:06 +01:00
Stefan Kangas
b4ae102483
Remove Emacs 19 workaround from cperl-mode.el
...
* lisp/progmodes/cperl-mode.el (cperl-make-indent): Remove Emacs 19
workaround.
2021-03-10 16:08:38 +01:00
Andrea Corallo
711b2c8349
* lisp/loadup.el: Don't load pcase on native builds (bug#47025).
2021-03-10 15:56:05 +01:00
Lars Ingebrigtsen
4b47eb32c6
Fix byte-compilation warning in benchmark-run
...
* lisp/emacs-lisp/benchmark.el (benchmark-run): Avoid a
byte-compilation warning about an empty let body (bug#46819).
2021-03-10 15:52:54 +01:00
Andrea Corallo
fe1c081c38
* Fix truncated warnings (bug#47024)
...
* lisp/emacs-lisp/comp.el (comp-run-async-workers): Bind
`warning-fill-column' to `most-positive-fixnum'.
2021-03-10 15:50:58 +01:00
Stefan Kangas
a412141c9d
* lisp/files.el (cd): Improve error message.
2021-03-10 15:10:41 +01:00
Mattias Engdegård
7add330903
Mark string predicates side-effect-free
...
* lisp/emacs-lisp/byte-opt.el (side-effect-free-fns): Add string>,
string-greaterp, string-empty-p, string-prefix-p, string-suffix-p
and string-blank-p, all recently marked pure.
2021-03-10 14:08:41 +01:00
Stefan Kangas
a1c84b4308
Remove several references to Emacs 22 and earlier
...
* admin/charsets/mapfiles/README:
* doc/emacs/custom.texi (Saving Customizations):
* doc/lispintro/emacs-lisp-intro.texi (Simple Extension):
* doc/misc/efaq-w32.texi (Location of init file):
* doc/misc/gnus-faq.texi (FAQ 1-3):
* doc/misc/gnus.texi (Top, Various, Image Enhancements):
* lisp/erc/erc-menu.el (menu):
* lisp/progmodes/cfengine.el (cfengine-fill-paragraph):
Remove some references to Emacs 22 and earlier.
* doc/lispref/buffers.texi:
* doc/lispref/eval.texi:
* doc/lispref/files.texi:
* doc/lispref/keymaps.texi:
* doc/lispref/loading.texi:
* doc/lispref/minibuf.texi:
* doc/lispref/positions.texi:
* doc/lispref/variables.texi: Remove comments about "Emacs 19
specific" features.
2021-03-10 05:45:47 +01:00
Stefan Kangas
4cb52200cb
Fix duplicate ":" in ert-find-test-other-window prompt
...
* lisp/emacs-lisp/ert.el (ert-find-test-other-window): Don't insert
duplicate ":" in prompt.
2021-03-10 04:34:53 +01:00
Stefan Kangas
dc2688acb3
Do mode tagging in ert.el
2021-03-10 04:34:32 +01:00
Stefan Kangas
1c5cb14c0d
Use proper command substitutions in some docstrings
...
* lisp/arc-mode.el (archive-mode):
* lisp/ibuffer.el (ibuffer):
* lisp/tar-mode.el (tar-mode):
* lisp/textmodes/table.el (table-insert): Use substitute-command-keys
instead of hardcoded keys in some docstrings.
2021-03-10 04:26:06 +01:00
Stefan Kangas
5217b56ee1
* lisp/userlock.el: Use lexical-binding.
2021-03-10 04:14:43 +01:00
Stefan Kangas
8605ddc79c
Use 'help-key-binding' face in userlock.el
...
* lisp/userlock.el (userlock--fontify-key): New function.
(ask-user-about-lock, ask-user-about-lock-help,
(ask-user-about-supersession-threat)
(ask-user-about-supersession-help): Add face 'help-key-binding' to
displayed keys.
2021-03-10 04:14:43 +01:00
Dmitry Gutov
de9b19cbfd
(project-switch-commands): Remove the ###autoload instruction
...
* lisp/progmodes/project.el (project-switch-commands):
Remove the ###autoload instruction. It's unnecessary and can
cause surprises in some circumstances (bug#46986).
2021-03-10 03:08:37 +02:00
Stefan Kangas
48bfebc3b9
* lisp/help.el (help--describe-translation): Fix typo.
2021-03-10 01:23:25 +01:00
Stefan Monnier
e8f0a7b6c1
* lisp/mail/rmailmm.el: Use cl-defstruct and lexical-binding
...
Remove redundant `:group` args.
(rmail-mime-entity): Make it a `cl-defstruct`.
(rmail-mime-entity-set-truncated): Mark as obsolete.
(rmail-mime-display): New `cl-defstruct`.
(rmail-mime-shown-mode, rmail-mime-hidden-mode, rmail-mime-raw-mode)
(rmail-mime-toggle-hidden, rmail-mime-update-tagline)
(rmail-mime-text-handler, rmail-mime-bulk-handler)
(rmail-mime-process-multipart, rmail-mime-handle, rmail-mime-process)
(rmail-mime-parse, rmail-mime-insert, rmail-show-mime): Adjust accordingly.
(rmail-mime-toggle-raw): Apply de Morgan.
(rmail-mime-insert-text): Remove unused var `tagline`.
(rmail-mime-insert-image): Remove unused var `content-type`.
(shr-inhibit-images, shr-width): Declare vars.
(rmail-mime-insert-multipart): Remove unused vars `tagline` and `body`.
(rmail-mime-insert): Remove unused var `tagline`.
(rmail-search-mime-message): Remove unused var `body-end`.
2021-03-09 16:17:51 -05:00
Paul Eggert
f97e07ea80
Port alternate signal stack to upcoming glibc 2.34
...
* src/sysdep.c (sigsegv_stack): Increase size to 64 KiB and align
it to max_align_t. This copies from Gnulib’s c-stack.c, and works
around a portability bug in draft glibc 2.34, which no longer
defines SIGSTKSZ when _GNU_SOURCE is defined.
2021-03-09 11:26:33 -08:00
Stefan Monnier
c6ed17cc70
* src/buffer.c (Fbuffer_swap_text): Swap mark-active as well
...
This avoids undesirable situations where `mark-active` is set even
though the `mark` isn't.
2021-03-09 13:04:14 -05:00
Juri Linkov
29458ec7d2
* lisp/tab-bar.el (tab-bar-select-tab): Set window-state-put WINDOW arg to nil
...
WINDOW arg nil will always create a new window regardless of the value
returned by 'frame-root-window' that is nondeterministic - it returns
an internal window when there are more than 1 window on the frame/tab,
otherwise it returns a live window that was reused between different tabs
(bug#46904)
(tab-prefix-map): Bind "u" to 'tab-undo'.
2021-03-09 19:27:31 +02:00
Stefan Monnier
7561c01380
* lisp/emacs-lisp/cconv.el: Don't confuse a string for a docstring
...
(cconv--convert-funcbody): Check there's something after a docstring.
* test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-string-vs-docstring):
New corresponding test.
2021-03-09 11:04:03 -05:00
Andrea Corallo
79c83f79c5
* src/comp.c (ABI_VERSION): Bump following-up 380ba045c4.
2021-03-09 16:37:05 +01:00
Andrea Corallo
7672b15c27
* test/src/comp-test-funcs.el (comp-test-46670-1-f): Remove a warning.
2021-03-09 12:06:28 +01:00
Andrea Corallo
43b0df62cd
Merge commit ' 9cbdf20316' into native-comp
2021-03-09 10:03:47 +01:00
Pip Cet
380ba045c4
* Fix comp unit type decl in eln files to fix GC crash (bug#46256)
...
* src/comp.c (emit_ctxt_code): Allocate comp_unit as a Lisp_Object,
not a pointer to pointer to Lisp_Object.
2021-03-09 09:25:38 +01:00
Pip Cet
93f92cf1ba
Zero stale pointer when unloading comp units (bug#46256)
...
* src/alloc.c (cleanup_vector): Call unload_comp_unit.
* src/comp.c (unload_comp_unit): New function.
2021-03-09 09:25:27 +01:00
Konstantin Kharlamov
40d8f83e53
smerge-vc-next-conflict: Move to conflict markers more reliably
...
* lisp/vc/smerge-mode.el (smerge-vc-next-conflict): Search for a
conflict marker if call to (vc-find-conflicted-file) haven't resulted in
a jump to one. And remove `buffer` variable that becomes unused.
2021-03-09 04:47:49 +02:00
Dmitry Gutov
8538108132
Strip text properties from the default string
...
* lisp/progmodes/project.el (project--read-regexp):
Strip text properties from the default string (bug#47012).
2021-03-09 04:06:01 +02:00