summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
* Fix backspace in xwidget webkit isearchPo Lu2021-11-071-0/+1
| | | | | * lisp/xwidget.el: Set backspace to xwidget-webkit-isearch-erasing-char (bug#51647).
* Improve xwidget isearch visualsPo Lu2021-11-071-9/+16
| | | | | | | | * lisp/xwidget.el (xwidget-webkit-isearch--update): New argument ONLY-MESSAGE. (xwidget-webkit-isearch-forward) (xwidget-webkit-isearch-backward): Always refresh message. (xwidget-webkit-isearch-mode): Update message when enabling.
* Default to creating new related sessionsPo Lu2021-11-071-5/+7
| | | | | | | | | | | * doc/lispref/display.texi: * etc/NEWS: Document changes. * lisp/xwidget.el (xwidget-insert): Accept an extra RELATED argument. (xwidget-webkit-new-session): Pass current session as RELATED if present. * src/xwidget.c (Fmake_xwidget): Make RELATED argument public.
* Make "open in new window" from an xwidget's context menu workPo Lu2021-11-071-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/commands.texi (Xwidget Events): Document new event type. * doc/lisprefdisplay.texi (Xwidgets): Document new argument to make-xwidget, and new function. * etc/NEWS: Document changes. * lisp/xwidget.el: Bind xwidget-display-event to xwidget-webkit-display-event. (xwidget-webkit-import-widget): New function. (xwidget-webkit-display-event): New command. * src/keyboard.c (kbd_buffer_get_event): New event type. (make_lispy_event): Handle XWIDGET_DISPLAY_EVENTs. (syms_f_keyboard): Define new symbol. * src/termhooks.h (enum event_kind): New enum XWIDGET_DISPLAY_EVENT. * src/xwidget.c (webkit_create_cb) (store_xwidget_display_event) (webkit_ready_to_show) (webkit_create_cb_1, webkit_create_cb) (Fset_xwidget_buffer): New functions. (Fmake_xwidget): Add internal argument RELATED and connect create signal. (syms_of_xwidget): Define now subrs.
* Add xwidget-webkit-isearch to the menu bar and tool barPo Lu2021-11-071-3/+10
| | | | | | | | * lisp/xwidget.el: Add isearch to tool bar and menu bar. (xwidget-webkit-mode-map) (xwidget-webkit-isearch-mode-map): Reorder key definitions so the equivalent key shows up as `C-s' in the menu bar.
* Add xwidget-webkit-isearch-modePo Lu2021-11-071-0/+116
| | | | | | | | | | | | | | | | * etc/NEWS: * doc/emacs/misc.texi: Document changes * lisp/xwidget.el (xwidget-webkit-mode-map): Bind C-s and C-r to webkit isearch. (xwidget-webkit-isearch--string, xwidget-webkit-isearch--is-reverse): New buffer-local variables. (xwidget-webkit-isearch--update, xwidget-webkit-isearch-erasing-char) (xwidget-webkit-isearch-printing-char, xwidget-webkit-isearch-forward) (xwidget-webkit-isearch-backward, xwidget-webkit-isearch-exit): New functions. (xwidget-webkit-isearch-mode-map): New keymap. (xwidget-webkit-isearch-mode): New minor mode.
* Display page titles in xwidget webkit header linePo Lu2021-11-071-0/+6
| | | | | | * lisp/xwidget.el (xwidget-webkit--title): New variable. (xwidget-webkit-callback, xwidget-webkit-mode): Set header line format and associated variables.
* Add xwidget-webkit-copy-selection-as-kill to the menu barPo Lu2021-11-071-1/+4
| | | | | * lisp/xwidget.el: New menu item `xwidget-webkit-copy-selection-as-kill'.
* Add new tool-bar items to xwidget-webkitPo Lu2021-11-071-0/+29
| | | | | | | | * etc/images/README: Update copyright information for new images. * etc/images/connect-to-url.pbm: * etc/images/connect-to-url.xpm: Import new images from GNOME. * lisp/xwidget.el (xwidget-webkit-tool-bar-map): New keymap variable. (xwidget-webkit-mode): Set tool-bar-map to the appropriate map.
* Add a menu to xwidget-webkitPo Lu2021-11-071-0/+19
| | | | * lisp/xwidget.el: Add a menu to xwidget-webkit-mode-map.
* Allow enabling xwidget-webkit-edit-mode via a bindingPo Lu2021-11-071-0/+1
| | | | | | * doc/emacs/misc.texi: Document changes. * lisp/xwidget.el (xwidget-webkit-mode-map): Add shortcut for xwidget-webkit-edit-mode.
* Add xwidget-webkit-edit-mode to make using the WebKit browser easierPo Lu2021-11-071-0/+46
| | | | | | | | | * doc/emacs/misc.texi: Document changes. * etc/NEWS: Document recent changes. * lisp/xwidget.el (xwidget-webkit-pass-command-event): New variable. * lisp/xwidget.el (xwidget-perform-lispy-event): New function declaration. * lisp/xwidget.el (xwidget-webkit-edit-mode): New minor mode.
* Fix pp-emacs-lisp-code for `when' and relatedLars Ingebrigtsen2021-11-071-0/+3
| | | | | * lisp/emacs-lisp/pp.el (pp--format-definition): Skip edebug specs we don't understand at all.
* Fix html-mode--image-yank-handler promptingLars Ingebrigtsen2021-11-071-4/+4
| | | | | * lisp/textmodes/sgml-mode.el (html-mode--image-yank-handler): Fix two format statements and rearrange images.
* Ensure return value of ert-with-temp-directoryStefan Kangas2021-11-071-1/+3
| | | | | | | * lisp/emacs-lisp/ert-x.el (ert-with-temp-file): Ensure return value when :directory is t is the directory name. * test/lisp/emacs-lisp/ert-x-tests.el (ert-x-tests-with-temp-directory): Extend test for the above.
* Add generated suffix to test temp file namesStefan Kangas2021-11-071-7/+22
| | | | | | | | | * lisp/emacs-lisp/ert-x.el (ert-with-temp-file): Add temp file name suffix based on file name of caller. Reflow docstring. (ert--with-temp-file-generate-suffix): New defun. * test/lisp/emacs-lisp/ert-x-tests.el (ert-x-tests--with-temp-file-generate-suffix): New test.
* Fix byte compilation of package built-insdickmao2021-11-071-79/+41
| | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/package.el (package--activate-autoloads-and-load-path): (package--load-files-for-activation): Remove. (package--library-stem): New function, because file-name-sans-extension is insufficient. (package--reload-previously-loaded): New function. (package-activate-1): Reload directly. (package--files-load-history): (package--list-of-conflicts): (package--list-loaded-files): Remove (package-unpack): Adjust call. * test/lisp/emacs-lisp/package-tests.el (macro-builtin-func): Test. (macro-builtin-10-and-90): Test. (package-test-macro-compilation): Test. (package-test-macro-compilation-gz): Test (bug#49708).
* Add new user option eww-url-transformersLars Ingebrigtsen2021-11-071-2/+22
| | | | | | | | | * doc/misc/eww.texi (Advanced): Document it. * lisp/net/eww.el (eww-url-transformers): New user option. (eww-remove-tracking): New default function. (eww--transform-url): Helper function. (eww-follow-link): Use it. (eww): Ditto.
* Expand register-yank-media-handler doc stringLars Ingebrigtsen2021-11-071-1/+5
| | | | * lisp/yank-media.el (register-yank-media-handler): Expand doc string.
* Fix yank-media logic when there's several handlersLars Ingebrigtsen2021-11-071-16/+18
| | | | | * lisp/yank-media.el (yank-media): Fix logic when there's several different handler functions.
* Allow yanking images to html-modeLars Ingebrigtsen2021-11-072-0/+20
| | | | | | | * lisp/net/mailcap.el (mailcap-mime-type-to-extension): Autoload. * lisp/textmodes/sgml-mode.el (html-mode--image-yank-handler): New function. (html-mode): Accept image/*.
* Support yank-media in html-modeLars Ingebrigtsen2021-11-061-0/+6
| | | | | | * lisp/textmodes/sgml-mode.el (html-mode--html-yank-handler): New function. (html-mode): Handle text/html.
* Fix typo in previous yank-media--get-selection changeLars Ingebrigtsen2021-11-061-1/+1
| | | | | * lisp/yank-media.el (yank-media--get-selection): Fix typo in previous change.
* Fix nul-terminated text/* strings from some programsLars Ingebrigtsen2021-11-061-3/+8
| | | | | * lisp/yank-media.el (yank-media--get-selection): Some programs nul-terminate text/* strings. Fix that.
* Make the lambda/closure buttons in `C-h b' say what they doLars Ingebrigtsen2021-11-062-3/+7
| | | | | | | * lisp/button.el (buttonize): Add a help-echo property. * lisp/help.el (help--describe-command): Say what the lambda/closure buttons do.
* Add mouse-face to buttonizeLars Ingebrigtsen2021-11-061-0/+1
| | | | * lisp/button.el (buttonize): Add the highlight mouse-face.
* Add a framework for yanking media into EmacsLars Ingebrigtsen2021-11-062-17/+119
| | | | | | | | | | | | * doc/emacs/killing.texi (Clipboard): Refer to it. * doc/lispref/frames.texi (Yanking Media): Document the mechanism. * lisp/yank-media.el: New file. * lisp/gnus/message.el (message-mode): Register a yank handler for images. (message-insert-screenshot): Factor out image code from here... (message--yank-media-image-handler): ... to here.
* Add new function mailcap-mime-type-to-extensionLars Ingebrigtsen2021-11-061-0/+8
| | | | | * lisp/net/mailcap.el (mailcap-mime-type-to-extension): Add a new helper function to do the reverse of `mailcap-file-name-to-mime-type'.
* New user option image-auto-resize-max-scale-percentStefan Kangas2021-11-061-1/+26
| | | | | | | * lisp/image-mode.el (image-auto-resize-max-scale-percent): New user option to limit how much 'fit-window' will scale up an image. (image--scale-within-limits-p): New function. (image-toggle-display-image): Respect above new user option.
* New command image-transform-fit-to-windowStefan Kangas2021-11-061-17/+40
| | | | | | | | | | | | | | | | | * lisp/image-mode.el (image-auto-resize, image-transform-resize): Add new value 'fit-window', meaning to scale the image up or down to fit the window. (Bug#) (image-transform-fit-to-window): New command. (image-transform-fit-to-height, image-transform-fit-to-width): Make obsolete in favor of above new command. (image-mode-map): Bind "s w" to 'image-transform-fit-to-window'. Move binding for obsolete command 'image-transform-fit-to-width' to "s i". (image-mode-map): Add menu entry for 'image-transform-fit-to-window'. Remove menu entries for above obsolete commands. * doc/emacs/files.texi (Image Mode): Update documentation. (image-transform-fit-both): Doc fix.
* Add outline-minor-mode-use-buttons doc string caveatLars Ingebrigtsen2021-11-061-0/+3
| | | | | * lisp/outline.el (outline-minor-mode-use-buttons): Note that the feature is for special mode buffers only (bug#51629).
* Make `outline-hide-body' work in `C-h b' buffersLars Ingebrigtsen2021-11-061-9/+14
| | | | | | | * lisp/outline.el (outline-flag-region): Update buttons on most outline toggling commands (bug#51629). (outline--fix-up-all-buttons): Take a region as parameter. (outline-cycle-buffer): Adjust call.
* New convenience macros ert-with-temp-(file|directory)Stefan Kangas2021-11-061-0/+72
| | | | | | | | | | | | | | * lisp/emacs-lisp/ert-x.el (ert-with-temp-file) (ert-with-temp-directory): New macros. * test/lisp/emacs-lisp/ert-x-tests.el (ert-x-tests-with-temp-directory) ert-x-tests-with-temp-directory/text-signals-error (ert-x-tests-with-temp-file) (ert-x-tests-with-temp-file/handle-error) (ert-x-tests-with-temp-file/prefix-and-suffix-kwarg) (ert-x-tests-with-temp-file/text-kwarg) (ert-x-tests-with-temp-file/unknown-kwargs-signals-error): New tests.
* Don't send empty lines for unknown commands in ERCF. Jason Park2021-11-061-1/+1
| | | | | | | | * lisp/erc/erc.el (erc-cmd-default): prevent excess trailing newlines from being sent. * test/lisp/erc/erc-tests.el: Update `erc-process-input-line' test to check for excess line feeds with unknown commands.
* Deprecate instead of redefine erc-server-reconnectingF. Jason Park2021-11-062-7/+27
| | | | | | | | | | | | | | | | | | | | * lisp/erc/erc-backend.el (erc-server-reconnecting, erc--server-reconnecting): obsolete and replace the former with new internal variant, which carries a simplified meaning. (erc-server-reconnect-p, erc--server-reconnect-p): Obsolete and replace the former with an internal function, and change behavior to disregard `erc-server-reconnecting' when rendering verdict. (erc-process-sentinel-2): ensure local var `erc--server-reconnecting' is t when timers are scheduled or firing, and nil otherwise, including after retries exhausted. This agrees with the straightforward way `erc-server-reconnecting' has always been used by `erc-cmd-RECONNECT'. (erc-server-connect): set `erc--server-reconnecting'. * lisp/erc/erc.el (erc-cmd-RECONNECT): use `erc--server-reconnecting' instead of `erc-server-reconnecting'.
* Partially revert previous make-separator-line changeLars Ingebrigtsen2021-11-061-4/+10
| | | | | * lisp/simple.el (make-separator-line): Use dashes on displays that don't support underlines (bug#32950).
* Make describe-char include emoji combination descriptionsLars Ingebrigtsen2021-11-061-1/+8
| | | | * lisp/descr-text.el (describe-char): Output emoji descriptions.
* Add emoji insertion support to EmacsLars Ingebrigtsen2021-11-062-0/+642
| | | | | | | | | | | | | | | | | | | * .gitignore: Ignore the generated emoji-labels.el file. * admin/unidata/Makefile.in (${unidir}/emoji-labels.el): Generate the emoji-labels.el file. (gen-clean): Delete it. * admin/unidata/README (https): Note the source for the Unicode file that has emoji categorisations. * admin/unidata/emoji-test.txt: Import another Unicode file. * doc/emacs/mule.texi (Input Methods): Document the new key bindings. * lisp/international/emoji.el: New file. * lisp/international/mule-cmds.el (ctl-x-map): Bind the emoji commands.
* Improve latin-2-postfix and latin-2prefix input methodsEli Zaretskii2021-11-062-6/+22
| | | | | | | * lisp/leim/quail/latin-pre.el ("latin-2-prefix"): * lisp/leim/quail/latin-post.el ("latin-2-postfix"): Add variants of "`s" and "s," for Romanian. Add key bindings for moving between variants, when there are more than one. (Bug#51638)
* Fix an error in 'highlight-confusing-reorderings'Eli Zaretskii2021-11-061-2/+4
| | | | | | * lisp/international/mule-cmds.el (highlight-confusing-reorderings): Don't signal an error when a confusingly-reordered sequence ends at EOB.
* Merge from origin/emacs-28Michael Albinus2021-11-061-100/+135
|\ | | | | | | | | | | | | | | | | | | 5e9b4e70ab Fix dbus-test04-register-method on CentOS (Bug#51369) d96de23510 * lisp/transient.el: Update to package version v0.3.7-11-g... 7343b0d0e4 ; * etc/NEWS: Native compilation is more picky about missi... 0d6b2b0b9d ; * etc/PROBLEMS: Move entry about LLVM plugin to the righ... # Conflicts: # etc/NEWS
| * * lisp/transient.el: Update to package version v0.3.7-11-g7f5520b3.Jonas Bernoulli2021-11-061-100/+135
| |
* | Merge from origin/emacs-28Eli Zaretskii2021-11-061-5/+35
|\| | | | | | | | | | | | | 9bdb1d0 ; * etc/PROBLEMS: Describe a crash in xwidgets due to Bubblew... 550887c ; * etc/PROBLEMS: Rearrange and update the section about cras... c2e3cd6 Clarify "text area of a window" in the documentation 4e7e78d Improve docstring of kmacro-set-format
| * Improve docstring of kmacro-set-formatStefan Kangas2021-11-061-5/+35
| | | | | | | | | | | | | | * lisp/kmacro.el (kmacro-set-format): Improve docstring. (kmacro-insert-counter, kmacro-display-counter) (kmacro-set-counter, kmacro-add-counter): Add cross-references to the info manual.
| * Revert "* lisp/wid-edit.el (widget-field): Add subtle border to face."Stefan Kangas2021-11-051-6/+1
| | | | | | | | | | | | | | This reverts commit 8b024a6ff10f7907445ea60c4db8355638616ed1. This lead to some alignment issues. (Bug#51550) Don't merge to master, where we will continue investigating.
* | Merge from origin/emacs-28Eli Zaretskii2021-11-062-1/+6
|\| | | | | | | | | # Conflicts: # etc/NEWS
| * * lisp/custom.el (defgroup): Document the :prefix keyword.Stefan Kangas2021-11-041-1/+5
| |
| * Document ibuffer-auto-mode in ibuffer-mode doc stringThibault Polge2021-11-041-0/+1
| | | | | | | | | | * lisp/ibuffer.el (ibuffer-mode): Mention ibuffer-auto-mode in the ibuffer-mode doc string (bug#51584).
* | Inhibit isearching over message-insert-screenshot dataLars Ingebrigtsen2021-11-061-1/+2
| | | | | | | | | | * lisp/gnus/message.el (message-insert-screenshot): Inhibit isearch over the image data.
* | Allow 'insert-image' to inhibit isearches or notLars Ingebrigtsen2021-11-061-3/+7
| | | | | | | | | | | | * doc/lispref/display.texi (Showing Images): Mention it. * lisp/image.el (insert-image): Take an optional parameter to inhibit isearch of the STRING argument.