Lars Ingebrigtsen [Thu, 30 Sep 2021 07:03:18 +0000 (09:03 +0200)]
Make `newline' check the argument earlier
* lisp/simple.el (newline): Signal an error earlier to avoid
peculiar behaviour after getting a backtrace (bug#50900).
akater [Thu, 30 Sep 2021 06:33:14 +0000 (08:33 +0200)]
Fix regressions in cl-flet indentation
* lisp/emacs-lisp/lisp-mode.el (lisp--local-defform-body-p):
Rename (from -p-less form) and fix indentation regression
introduced by
38037e04cb05cb1f2b604f0b1602d36b0bcf6985
(bug#9622). Also add cl-macrolet cl-flet* cl-symbol-macrolet.
dickmao [Thu, 30 Sep 2021 04:59:10 +0000 (06:59 +0200)]
Fix bootstrap after recent undo-redo change
* lisp/bindings.el (global-map): Don't use `kbd' here -- it breaks
bootstrap (bug#50911).
Amin Bandali [Thu, 30 Sep 2021 03:11:49 +0000 (23:11 -0400)]
Add new '/wii' convenience ERC command
* etc/NEWS: Announce the addition of the command.
* lisp/erc/erc.el (erc-cmd-WII): Add '/wii' convenience command which
calls the '/whois' command with the given nick as both arguments,
which is useful for displaying the whois information for the nick
along with idle time, even if the nick is on a different server than
the one we are currently connected to.
Amin Bandali [Thu, 30 Sep 2021 02:15:07 +0000 (22:15 -0400)]
Restore the previous order of ERC's '/whois' arguments
* etc/NEWS: Remove unneeded entry.
* lisp/erc/erc.el (erc-cmd-WHOIS): Restore the previous order of
arguments sent to the server, so that there's no change in the
function's behavior. Instead, rename the arguments to be more
accurate, and expand upon them in the doc string.
Stefan Kangas [Wed, 29 Sep 2021 23:17:24 +0000 (01:17 +0200)]
New command mpc-goto-playing-song
* lisp/mpc.el (mpc-goto-playing-song): New command to go to the
currently playing song.
(mpc-mode-map): Bind it to "o".
Stefan Kangas [Wed, 29 Sep 2021 18:33:45 +0000 (20:33 +0200)]
* lisp/linum.el: Recommend `display-line-numbers-mode'.
Dmitry Gutov [Wed, 29 Sep 2021 19:44:40 +0000 (22:44 +0300)]
Add bindings for 'undo-redo'
* etc/NEWS: Describe the change.
* lisp/bindings.el (global-map): Add bindings for 'undo-redo'.
* lisp/simple.el (undo-no-redo): Turn into a user option.
Juri Linkov [Wed, 29 Sep 2021 19:40:20 +0000 (22:40 +0300)]
* lisp/tab-bar.el (tab-bar-move-tab-to-frame): Delete frame with last tab.
Adam Porter [Wed, 29 Sep 2021 19:37:38 +0000 (22:37 +0300)]
* lisp/tab-bar.el: (tab-bar-detach-tab) New command
(tab-bar-detach-tab): New command.
(tab-bar-mouse-context-menu): Add menu entry.
With thanks to Matt Beshara <m@mfa.pw> for his feedback.
https://lists.gnu.org/archive/html/emacs-devel/2021-09/msg02141.html
Lars Ingebrigtsen [Wed, 29 Sep 2021 18:48:41 +0000 (20:48 +0200)]
Tweak previous message-newline-and-reformat change
* lisp/gnus/message.el (message-newline-and-reformat): Only search
for previous/next cited lines that have space, because it's the
space we're trying to find.
Lars Ingebrigtsen [Wed, 29 Sep 2021 17:10:00 +0000 (19:10 +0200)]
Cross reference `dired-do-revert-buffer'
* lisp/dired-aux.el (dired-do-copy):
(dired-do-symlink):
(dired-do-hardlink):
(dired-do-rename): Mention `dired-do-revert-buffer'.
Lars Ingebrigtsen [Wed, 29 Sep 2021 17:07:08 +0000 (19:07 +0200)]
Do some NEWS taggin
Stefan Kangas [Wed, 29 Sep 2021 16:59:28 +0000 (18:59 +0200)]
* etc/TODO: Delete ImageMagick items. (Bug#50891)
Lars Ingebrigtsen [Wed, 29 Sep 2021 16:44:41 +0000 (18:44 +0200)]
Make `M-q' in message-mode work better
* lisp/gnus/message.el (message-newline-and-reformat): Fix
bug#43299 differently.
(message-newline-and-reformat): Revert change for bug#43299. This
fixes bug#50842.
Stefan Kangas [Wed, 29 Sep 2021 16:22:43 +0000 (18:22 +0200)]
Force volume to an integer divisible by mpc-volume-step
* lisp/mpc.el (mpc-volume-mouse-set): Force volume to an integer
divisible by 'mpc-volume-step'.
(mpc-volume-step): Add docstring.
Lars Ingebrigtsen [Wed, 29 Sep 2021 15:43:16 +0000 (17:43 +0200)]
Signal an error in `search-forward-help-for-help'
* lisp/help.el (search-forward-help-for-help): Error out instead
of showing an empty buffer (bug#50881).
Lars Ingebrigtsen [Wed, 29 Sep 2021 15:27:20 +0000 (17:27 +0200)]
Add a comment about bug#50877 for gnus-set-difference
Lars Ingebrigtsen [Wed, 29 Sep 2021 15:25:01 +0000 (17:25 +0200)]
Revert "Obsolete local set difference functions in favor of seq-difference"
This reverts commit
20f7fa691b7c2859b96550d9ccb326bf394e160d.
gnus-set-difference is orders of magnitude faster than seq-difference
(on these sets), and using seq-difference makes nnimap too
slow.
Michael Albinus [Wed, 29 Sep 2021 12:51:39 +0000 (14:51 +0200)]
* test/Makefile.in (WRITE_LOG): Add emacs-module-tests as problematic.
Protesilaos Stavrou [Wed, 29 Sep 2021 08:40:32 +0000 (11:40 +0300)]
Update modus-themes to version 1.6.0
* doc/misc/modus-themes.org (Customization Options): Document new user
options in code sample.
(Option for inhibiting theme reload): Remove trailing space.
(Option for mode line presentation): Include new possible value.
(Option for Org agenda constructs): Include new symbols for the
'modus-themes-org-agenda' alist.
(Control the scale of headings): Document 'modus-themes-scale-small'.
(Override color saturation (DIY)): Fix markup for proper texi output.
(Custom Org user faces (DIY)): Update code samples.
(Full support for packages or face groups): Note names of newly
supported packages or face groups.
(Indirectly covered packages): Document indirectly supported packages.
(Note on highlight-parentheses.el): Provide detailed instructions on
how to use 'highlight-parentheses' with the Modus themes.
(Note on prism.el): Refine code samples.
(What is the best setup for legibility?): Minor rewording.
(Sources of the themes): Mention only Emacs28 without explaining that
it is the development target---in preparation of the emacs-28 branch
cut.
(Acknowledgements): Name new contributors to code/ideas. Stephen
Gildea's patch was a couple lines long. The others have assigned
copyright to the FSF.
(Meta): Include another link to the development notes of the themes
about 'modus-themes-org-agenda'.
* etc/themes/modus-operandi-theme.el,
etc/themes/modus-vivendi-theme.el: Bump file version.
* etc/themes/modus-themes.el (modus-themes-operandi-colors)
(modus-themes-vivendi-colors): Recalibrate some colour values and add
a few new ones.
(modus-themes-slanted-constructs): Remove obsolete user option.
Superseded by the alias 'modus-themes-italic-constructs'.
(modus-themes-org-agenda, modus-themes-mode-line): Update user option.
(modus-themes-scale-headings, modus-themes-scale-4): Update doc
string.
(modus-themes-scale-5): Remove obsolete user option. Superseded by
the alias 'modus-themes-scale-title'.
(modus-themes-scale-small, modus-themes-tabs-accented): Add new user
option.
(modus-themes--agenda-date, modus-themes--mode-line-attrs)
(modus-themes--tab): Update internal functions.
(modus-themes-faces): Update variousface attributes.
Detailed change log here:
<https://protesilaos.com/codelog/2021-09-29-modus-themes-1-6-0/>.
Philip Kaludercic [Wed, 29 Sep 2021 10:15:18 +0000 (12:15 +0200)]
Remove rcirc-omit-responses-after-join option
The implementation does not work as expected and behaves
unpredictably.
* rcirc.el (rcirc-omit-responses-after-join): Remove option
(rcirc-joined): Remove variable
(rcirc-reconnect): Remove rcirc-joined code
(rcirc-get-buffer-create): Remove rcirc-joined code
(rcirc-print): Remove rcirc-omit-responses-after-join check
* doc/misc/rcirc.texi (Notices): Remove documentation
* etc/NEWS: Remove mention
Stefan Kangas [Wed, 29 Sep 2021 05:04:07 +0000 (07:04 +0200)]
; * etc/NEWS: Re-arrange slightly and fix formatting.
Stefan Kangas [Wed, 29 Sep 2021 05:12:37 +0000 (07:12 +0200)]
New user option mpc-cover-image-re
* lisp/mpc.el (mpc-cover-image-re): New user option.
(mpc-format): Find cover image based on regexp given by above new user
option. Treat "folder.png" as a valid cover image name.
Martin Rudalics [Wed, 29 Sep 2021 08:43:29 +0000 (10:43 +0200)]
Fix 'window-toggle-side-windows' (Bug#50867)
* lisp/window.el (window-toggle-side-windows): Bind
'window-combination-resize' to t around 'window-state-put'
calls (Bug#50867).
Michael Albinus [Wed, 29 Sep 2021 07:48:01 +0000 (09:48 +0200)]
Some inmprovements in emba CI files
* test/infra/Dockerfile.emba: Remove superfluous "make -j4".
* test/infra/gitlab-ci.yml (.test-template): Add 'allow_failure' clause.
(test-all-inotify): Add 'needs' clause.
Juri Linkov [Wed, 29 Sep 2021 07:19:22 +0000 (10:19 +0300)]
* lisp/net/dictionary.el (context-menu-dictionary): Add autoload cookie.
(context-menu-functions): Remove context-menu-dictionary from hook (bug#50552)
Lars Ingebrigtsen [Wed, 29 Sep 2021 06:25:14 +0000 (08:25 +0200)]
Tweak the whitespace before "This is a generic function"
* lisp/emacs-lisp/cl-generic.el (cl--generic-describe): Make the
number of blank lines before this section consistent (whether
there's an indented section before it or not).
Lars Ingebrigtsen [Wed, 29 Sep 2021 05:53:10 +0000 (07:53 +0200)]
Improve the max-specpdl-size doc string
* src/eval.c (syms_of_eval): Mention what "specpdl" means.
Amin Bandali [Wed, 29 Sep 2021 04:44:43 +0000 (00:44 -0400)]
Switch the order of ERC's '/whois' arguments sent to the server
* lisp/erc/erc.el (erc-cmd-WHOIS): Switch the order of 'server' and
'user' arguments sent to the server. Per RFC 1459 and RFC 2812, the
optional 'server' argument command comes before the 'user' argument,
not after. While at it, update the doc string to explain why one may
want to specify the 'server' argument.
* etc/NEWS: Announce the change.
Stefan Kangas [Wed, 29 Sep 2021 04:54:52 +0000 (06:54 +0200)]
* lisp/mpc.el (mpc-format): Fix printing after last format spec.
Amin Bandali [Wed, 29 Sep 2021 03:44:48 +0000 (23:44 -0400)]
Unobsolete erc-compat.el
* lisp/obsolete/erc-compat.el: Move from here...
* lisp/erc/erc-compat.el: ...back to here. ERC will soon be added to
GNU ELPA, and erc-compat.el will be used to provide compatibility
functions and/or variables for using ERC on older Emacsen.
* etc/NEWS: Remove the previously added obsoletion news item.
Stefan Kangas [Wed, 29 Sep 2021 01:48:35 +0000 (03:48 +0200)]
* etc/NEWS: Announce Eshell bookmarks.
Stefan Kangas [Wed, 29 Sep 2021 01:24:10 +0000 (03:24 +0200)]
Add bookmark.el support to eww
* lisp/net/eww.el (eww-bookmark-name, eww-bookmark-make-record)
(eww-bookmark-jump): New defuns.
(eww-mode): Set up bookmark handler.
Dmitry Gutov [Wed, 29 Sep 2021 00:48:27 +0000 (03:48 +0300)]
Enable show-paren-mode by default
* etc/NEWS (https): Mention the change.
* lisp/paren.el (show-paren-mode):
Enable by default, as discussed on emacs-devel.
Stefan Kangas [Tue, 28 Sep 2021 23:37:26 +0000 (01:37 +0200)]
* lisp/net/eww.el (eww-mode): Show keybindings in docstring.
Juri Linkov [Tue, 28 Sep 2021 19:00:41 +0000 (22:00 +0300)]
* lisp/mouse.el (context-menu-map): Fix when menu is a command (bug#50851)
* lisp/help.el (help--analyze-key): Get information at the position
of mouse click such as 'C-h k' on a context menu item (bug#50067).
Stefan Kangas [Tue, 28 Sep 2021 18:45:08 +0000 (20:45 +0200)]
Add shortdoc for text properties
* lisp/emacs-lisp/shortdoc.el (text-properties): New shortdoc.
e for your changes. Lines starting
Stefan Kangas [Tue, 28 Sep 2021 16:38:10 +0000 (18:38 +0200)]
Mention describe-symbol in cl-defstruct docstring
* lisp/emacs-lisp/cl-macs.el (cl-defstruct): Mention 'describe-symbol'
in docstring.
Stefan Kangas [Tue, 28 Sep 2021 16:08:47 +0000 (18:08 +0200)]
Mention cl-describe-type in cl-defstruct docstring
* lisp/emacs-lisp/cl-macs.el (cl-defstruct): Mention
'cl-describe-type' in docstring.
Mattias Engdegård [Tue, 28 Sep 2021 15:00:11 +0000 (17:00 +0200)]
; * test/lisp/electric-tests.el: Reduce python-mode log spam.
Stefan Monnier [Tue, 28 Sep 2021 14:29:27 +0000 (10:29 -0400)]
* lisp/emacs-lisp/map.el: Restore compatibility with Emacs-26
Don't use the new `eql` syntax.
Michael Albinus [Tue, 28 Sep 2021 13:47:01 +0000 (15:47 +0200)]
Adapt tramp-tests.el for macOS
* test/lisp/net/tramp-tests.el (tramp-test29-start-file-process)
(tramp-test30-make-process): Adapt for macOS.
Stefan Kangas [Tue, 28 Sep 2021 13:45:27 +0000 (15:45 +0200)]
* doc/man/emacs.1.in: Add --no-x-resources. (Bug#50855)
Stefan Kangas [Tue, 28 Sep 2021 13:33:39 +0000 (15:33 +0200)]
; * doc/lispref/tips.texi (Programming Tips): Fix markup.
Stefan Kangas [Tue, 28 Sep 2021 12:56:07 +0000 (14:56 +0200)]
Improve coding conventions for error messages
* doc/lispref/tips.texi (Programming Tips): Clarify coding
conventions for error messages to say that an error message can
start with a Lisp symbol. (Bug#50658)
Stefan Kangas [Tue, 28 Sep 2021 12:32:06 +0000 (14:32 +0200)]
Improve docstrings of ert-resource-{directory,file}
* lisp/emacs-lisp/ert-x.el (ert-resource-directory)
(ert-resource-file): Improve docstrings.
Stefan Kangas [Tue, 28 Sep 2021 11:30:02 +0000 (13:30 +0200)]
Signal error on newline in internal--format-docstring-line
* lisp/subr.el (internal--format-docstring-line): Signal error
when trying to fill a line containing a newline.
* lisp/cedet/semantic/decorate/mode.el
(define-semantic-decoration-style):
* lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode):
Don't pass newlines to 'internal--format-docstring-line'.
Eli Zaretskii [Tue, 28 Sep 2021 12:03:38 +0000 (15:03 +0300)]
; * lisp/emacs-lisp/comp.el (batch-native-compile): Don't use non-ASCII.
Eli Zaretskii [Tue, 28 Sep 2021 12:00:50 +0000 (15:00 +0300)]
Make the build of source tarball produce *.eln files
* lisp/emacs-lisp/comp.el (batch-native-compile): Accept an
optional argument; if non-nil, place the .eln file as appropriate
for building a source tarball.
* doc/lispref/compile.texi (Native-Compilation Functions):
Document the new optional argument of 'batch-native-compile'.
* lisp/Makefile.in (.PHONY, $(THEFILE)n) [HAVE_NATIVE_COMP]: New
targets.
* src/Makefile.in (%.eln) [HAVE_NATIVE_COMP]: New recipe.
(all) [HAVE_NATIVE_COMP]: Add ../native-lisp to prerequisites.
(elnlisp) [HAVE_NATIVE_COMP]: New list of *.eln files.
(../native-lisp) [HAVE_NATIVE_COMP]: New recipe.
* src/verbose.mk.in (AM_V_ELN): New macro.
Eli Zaretskii [Tue, 28 Sep 2021 08:18:17 +0000 (11:18 +0300)]
; * lisp/emacs-lisp/comp.el (batch-native-compile): Doc fix.
Eli Zaretskii [Tue, 28 Sep 2021 08:15:43 +0000 (11:15 +0300)]
; * src/lisp.h (enum char_bits): Update the comment.
Lars Ingebrigtsen [Tue, 28 Sep 2021 06:06:31 +0000 (08:06 +0200)]
Adjust ispell-look-command type
* lisp/textmodes/ispell.el (ispell-look-command): Adjust :type
after previous change.
André A. Gomes [Tue, 28 Sep 2021 05:51:14 +0000 (07:51 +0200)]
Fix search of the look program
* lisp/textmodes/ispell.el (ispell-look-command): Fix logic
concerning the existence of the look program (bug#50852) -- search
through the executable path.
(ispell-look-p): Adjust logic.
Lars Ingebrigtsen [Tue, 28 Sep 2021 04:49:03 +0000 (06:49 +0200)]
Use ert-resource-file in the shorthand tests
Also move to the standard directory naming.
Stefan Kangas [Sat, 25 Sep 2021 23:20:55 +0000 (01:20 +0200)]
checkdoc: Allow Lisp symbols to start a message
* lisp/emacs-lisp/checkdoc.el (checkdoc-message-text-engine): Allow
Lisp symbols to start a message.
(checkdoc--error-bad-format-p): New helper function.
* test/lisp/emacs-lisp/checkdoc-tests.el
(checkdoc-test-error-format-is-good)
(checkdoc-test-error-format-is-bad): New helper functions.
(checkdoc-tests-error-message-bad-format-p)
(checkdoc-tests-error-message-bad-format-p/defined-symbols)
(checkdoc-tests-error-message-bad-format-p/not-capitalized):
New tests.
Ken Brown [Mon, 27 Sep 2021 18:46:41 +0000 (14:46 -0400)]
Make .eln files executable on Cygwin
* Makefile.in (INSTALL_ELN): New variable, equal to $(INSTALL) on
Cygwin and $(INSTALL_DATA) on other platforms.
(install-eln): Use INSTALL_ELN instead of INSTALL_DATA.
(Bug#50818)
Michael Albinus [Mon, 27 Sep 2021 18:36:12 +0000 (20:36 +0200)]
; Still more instrumentation on autorevert-tests.el
Michael Albinus [Mon, 27 Sep 2021 18:35:31 +0000 (20:35 +0200)]
Simplify `file-notify--rm-descriptor'
* lisp/filenotify.el (file-notify--rm-descriptor):
Use `file-notify-handle-event'.
Robert Pluim [Mon, 27 Sep 2021 16:28:11 +0000 (18:28 +0200)]
; * etc/NEWS: fix errors in previous changes
Juri Linkov [Mon, 27 Sep 2021 15:41:34 +0000 (18:41 +0300)]
* lisp/mouse.el (context-menu-region): Check for nil for char-after at eobp.
Mattias Engdegård [Mon, 27 Sep 2021 14:00:32 +0000 (16:00 +0200)]
* lisp/progmodes/flymake.el (flymake-menu): Don't use obsolete name.
Alan Third [Mon, 27 Sep 2021 13:23:02 +0000 (14:23 +0100)]
Fix GNUstep build failure
* src/nsfns.m (Fns_hide_emacs): NSRunningApplication is only available
in GNUstep 0.27 and above.
Robert Pluim [Mon, 27 Sep 2021 12:42:18 +0000 (14:42 +0200)]
Document 'glyphless-char-display-control' changes
* etc/NEWS: Document 'glyphless-char-display-control' changes for
Variation Selectors.
Robert Pluim [Mon, 27 Sep 2021 12:37:28 +0000 (14:37 +0200)]
Try to be consistent about user options in NEWS
* etc/NEWS: Try to be consistent about calling 'user options' that
instead of 'variables'.
Alan Third [Mon, 27 Sep 2021 12:33:49 +0000 (13:33 +0100)]
Fix resizing glitches in NS port (bug#50413)
* src/nsterm.m ([EmacsView resizeWithOldSuperviewSize:]): Use the
superview's size instead of trusting the view's size.
Michael Albinus [Mon, 27 Sep 2021 12:28:50 +0000 (14:28 +0200)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Michael Albinus [Mon, 27 Sep 2021 12:28:32 +0000 (14:28 +0200)]
; More instrumentation in autorevert-tests.el
* test/lisp/autorevert-tests.el
(auto-revert-test--instrument-kill-buffer-hook): New defun.
(auto-revert-test05-global-notify): More instrumentation.
Stefan Kangas [Mon, 27 Sep 2021 10:40:04 +0000 (12:40 +0200)]
; Update some links to HTTPS and note some broken links
Alan Third [Mon, 27 Sep 2021 09:50:02 +0000 (10:50 +0100)]
Attempt to debug a graphical glitch on macOS
* src/nsterm.m (ns_scroll_run):
(ns_shift_glyphs_for_insert): Switch to using NSPoint for destination.
([EmacsView copyRect:to:]): Use NSPoint for the destination, always
use the view's layer, and log any questionable copy requests.
Alan Third [Sun, 26 Sep 2021 10:12:48 +0000 (11:12 +0100)]
Fix NS toolbar again (bug#50534)
* src/nsmenu.m (free_frame_tool_bar): Remove toolbar.
(update_frame_tool_bar_1): New function.
(update_frame_tool_bar): Move most of the functionality to
update_frame_tool_bar_1.
* src/nsterm.h: Definitions of functions and methods.
* src/nsterm.m (ns_update_begin):
([EmacsView windowDidEnterFullScreen]):
([EmacsView windowDidExitFullScreen]): We no longer need to reset the
toolbar visibility as that's done when we create the new fullscreen
window.
([EmacsWindow initWithEmacsFrame:fullscreen:screen:]): Move the check
for undecorated frames into createToolbar:.
([EmacsWindow createToolbar:]): Check whether a toolbar should be
created, and run the toolbar update immediately.
Stefan Kangas [Mon, 27 Sep 2021 09:26:31 +0000 (11:26 +0200)]
Fix automatic filling of docstring in cl-defstruct
* lisp/emacs-lisp/cl-macs.el (cl-defstruct): Fix bug where a paragraph
was filled as if it were a single line, which led to garbled
output in the docstring. (Bug#50839)
* test/lisp/subr-tests.el
(subr-test-internal--format-docstring-line): New test.
Eli Zaretskii [Mon, 27 Sep 2021 09:28:54 +0000 (12:28 +0300)]
Minor fix in 'w32-find-non-USB-fonts'
* lisp/term/w32-win.el (w32--filter-USB-scripts): Handle
representative characters given as a vector, not a list.
Basil L. Contovounesios [Mon, 27 Sep 2021 09:20:54 +0000 (10:20 +0100)]
; Fix compilation of doc/lispref/symbols.texi.
João Távora [Mon, 27 Sep 2021 09:19:35 +0000 (10:19 +0100)]
* etc/NEWS (Shorthands for Lisp symbols): Reword.
Robert Pluim [Sun, 26 Sep 2021 15:26:22 +0000 (17:26 +0200)]
Enhance font_range to check for emoji composition triggers
If the codepoint that triggered composition is from the emoji script,
use the emoji font to check the string being composed, rather than the
font of the first character of the string. This makes e.g.
"emoji codepoint with Emoji_Presentation = No followed by VS-16 (FE0F)"
display the emoji version of the glyph for that codepoint.
* admin/unidata/blocks.awk: Add VS-1 through VS-16 to the emoji
script.
* src/composite.c (autocmp_chars): Accept additional argument CH for
the codepoint that triggered composition, pass it to font_range.
(composition_reseat_it, find_automatic_composition): Pass codepoint
that triggered composition to autocmp_chars.
* src/font.c (font_range): Accept additional argument CH for the
triggering codepoint. If the codepoint is from the 'emoji' script,
use Vscript_representative_chars to find the font to use for the
composition attempt.
(syms_of_font): Add Qemoji symbol.
* src/font.h: Update font_range prototype for argument CH.
* etc/NEWS: Announce change.
Lars Ingebrigtsen [Mon, 27 Sep 2021 07:33:56 +0000 (09:33 +0200)]
Fix checkdoc-related test failure
Lars Ingebrigtsen [Mon, 27 Sep 2021 07:28:34 +0000 (09:28 +0200)]
Fix two doc-related test failures
Michael Albinus [Mon, 27 Sep 2021 07:22:10 +0000 (09:22 +0200)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Michael Albinus [Mon, 27 Sep 2021 07:21:53 +0000 (09:21 +0200)]
Optimize emba builds
* test/infra/Dockerfile.emba (emacs-base): Install also
libdbus-1-dev and libacl1-dev.
* test/infra/gitlab-ci.yml (prep-image-base): Comment out. This
stage is activated by default in Dockerfile.emba.
Eli Zaretskii [Mon, 27 Sep 2021 07:20:54 +0000 (10:20 +0300)]
Minor stylistic fixes of shorthand code in C
* src/lread.c (oblookup_considering_shorthand): Now static. Move
prototype to where it belongs.
(read1, Fintern, Fintern_soft, Funintern)
(oblookup_considering_shorthand, syms_of_lread): Fix style of
braces and indentation, comments, and doc strings.
Eli Zaretskii [Mon, 27 Sep 2021 06:49:28 +0000 (09:49 +0300)]
Minor fixes of Lisp doc strings for shorthands feature
* lisp/progmodes/elisp-mode.el (obarray-cache)
(elisp--completion-local-symbols):
* lisp/international/mule.el (hack-elisp-shorthands)
(load-with-shorthands-and-code-conversion): Doc string fixes.
Eli Zaretskii [Mon, 27 Sep 2021 06:37:33 +0000 (09:37 +0300)]
Minor fixes in documentation of shorthands
* etc/NEWS:
* doc/lispref/symbols.texi (Symbol Components, Creating Symbols)
(Shorthands): Improve wording, fix indexing and typos.
Lars Ingebrigtsen [Mon, 27 Sep 2021 06:15:24 +0000 (08:15 +0200)]
Make comint understand the ccrypt password phrases
* lisp/comint.el (comint-password-prompt-regexp): Add the ccrypt
confirmation phrase (bug#50837).
* lisp/international/mule-conf.el (password-word-equivalents): Add
the ccrypt phrases.
Lars Ingebrigtsen [Mon, 27 Sep 2021 05:55:37 +0000 (07:55 +0200)]
Add "passwd" (change password) prompt to comint
* lisp/comint.el (comint-password-prompt-regexp): Add "passwd" (to
change the password) first promp in Debian bullseye.
Lars Ingebrigtsen [Mon, 27 Sep 2021 04:12:53 +0000 (06:12 +0200)]
Note that the Packaging sub-nodes are mostly for maintainers
* doc/lispref/package.texi (Packaging): Note that the information
is mostly for ELPA maintainers (bug#50825).
dickmao [Sun, 26 Sep 2021 19:48:04 +0000 (15:48 -0400)]
Get a `package-test-signed` to work again
The test signing key succumbed to either expiration or bitrot.
I hope I didn't just publish my secret key to the world.
* test/lisp/emacs-lisp/package-resources/key.pub: Refresh.
* test/lisp/emacs-lisp/package-resources/key.sec: Refresh.
Lars Ingebrigtsen [Mon, 27 Sep 2021 03:57:04 +0000 (05:57 +0200)]
Move test-cl-flet-indentation to the right file
Lars Ingebrigtsen [Sun, 26 Sep 2021 07:05:38 +0000 (09:05 +0200)]
Improve describe-char buffer extremely slightly
* lisp/descr-text.el (describe-char): Add a colon to further
signify that we're talking about the following line (bug#50795).
João Távora [Thu, 23 Sep 2021 16:45:24 +0000 (17:45 +0100)]
Document shorthands in the Elisp manual section on Symbols
* doc/lispref/symbols.texi (Symbol Components): Mentione "Shorthands".
(Creating Symbols): Mention shorthands. Correct references to Common
Lisp.
(Shorthands): New section.
* etc/NEWS (Shorthands): New entry.
João Távora [Wed, 22 Sep 2021 22:53:15 +0000 (23:53 +0100)]
Add #_ reader macro to escape shorthand renaming
* src/lread.c (read1): Add skip_shorthand variable. Add a '#_'
case. If skip_shorthand call oblookup instead of
oblookup_considering_shorthand.
* test/lisp/progmodes/elisp-mode-tests.el
(elisp-shorthand-escape): New test.
* test/lisp/progmodes/elisp-resources/simple-shorthand-test.el
(#_f-test4---): New fixture function.
João Távora [Tue, 21 Sep 2021 21:20:17 +0000 (22:20 +0100)]
Consider shorthands in Elisp's elisp-completion-at-point
Instead of referencing obarray directly, that function has to consider
a collection of completions which includes the shorthand versions of
some of the symbols. That collection changes from buffer to buffer,
depending on the choice of elisp-shorthands.
To make this process efficient, and avoid needless recalculation of
the above collection, a new obarray-specific cache was invented. The
Elisp variable obarray-cache is immediately nullified if something
touches the obarray.
* lisp/progmodes/elisp-mode.el : New helper.
(elisp-completion-at-point): Use new helpers.
(elisp--completion-local-symbols)
(elisp--fboundp-considering-shorthands)
(elisp--bboundp-considering-shorthands): New helpers
* src/lread.c (intern_driver): Nullify Qobarray_cache.
(syms_of_lread): Add Qobarray_cache.
* test/lisp/progmodes/elisp-mode-tests.el
(elisp-shorthand-completion-at-point): New test.
* test/lisp/progmodes/elisp-resources/simple-shorthand-test.el
(f-test-complete-me): New fixture.
João Távora [Wed, 23 Dec 2020 19:57:27 +0000 (19:57 +0000)]
Rework Elisp shorthands to only allow only prefix substitution
This simplification in requirements makes for more complex C code but
that code is much less wasteful in Lisp strings than the previous
implementation.
* src/lread.c (read1): Rework.
(Fintern): Rework.
(Fintern_soft): Rework.
(Funintern): Rework.
(oblookup_considering_shorthand): Rewrite.
* test/lisp/progmodes/elisp-mode-tests.el (elisp-shorthand-read-buffer)
(elisp-shorthand-read-from-string): Use new format of
elisp-shorthands.
* test/lisp/progmodes/elisp-resources/simple-shorthand-test.el (f-test)
(f-test2, f-test3): Use new form of elisp-shorthands.
João Távora [Sat, 19 Sep 2020 21:16:38 +0000 (22:16 +0100)]
Move most of the shorthand implementation to C code
It passes the tests designed for the previous Elisp implementation.
Likely, this isn't the final form of the implementation. For one, the
reader is much slower and allocates a Lisp string for every atom read,
regardless if its already interned or not. This has the potential to
be catastrophic in terms of GC.
Also rename the main variable to elisp-shorthands, from the
repetitive shorthand-shorthands.
For some reason, I had to put 'hack-elisp-shorthands' and
'load-with-shorthands-and-code-conversion', the new source-file
loading functions, in lisp/international/mule.el.
Otherwise, lisp/loadup.el wouldn't see them, for some reason that I
didn't investigate. This should probably be fixed.
* lisp/shorthand.el: Remove.
* test/lisp/shorthand-tests.el: Remove.
* src/lread.c:
(read1, Fintern, Fintern_soft, Funintern): Use
oblookup_considering_shorthand.
(oblookup_considering_shorthand): New helper.
(syms_of_lread): Declare elisp-shorthands.
* lisp/progmodes/elisp-mode.el (elisp-shorthands):
Put a safe-local-variable spec.
* test/lisp/progmodes/elisp-mode-tests.el (elisp-shorthand-read-buffer)
(elisp-shorthand-read-from-string)
(elisp-shorthand-byte-compile-a-file)
(elisp-shorthand-load-a-file): New tests.
* test/lisp/progmodes/elisp-resources/simple-shorthand-test.el: New file
* lisp/loadup.el (load-source-file-function): Set to
load-with-shorthands-and-code-conversion.
* lisp/international/mule.el (hack-elisp-shorthands): Move here.
(load-with-shorthands-and-code-conversion): And here.
João Távora [Wed, 26 Aug 2020 20:29:15 +0000 (21:29 +0100)]
First Elisp version of lisp/shorthand.el, failing some tests
* lisp/shorthand.el: New file
* test/lisp/shorthand-tests.el: New file
Stefan Kangas [Sun, 26 Sep 2021 18:56:36 +0000 (20:56 +0200)]
Add 'doc-string' declaration to defcalcmodevar
* lisp/calc/calc.el (defcalcmodevar): Add 'doc-string' declaration.
Stefan Kangas [Sun, 26 Sep 2021 18:34:34 +0000 (20:34 +0200)]
Move two incorrectly named test files
* test/lisp/emacs-lisp/tabulated-list-test.el: Move from here...
* test/lisp/emacs-lisp/tabulated-list-tests.el: ...to here.
* test/lisp/url/url-handlers-test.el: Move from here...
* test/lisp/url/url-handlers-tests.el: ...to here.
Stefan Kangas [Sun, 26 Sep 2021 18:20:20 +0000 (20:20 +0200)]
checkdoc: Don't add "Commentary" header to test files
* lisp/emacs-lisp/checkdoc.el (checkdoc-file-comments-engine):
Don't add "Commentary:" header if it looks like a test file.
Robert Pluim [Fri, 24 Sep 2021 12:13:24 +0000 (14:13 +0200)]
Add glyphless-char-display-control for Variation Selectors
* lisp/international/characters.el (update-glyphless-char-display):
(glyphless-char-display-control): Add control knob for U+FE00 through
U+FE0F, defaulting to 'thin-space'.
* doc/lispref/display.texi (Glyphless Chars): Document it.
Stefan Kangas [Sun, 26 Sep 2021 16:14:27 +0000 (18:14 +0200)]
Explicitly make the rest of erc-compat.el obsolete
* lisp/obsolete/erc-compat.el (erc-decode-coding-string)
(erc-encode-coding-string, erc-set-write-file-functions)
(erc-emacs-build-time, erc-replace-match-subexpression-in-string)
(erc-member-if, erc-delete-if, erc-remove-if-not, erc-subseq):
Explicitly declare obsolete.
(erc-define-minor-mode): Make into obsolete function alias for
'define-minor-mode'.
(erc-user-emacs-directory): Make into obsolete variable alias for
'user-emacs-directory'.