Carlos Pita
b78583cde7
Indent python multiline strings to start and previous levels
...
* progmodes/python.el (python-indent--calculate-indentation): Add an
additional indentation point to match indentation of previous line in
a multiline string. Then Tab iterates between 0, the start indentation
level and the previous line level (bug#37726).
2020-08-09 20:44:55 +02:00
Philipp Stephani
5fef06fcf7
* src/json.c (lisp_to_json): Simplify.
2020-08-09 19:31:26 +02:00
Stefan Kangas
781bcce119
Revert obsoletion of manual-entry
...
Ref: https://lists.gnu.org/archive/html/emacs-devel/2020-08/msg00167.html
* lisp/man.el (manual-entry): Revert obsoletion of this alias.
2020-08-09 18:28:46 +02:00
Eli Zaretskii
ec323389e7
Fix recently added documentation bits
...
* lisp/simple.el (async-shell-command-buffer)
(async-shell-command, shell-command, shell-command-on-region):
* lisp/dired-aux.el (dired-do-async-shell-command)
(dired-do-shell-command):
* doc/misc/tramp.texi (Remote processes):
* doc/emacs/misc.texi (Single Shell):
* etc/NEWS: Fix wording and punctuation of recently added
documentation.
2020-08-09 19:13:53 +03:00
Carlos Pita
1a845a672d
Improve client/daemon xdg/systemd experience
...
* Makefile.in: Add emacsclient.desktop generation.
* etc/emacsclient.desktop: Add file, use emacsd as StartupWMClass.
* etc/emacs.service: Run with name emacsd (bug#37847).
2020-08-09 15:57:51 +02:00
Damien Cassou
8e82baf5a7
Add the new library hierarchy.el
...
* lisp/emacs-lisp/hierarchy.el: New file.
2020-08-09 14:48:22 +02:00
Andrii Kolomoiets
d586bae501
vc-hg: use 'hg summary' to populate vc-dir headers
...
* lisp/vc/vc-hg.el (vc-hg-dir-extra-headers): Use 'hg summary' command.
(vc-hg-dir-extra-header): Remove unused function.
* etc/NEWS: Mention changes to vc-hg.el (bug#38387).
2020-08-09 14:35:26 +02:00
Andrii Kolomoiets
c789c3aac6
vc-hg-create-tag: Possibility to create a branch
...
* lisp/vc/vc-hg.el (vc-hg-create-bookmark): New user option.
(vc-hg-create-tag): Use it (bug#38425).
2020-08-09 14:30:55 +02:00
Tino Calancha
2ed502d2a7
Add constants for shell command output buffer names
...
Buffers `*Shell Command Output*' and `*Async Shell Command*'
have been around since a long time; used across several libraries,
they are de facto output buffers for shell commands.
* lisp/simple.el (shell-command-buffer-name)
(shell-command-buffer-name-async): New variables.
* lisp/dired-aux.el
* lisp/gnus/gnus-sum.el
* lisp/gnus/gnus-win.el
* lisp/ibuf-ext.el
* lisp/net/tramp.el: Use them.
* etc/NEWS (Changes in Emacs 28.1): Announce this change.
* doc/emacs/misc.texi (Single Shell)
* doc/misc/tramp.texi (Remote processes):
Update manual (bug#39138).
2020-08-09 14:18:09 +02:00
Jorge P. de Morais Neto
db77e9a0da
TUTORIAL: "buffer" vs "file" consistency; capitalize Dired
...
* etc/tutorials/TUTORIAL: For consistency with C-x s ("save some
buffers") and for accuracy, describe C-x C-s as "Save buffer to
file"), and then C-x s as "Save some buffers to their files"
(bug#39359). Also capitalize "Dired".
Copyright-paperwork-exempt: yes
2020-08-09 13:47:13 +02:00
Lars Ingebrigtsen
55bcb3f7e0
Make solar commands in Calendar less beepy
...
* lisp/calendar/solar.el (solar-setup): Remove a (beep) that's
been in this code since 1992 (bug#42774).
2020-08-09 13:12:32 +02:00
Basil L. Contovounesios
71a79f7551
; Fix typo in last change to calendar.el
...
* lisp/calendar/calendar.el (calendar-use-numeric-time-zones): Fix
typo in docstring.
2020-08-09 12:08:59 +01:00
Lars Ingebrigtsen
54770707ad
Add a command line (and MIME handler) function to start eww
...
* lisp/net/eww.el (eww-browse): New command (bug#42768) to be used
from the command line.
* doc/misc/eww.texi (Command Line): Document it.
2020-08-09 13:05:37 +02:00
Lars Ingebrigtsen
1888c6cb96
Doc string fix for message-mailto
...
* lisp/gnus/message.el (message-mailto): Doc string fix.
2020-08-09 12:55:15 +02:00
Lars Ingebrigtsen
5732d8ee9a
Slight code clean-up in message-mailto
...
* lisp/gnus/message.el (message-mailto): Clean up code slightly.
2020-08-09 12:52:02 +02:00
Lars Ingebrigtsen
3c728d4c69
Add a variable to allow displaying numeric time zones
...
* lisp/calendar/calendar.el (calendar-use-numeric-time-zones): New
variable.
* doc/emacs/calendar.texi (Sunrise/Sunset): Document it (bug#33149).
* lisp/calendar/cal-dst.el (calendar-standard-time-zone-name): Use it.
(calendar-daylight-time-zone-name): Ditto.
* lisp/calendar/solar.el (sunrise-sunset): Adjust usage.
(solar-equinoxes-solstices): Ditto.
2020-08-09 12:34:23 +02:00
Lars Ingebrigtsen
f3e0da29a2
Remove superfluous code from the previous '' sql string fix
...
* lisp/progmodes/sql.el (sql-mode): Remove setting that's now
superfluous from previous check-in.
2020-08-09 10:41:59 +02:00
Juri Linkov
3b04d39c3c
* lisp/custom.el (custom-add-choice): Fix previous commit.
2020-08-09 02:48:14 +03:00
Basil L. Contovounesios
444e404325
; Fix typos in recent message.el changes
...
* doc/misc/message.texi (OpenPGP Header):
* etc/NEWS:
* lisp/gnus/message.el (message-add-openpgp-header): Fix spelling of
function name.
2020-08-08 23:56:30 +01:00
Glenn Morris
878924e881
* lisp/outline.el (outline-minor-mode-prefix): Fix compilation.
2020-08-08 08:35:34 -07:00
Eli Zaretskii
843b55f682
; Fix recent message.el-related changes
...
* lisp/gnus/message.el (message-openpgp-header):
* doc/misc/message.texi (OpenPGP Header): Fix the documentation
added in recent commits.
2020-08-08 17:06:45 +03:00
Lars Ingebrigtsen
ed943db794
Document the OpenPGP header
...
* doc/misc/message.texi (Using the OpenPGP Header): Document the
OpenPGP header (bug#39964).
2020-08-08 15:49:48 +02:00
Philip K
b799cc271d
Add support for the OpenPGP header to Emacs
...
* lisp/gnus/message.el (message-openpgp-header): New variable
(bug#39964).
(messasge-add-openpgp-header): New function to use it.
2020-08-08 15:40:32 +02:00
Florian v. Savigny
289d6b2265
Handle '' in strings in SQL Mode
...
* lisp/progmodes/sql.el
(sql--syntax-propertize-escaped-apostrophe): Handle '' in strings
(bug#40231).
(sql-mode): Use it.
2020-08-08 15:33:58 +02:00
Lars Ingebrigtsen
b42df36757
Modernise a code example in os.texi
...
* doc/lispref/os.texi (Session Management): Use
with-current-buffer in the example instead of save+switch (bug#40341).
2020-08-08 15:17:38 +02:00
Bruno Félix Rezende Ribeiro
527b8a8071
* doc/lispref/os.texi (Session Management): Make example homoiconic
...
* doc/lispref/os.texi (Session Management): Don't insert Lisp as
strings, but use format (bug#40341).
Copyright-paperwork-exempt: yes
2020-08-08 15:17:38 +02:00
Eli Zaretskii
2e669305fc
; * etc/NEWS: Rearrange some entries and add entry for recentf change.
2020-08-08 16:07:16 +03:00
Fabrice Niessen
99f8a1c917
Update Leuven-theme
...
* etc/themes/leuven-theme.el (class): Update theme (bug#40759).
2020-08-08 14:21:38 +02:00
Philip K
a8e3b29b2b
Use write-region when saving recentf file
...
* lisp/recentf.el (recentf-save-list): Don't generate backups for
recentf files (bug#41060).
2020-08-08 13:59:03 +02:00
Philip K
8264e8deaf
outline-minor-mode-prefix is a key sequence, not a string
...
* lisp/outline.el (outline-minor-mode-prefix): Fix the type (bug#41072).
2020-08-08 13:56:05 +02:00
Philip K
50dd037338
Make Customize changes to outline-minor-mode-prefix happen immediately
...
* lisp/outline.el (outline-minor-mode-prefix): Update the key map
after changing the value in Customize (bug#41073).
2020-08-08 13:52:46 +02:00
Matthias Meulien
1b8f9081b9
lisp/bookmark.el: Customize choice to show bookmark list in a new tab
...
* lisp/bookmark.el (bookmark-bmenu-get-buffer): Add as a choice
for new-tab targets (bug#41225).
2020-08-08 13:45:23 +02:00
Lars Ingebrigtsen
c3a6bcac86
Add new utility function custom-add-choice
...
* lisp/custom.el (custom-add-choice): New function (bug#41225).
2020-08-08 13:42:48 +02:00
Lars Ingebrigtsen
f07bbb67d1
Fix up previous list-buffers patch to work when there's no buffer
...
* lisp/buff-menu.el (Buffer-menu--dynamic-name-width): Use apply
#'max instead of seq-max since the list may be empty.
2020-08-08 13:01:42 +02:00
Lars Ingebrigtsen
119c34cc0a
Mark an mml-sec test as unstable
...
* test/lisp/gnus/mml-sec-tests.el
(mml-secure-en-decrypt-sign-1-1-single): Mark the test as unstable
(bug#42720). It sometimes fails on some systems (Fedora?) when
run with "-j5", so there may be a race condition in the code somewhere.
2020-08-08 12:00:57 +02:00
Lars Ingebrigtsen
4085a2c15e
Tweak how whitespace-mode marks the end of the buffer
...
* lisp/whitespace.el (whitespace-missing-newline-at-eof): Change
the colours to not be as angry.
(whitespace-color-on): Don't mark the end of the buffer if point
is there.
2020-08-08 11:53:09 +02:00
Lars Ingebrigtsen
44b31c1ed7
Make the name column in 'list-buffers' have a dynamic width
...
* lisp/buff-menu.el (Buffer-menu--dynamic-name-width): New
function (bug#30692).
(Buffer-menu-name-width): Default to using it.
(list-buffers--refresh): Call it.
* lisp/emacs-lisp/seq.el (seq-max): Add autoload cookie.
2020-08-08 11:37:43 +02:00
Stefan Kangas
cdbbc2081e
Use lexical-binding in saveplace.el and add tests
...
* lisp/saveplace.el: Use lexical-binding.
(save-place-to-alist): Doc fix.
* test/lisp/saveplace-tests.el:
* test/lisp/saveplace-resources/saveplace: New files.
2020-08-08 01:40:38 +02:00
Stefan Kangas
67ffffa666
* lisp/scroll-lock.el: Use lexical-binding.
2020-08-07 19:40:31 +02:00
Simen Heggestøyl
7196abecb5
Use lexical-binding in browse-url.el and add tests
...
* lisp/net/browse-url.el: Turn on lexical-binding.
(browse-url--mailto, browse-url--man, browse-url--browser): Use
imperative form in docstrings.
(browse-url-delete-temp-file): Turn comment into a proper docstring.
* test/lisp/net/browse-url-tests.el: New file with tests for
browse-url.el.
2020-08-07 17:37:06 +02:00
Stefan Kangas
3e39aa6cfa
Remove support for Mosaic from browse-url
...
* lisp/net/browse-url.el (browse-url-mosaic-program)
(browse-url-mosaic-arguments, browse-url-mosaic-pidfile)
(browse-url-CCI-port, browse-url-CCI-host)
(browse-url-default-browser, browse-url-mosaic, browse-url-cci):
Remove support for the Mosaic browser, which saw its last release in
1997, or 23 years ago.
* etc/NEWS: Announce its removal.
2020-08-07 14:52:21 +02:00
Lars Ingebrigtsen
d0ad630672
Fix fontification of %d in strings in cperl-mode
...
* lisp/progmodes/cperl-mode.el (cperl-init-faces): Don't fontify
directives like %d in strings as hashes (bug#22867).
2020-08-07 14:07:20 +02:00
Stefan Kangas
7ed61d6193
Make more erc function aliases obsolete
...
* lisp/erc/erc-compat.el (erc-propertize, erc-view-mode-enter)
(erc-function-arglist, erc-delete-dups)
(erc-replace-regexp-in-string): Make these aliases obsolete.
* lisp/erc/erc-capab.el (erc-capab-identify-add-prefix)
(erc-capab-identify-remove/set-identified-flag):
* lisp/erc/erc-dcc.el (erc-dcc-chat-parse-output)
(erc-dcc-unquote-filename, pcomplete/erc-mode/DCC):
* lisp/erc/erc-list.el (erc-list-menu-mode, erc-list-button)
(erc-list-make-string):
* lisp/erc/erc-log.el (erc-log-standardize-name):
* lisp/erc/erc-match.el (erc-log-matches-make-buffer):
* lisp/erc/erc-networks.el (erc-server-select):
* lisp/erc/erc.el (erc-message-english-PART)
(erc-update-mode-line-buffer, erc-format-my-nick)
(erc-format-@nick, erc-get-user-mode-prefix, erc-display-prompt)
(erc-part-reason-zippy, erc-quit-reason-zippy, erc-get-arglist)
(erc-toggle-debug-irc-protocol, erc-log-irc-protocol)
(erc-migrate-modules): Adjust callers.
2020-08-07 14:02:01 +02:00
Stephen Leake
b44a5d849e
* lisp/files.el (auto-mode-alist): delete ada-mode; now in GNU ELPA only
2020-08-07 04:43:18 -07:00
Lars Ingebrigtsen
1545f28a98
Add some documentation for widget-describe and button-describe
...
* doc/emacs/help.texi (Key Help): Document button-describe and
widget-describe.
* lisp/button.el (push-button): Mention button-describe.
* lisp/cus-edit.el (Custom-newline): Mention widget-describe (bug#139).
2020-08-07 13:36:56 +02:00
Mauro Aranda
95b60c84b3
Add new commands to describe buttons and widgets
...
* lisp/help-fns.el (describe-widget-functions): New variable, used by
describe-widget.
(describe-widget): New command, to display information about a widget.
* lisp/button.el (button-describe): New command, for describing a button.
(button--describe): Helper function for button-describe.
* lisp/wid-edit.el (widget-describe): New command, for describing a
widget.
(widget--resolve-parent-action): Helper function, to allow
widget-describe to display more useful information (bug#139).
2020-08-07 13:36:55 +02:00
Eli Zaretskii
c32d6b21b8
Fix documentation of 'missing-newline-at-eof'
...
* doc/emacs/display.texi (Useless Whitespace):
* etc/NEWS (missing-newline-at-eof): Improve wording and
punctuation.
2020-08-07 14:03:24 +03:00
Lars Ingebrigtsen
2e4c63664d
Buffer-menu-select doc string clarification
...
* lisp/buff-menu.el (Buffer-menu-select): Document that it removed
the marks (bug#6491).
2020-08-07 12:56:17 +02:00
Eli Zaretskii
92a0667f6b
; * lisp/arc-mode.el (archive-copy-file): Doc fix.
2020-08-07 13:54:39 +03:00
Peder O. Klingenberg
8c4fe52286
* lisp/play/snake.el (snake-null-map): Quit on `q'. (Bug#42731)
2020-08-07 12:23:31 +02:00