1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-24 06:20:43 -08:00
Commit graph

81240 commits

Author SHA1 Message Date
Yuchen Pei
ca7e76c6f9 Add diary-offset to diary-lib.el
* doc/emacs/calendar.texi: Document the change.
* lisp/calendar/diary-lib.el (diary-offset):
* test/lisp/calendar/icalendar-tests.el: Add a test (bug#50195).
2021-09-04 09:12:10 +02:00
Glenn Morris
b66d4616f0 Merge from origin/emacs-27
0aa0410372 (origin/emacs-27, emacs-27) Fix "Finder" description for m...
2021-09-03 07:50:25 -07:00
Augusto Stoffel
e32c7d2a8d Change Python eval to send directly instead of using temporary files
* lisp/progmodes/python.el (python-shell-eval-setup-code): New
const for setting up eval (bug#49822).
(python-shell--encode-string): New function.
(python-shell-send-string): Use it to send commands directly
instead of writing to a temporary file.
(python-shell-send-string-no-output): Adjust sending.
(python-shell-send-file): Ditto.
2021-09-03 14:26:51 +02:00
Theodor Thornhill
34550b4492 Update to CSS Flexible Box Layout Module Level 2
* css-mode.el (css-property-alist): Update link.
2021-09-03 14:06:02 +02:00
Theodor Thornhill
0a7424360c Update to CSS Containment Module Level 2
* css-mode.el (css-property-alist): Update contain, and add
content-visibility.
2021-09-03 14:05:49 +02:00
Theodor Thornhill
538a401b0c Update to CSS Grid Layout Module Level 2
* css-mode.el (css-property-alist): Update to the newer spec, and add
the subgrid keywords
2021-09-03 14:05:37 +02:00
Theodor Thornhill
1778c90b57 Clean up css-property-alist for alignment
* css-mode.el (css-property-alist, css-value-class-alist): Provide new
position related entries for use in css-property-alist.  Make sure
that property-alist reflect the spec:
https://www.w3.org/TR/css-align-3/#property-index
2021-09-03 14:05:25 +02:00
Lars Ingebrigtsen
d0eaf7a3cf Fix `describe-function' for autoloaded adviced functions
* lisp/emacs-lisp/nadvice.el (advice--make-single-doc): Factor
out.
(advice--make-docstring): From here (bug#23523).  Also include
advices for autoloads.
2021-09-03 13:48:44 +02:00
Lars Ingebrigtsen
6dad558a9d Allow gud-mi to edit two executables with the same name
* lisp/progmodes/gud.el (gud-common-init): Allow editing two
executables with the same name (bug#22772).
2021-09-03 12:44:22 +02:00
Stefan Kangas
0cabf8bc36 ; Fix typos 2021-09-03 13:05:32 +02:00
Lars Ingebrigtsen
d1f3247666 Make recent timer changes more backwards-compatible
* lisp/emacs-lisp/timer.el (timerp, timer-event-handler): Make
backwards-compatible with old .elc files that have their own
versions of `timer-create'd structures.
2021-09-03 10:40:21 +02:00
Lars Ingebrigtsen
d67ce5ef10 Fix message in previous toggle-truncate-lines change
* lisp/simple.el (toggle-truncate-lines): Fix message in previous
change.
2021-09-03 10:15:05 +02:00
Lars Ingebrigtsen
e1c893f4a3 Allow not putting pasted text onto the kill ring under xterm
* lisp/term/xterm.el (xterm-paste): Don't put pasted text onto the
kill ring (bug#28868).
(xterm-store-paste-on-kill-ring): New user option.
2021-09-03 09:47:18 +02:00
Lars Ingebrigtsen
0d3ae350c9 Make toggle-truncate-lines disable visual-line-mode
* lisp/simple.el (toggle-truncate-lines): Disable
`visual-line-mode' (bug#29664).
2021-09-03 08:37:03 +02:00
Stefan Kangas
0034067f47 Avoid cl-lib alias for cadadr and friends
* lisp/edmacro.el (edmacro-fix-menu-commands):
* lisp/frameset.el (frameset-move-onscreen):
* lisp/htmlfontify.el (hfy-face-at, hfy-merge-adjacent-spans)
(hfy-mark-tag-names):
* lisp/mail/footnote.el (footnote--make-hole)
(footnote-back-to-message):
* lisp/net/eudc.el (eudc-get-email, eudc-get-phone):
* lisp/net/rcirc.el (rcirc-make-trees, rcirc-handler-333)
(rcirc-authenticate):
* lisp/play/5x5.el (5x5-draw-grid, 5x5-solver):
* lisp/play/decipher.el (decipher-insert-frequency-counts):
* lisp/ses.el (ses-relocate-range):
* test/lisp/emacs-lisp/edebug-tests.el (edebug-tests-step-into-macro-error)
(edebug-tests-error-stepping-into-subr): Avoid using cl-lib aliases
for cadadr and friends that now reside in subr.el.
2021-09-03 10:18:54 +02:00
Theodor Thornhill
e588fa45ce Add CSS Box Alignment Module Level 3 to css-mode
* lisp/textmodes/css-mode.el (css-property-alist): Consolidate
`align-{contents, items, self}', as well as the corresponding
values for `justify-{contents, items, self}' and `place-{contents,
items, self}'.  Values extracted from the flex part and into its
own block (bug#50345).
2021-09-03 08:14:48 +02:00
Theodor Thornhill
5ae02f90fe Add selection to css-pseudo-element-ids
* lisp/textmodes/css-mode.el (css-pseudo-element-ids): Add
selection as an element id (bug#50345).
2021-09-03 08:13:49 +02:00
Lars Ingebrigtsen
7a4d823b39 Fix revert-buffer' message in find-file-select'
* lisp/files.el (find-file-noselect): Refer to revert-buffer-quick
here since we're in a file-based buffer.
2021-09-03 07:48:10 +02:00
Dmitry Gutov
0a18899f06 Fix recently broken vc-delete-file with Git
* lisp/vc/vc-git.el (vc-git-delete-file):
Treat FILE as string, not list (bug#50334).
2021-09-03 03:34:18 +03:00
Tassilo Horn
0db50c3fd5 Support forges by type rather than by host
Formerly, bug-reference-setup-from-vc-alist basically had one entry
per host (like gitlab.com).  Restructure so that it's easy to add new
hosts being just an instance of some type of forge such as SourceHut,
Gitea, or GitLab.

While we're at it, add support for gitea.com, salsa.debian.org, and
framagit.org, the latter two being GitLab instances.

* lisp/progmodes/bug-reference.el (bug-reference-gitea-instances)
(bug-reference-gitlab-instances,bug-reference-sourcehut-instances):
New variables listing online instances of those forges.
(bug-reference--setup-from-vc-alist): New function (and variable for
caching) using the former three new variables to generate suitable VC
auto-setup alist.
(bug-reference-try-setup-from-vc): Use both
bug-reference-setup-from-vc-alist and
bug-reference--setup-from-vc-alist.
2021-09-02 22:07:16 +02:00
Juri Linkov
6372a3f6e5 * lisp/abbrev.el: Improve docstrings of inverse commands (bug#50303)
* lisp/abbrev.el (add-mode-abbrev, add-global-abbrev)
(inverse-add-mode-abbrev, inverse-add-global-abbrev):
Add interlinking to opposite commands in docstrings.
2021-09-02 20:34:28 +03:00
Eli Zaretskii
bfb2dd0e9d Improve a recent change in 'mule-cmds.el'
* lisp/international/mule-cmds.el
(select-safe-coding-system--format-list): Display codepoints in
hex and as characters.  Display the ellipsis in a better place.
Enlarge the limit to 5 codepoints, as the display is now easier to
grasp.
(select-safe-coding-system-interactively): Don't use
'select-safe-coding-system--format-list' for "rejected"
coding-systems, as those don't come with characters and positions.
2021-09-02 13:43:00 +03:00
Lars Ingebrigtsen
28dc18a553 Make the coding system warning prettier
* lisp/international/mule-cmds.el
(select-safe-coding-system--format-list): New function to display
the coding system information in a more readable format (bug#31062).
(select-safe-coding-system-interactively): Use it.
2021-09-02 10:51:39 +02:00
Lars Ingebrigtsen
d7fb11b6d7 Reformat up-list and backward-up-list doc strings
* lisp/emacs-lisp/lisp.el (backward-up-list): Reformat the doc
string into several paragraphs (bug#31349).
(up-list): Ditto and fix the "start" to be "end".
2021-09-02 10:22:52 +02:00
Lars Ingebrigtsen
b099942113 isearch*-lax-whitespace doc string improvements
* lisp/isearch.el (isearch-regexp-lax-whitespace):
* lisp/isearch.el (isearch-lax-whitespace): Mention the key binding
in the doc string (bug#31790).
2021-09-02 09:57:30 +02:00
Yikai Zhao
d8d5dc4565 memory-report: support calculating size for structures
* lisp/emacs-lisp/memory-report.el (memory-report--object-size-1): Add
support for cl-defstruct types (bug#50301).
2021-09-02 09:37:06 +02:00
Lars Ingebrigtsen
891be6f140 Fix up previous ebfn2ps tweak
* lisp/progmodes/ebnf2ps.el (ebnf-print-buffer): Remove NOOP decode
step.
2021-09-02 09:19:54 +02:00
Lars Ingebrigtsen
f143260d04 Revert "Tweak sh-script-mode indentation further"
This reverts commit 6392bc37ab.

The changes led to errors throughout (bug#50320).
2021-09-02 08:41:30 +02:00
Stephen Gildea
f3c5355c6b tramp-auto-save-directory: make private
* lisp/net/tramp.el (tramp-handle-make-auto-save-file-name):
chmod 0700 tramp-auto-save-directory when creating

Thanks to Michael Albinus for reviewing this patch.
2021-09-01 20:42:28 -07:00
Lars Ingebrigtsen
c42bb9d75c Filter out the `name' parameter in clone-frame
* lisp/frame.el (clone-frame): Filter out the `name' parameter,
because two frames shouldn't have the same name and this will
lead to a warning.
2021-09-01 16:27:06 +02:00
Lars Ingebrigtsen
b3a9d8cd3d Don't have epg bug out on non-existent packages
* lisp/epg.el (epg--start): We may be called from contexts where
the directory doesn't exist, but we need to have an existing
directory here for the process (bug#32004).
2021-09-01 15:56:04 +02:00
Lars Ingebrigtsen
6a6de68daf Add new macro `with-existing-directory'
* doc/lispref/files.texi (Testing Accessibility): Document it.
* lisp/subr.el (with-existing-directory): New macro (bug#32004).
2021-09-01 15:56:04 +02:00
Glenn Morris
a15f549a57 ; Auto-commit of loaddefs files. 2021-09-01 06:45:05 -07:00
Drew Adams
2c662e6d66 Add new command `clone-frame'
* doc/emacs/frames.texi (Creating Frames): Document it.

* lisp/frame.el (clone-frame): New command and keystroke (bug#34715).
2021-09-01 11:42:48 +02:00
Glenn Morris
a4e3e0f89e Make set-foreground-color display completions using foreground colors
* lisp/faces.el (defined-colors-with-face-attributes): Also create
colors for foregrounds (bug#33799).
(read-color): Also allow varying the foreground color.

* lisp/frame.el (set-foreground-color): Vary the foreground color.
2021-09-01 11:26:51 +02:00
Lars Ingebrigtsen
fffcc7ab25 Fix (setf (map-elt map key) (my-func))
* lisp/emacs-lisp/map.el (map-elt): Ensure that the value isn't
referenced more than once (bug#50290).
2021-09-01 10:32:49 +02:00
Lars Ingebrigtsen
4a1505904e Autoload calc-grab-sum-across and calc-grab-sum-down
* lisp/calc/calc.el (calc-grab-sum-down):
(calc-grab-sum-across): Autoload, since they can be used from
outside Calc (bug#50311).
2021-09-01 10:14:33 +02:00
Marco Centurion
a0be0cdbd2 Use "gzip -d" instead of "gunzip"
* lisp/dired-aux.el (dired-compress-file-suffixes): Use "gzip -d"
instead of "gunzip" since we already assume that "gzip" exists on
the system (bug#10990).

Copyright-paperwork-exempt: yes
2021-09-01 09:38:00 +02:00
Philip Kaludercic
8761d30da0
Avoid failing if vc backend doesn't implement ignore-completion-table
* project.el (project-ignores): Handle vc-not-supported signals
2021-08-31 23:36:55 +02:00
Michael Albinus
e5c481b61c ; Add comment to tramp-read-passwd for debugging 2021-08-31 10:09:38 +02:00
Lars Ingebrigtsen
03dcceeeee Rename xref--mouse-2 and adjust documentation
* doc/emacs/maintaining.texi (Xref Commands): `mouse-1' is bound
to `xref-goto-xref', not `mouse-2' (bug#35376).
(Xref Commands): Mention what `mouse-2' does.

* lisp/progmodes/xref.el (xref--button-map): Adjust.
(xref-select-and-goto-xref): Rename from xref--mouse-2 (bug#35376).
2021-08-31 04:50:18 +02:00
Lars Ingebrigtsen
bd17fe1d9e Fix point placement after ispell-complete-word
* lisp/textmodes/ispell.el (ispell-complete-word): Leave point at
the end of the inserted word instead of a less than useful amount
of distance from the start of the word (bug#37552).
2021-08-31 04:31:01 +02:00
Lars Ingebrigtsen
31b06ea36f Make calc plotting through gnuplot work on non-X gnuplots
* lisp/calc/calc-graph.el (calc-graph-plot): Fall back on "dumb"
if we don't support the terminal (bug#50237).
(calc-gnuplot-command): Say whether the command errored out.
2021-08-31 03:47:45 +02:00
Lars Ingebrigtsen
65ddaaf41f Fix abnf parsing of <prose> elements
* lisp/progmodes/ebnf-abn.el (ebnf-abn-lex): Make <prose> parsing
work (bug#39663).
2021-08-31 03:17:21 +02:00
Lars Ingebrigtsen
50765f3f51 Make run-at-time try harder to run at integral multiples
* lisp/emacs-lisp/timer.el (timer): Add new slot integral-multiple.
(timerp): Adjust.
(timer-event-handler): Recompute the delay if requested
(bug#39099).
(run-at-time): Mark the timer as recomputable if given a t
parameter.

* src/keyboard.c (decode_timer): Adjust.
2021-08-31 03:04:22 +02:00
Dmitry Gutov
d2ad64b7a5 Move the expansion of abbreviated names to vc-git.el
* lisp/vc/vc-git.el (vc-git--literal-pathspec):
Perform the expansion of abbreviated file names here instead
(bug#39452).

* lisp/vc/vc.el (vc-root-diff, vc-print-root-log):
Undo the recent change.
2021-08-31 02:47:31 +03:00
Harald Jörg
a1887cc5e6 ; cperl-mode.el: Fix border cases of inserting with elisp
* lisp/progmodes/cperl-mode.el (cperl-unwind-to-safe): Replace
(and extend) inline comment by a docstring.  Handle edge cases when
inserting text with elisp (related to Bug#28962).
(cperl-process-here-doc): Add syntax-type `here-doc-start'.
(cperl-find-pods-heres): Make sure that the results of this
function are immediately visible.

* test/lisp/progmodes/cperl-mode-tests.el (cperl-test-bug-14343):
Add test cases for "empty" here-documents and inserting at the
edges of a here-document.
2021-08-30 20:32:41 +02:00
Eli Zaretskii
9e67ef88f2 Improve documentation of 'ispell-hunspell-add-multi-dic'
* lisp/textmodes/ispell.el (ispell-hunspell-add-multi-dic):
Explain in the doc string how to call from Lisp.  (Bug#50241)
2021-08-30 15:48:35 +03:00
Eli Zaretskii
b654420b1b Minor improvement in 'get-locale-names' on MS-Windows
* lisp/international/mule-cmds.el (get-locale-names): Delete
duplicate locales from the list returned by the MS-Windows
implementation.
2021-08-30 15:42:32 +03:00
Lars Ingebrigtsen
c221f17b1c Make some non-ASCII work in ebnf2ps
* lisp/progmodes/ebnf2ps.el (ebnf-print-buffer): Make non-ASCII
work slightly better (bug#39663).
2021-08-30 03:14:08 +02:00