summaryrefslogtreecommitdiff
path: root/etc
Commit message (Collapse)AuthorAgeFilesLines
* ; Grammar fixesRobert Pluim2021-04-161-1/+1
| | | | | | * doc/lispref/display.texi (Size of Displayed Text): Grammar fix. * etc/NEWS: Grammar fix.
* Allow use of em in image spec sizesAlan Third2021-04-151-0/+7
| | | | | | | | | | * src/image.c (image_get_dimension): New function. (compute_image_size): Use image_get_dimension to set the sizes, and pass in the image struct instead of just the spec. (image_set_transform): (imagemagick_load_image): (svg_load_image): Use the image instead of the spec in compute_image_size. (syms_of_image): Add 'em' as a symbol.
* Add condition-case success handler (bug#47677)Mattias Engdegård2021-04-151-0/+6
| | | | | | | | | | | | | | | | | | | | Allow a condition-case handler on the form (:success BODY) to be specified as the success continuation of the protected form, with the specified variable bound to its result. * src/eval.c (Fcondition_case): Update the doc string. (internal_lisp_condition_case): Implement in interpreter. (syms_of_eval): Defsym :success. * lisp/emacs-lisp/bytecomp.el (byte-compile-condition-case): Implement in byte-compiler. * lisp/emacs-lisp/cl-macs.el (cl--self-tco): Allow self-TCO from success handler. * doc/lispref/control.texi (Handling Errors): Update manual. * etc/NEWS: Announce. * test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-tests--test-cases) (bytecomp-condition-case-success): * test/lisp/emacs-lisp/cl-macs-tests.el (cl-macs--labels): Add test cases.
* Add two optional arguments to 'string-width'Eli Zaretskii2021-04-141-0/+5
| | | | | | | | | | | | | | | | | | | * src/character.c (Fstring_width, lisp_string_width): Accept two optional arguments FROM and TO, to indicate the substring to be considered. (Fstring_width): Add caveats in the doc string about display features ignored by the function. (Bug#47712) * src/character.h (lisp_string_width): Update prototype. * src/editfns.c (styled_format): Adjust call of lisp_string_width to its changed signature. * test/src/character-tests.el (character-test-string-width): New file with tests for 'string-width'. * doc/lispref/display.texi (Size of Displayed Text): Document caveats of using 'string-width'. * etc/NEWS: Announce the change.
* * lisp/frame.el (delete-other-frames): Add universal prefix `iconify` argStefan Monnier2021-04-121-0/+3
| | | | | | (frame--current-backround-mode): New function, extracted from `frame-set-background-mode`. Use `color-dark-p`. (frame-set-background-mode): Use it.
* (define-minor-mode): Warn about use of pre-Emacs-21 style argsStefan Monnier2021-04-121-0/+5
| | | | | | | | | * lisp/emacs-lisp/easy-mmode.el (define-minor-mode): Use `advertised-calling-convention` to avoid promoting the old style arguments. Emit a wanring when old-style arguments are used. Massage the docstring accordingly. * doc/lispref/modes.texi (Defining Minor Modes): Document the keyword arguments rather than the old-style positional arguments.
* ; * etc/NEWS: Minor copyedits.Eli Zaretskii2021-04-111-3/+3
|
* Add new icomplete-vertical-modeGregory Heytings2021-04-101-0/+7
| | | | | | | | | | | | | Co-authored-by: João Távora <joaotavora@gmail.com> * lisp/icomplete.el (icomplete-completions): Consider icomplete-vertical-mode. (icomplete-vertical-mode-minibuffer-map): New map. (icomplete--vertical-minibuffer-setup): New helper. (icomplete-vertical-mode): New minor mode. * doc/emacs/buffers.texi (Icomplete): Mention icomplete-vertical-mode. * etc/NEWS: Mention icomplete-vertical-mode
* * etc/NEWS: Extend paragraph about &define form and backtrackingPhilipp Stephani2021-04-101-2/+5
|
* ; * etc/NEWS: Fix the wording of a recently added entry.Eli Zaretskii2021-04-101-8/+9
|
* Add support for --seccomp command-line option.Philipp Stephani2021-04-101-0/+10
| | | | | | | | | | | | | | | | | | | | | | | When passing this option on GNU/Linux, Emacs installs a Secure Computing kernel system call filter. See Bug#45198. * configure.ac: Check for seccomp header. * src/emacs.c (usage_message): Document --seccomp option. (emacs_seccomp): New wrapper for 'seccomp' syscall. (load_seccomp, maybe_load_seccomp): New helper functions. (main): Potentially load seccomp filters during startup. (standard_args): Add --seccomp option. * lisp/startup.el (command-line): Detect and ignore --seccomp option. * test/src/emacs-tests.el (emacs-tests/seccomp/absent-file) (emacs-tests/seccomp/empty-file) (emacs-tests/seccomp/file-too-large) (emacs-tests/seccomp/invalid-file-size): New unit tests. (emacs-tests--with-temp-file): New helper macro. * etc/NEWS: Document new --seccomp option.
* Edebug: Disable backtracking when hitting a &define keyword.Philipp Stephani2021-04-101-0/+3
| | | | | | | | | | | | | | | | | | | Edebug doesn't deal well with backtracking out of definitions, see Bug#41988. Rather than trying to support this rare situation (e.g. by implementing a multipass parser), prevent it by adding an implicit gate. * lisp/emacs-lisp/edebug.el (edebug--match-&-spec-op): Disable backtracking when hitting a &define keyword. * test/lisp/emacs-lisp/edebug-tests.el (edebug-tests-duplicate-&define): New unit test. (edebug-tests--duplicate-&define): New helper macro. * doc/lispref/edebug.texi (Backtracking): Mention &define in the list of constructs that disable backtracking. * etc/NEWS: Document new behavior.
* Revert "Load all generic-x.el modes unconditionally"Stefan Kangas2021-04-091-5/+0
| | | | This reverts commit 0161c9df6edc02db6bd8871b00df522dd0699157.
* User option to move to another match when changing direction in isearch.Gregory Heytings2021-04-081-0/+6
| | | | | | | | | | | | * lisp/isearch.el (isearch-direction-change-changes-match): New user option (bug#47599). (isearch-repeat): Use the new option. (isearch-repeat-forward, isearch-repeat-backward): Adapt to the new option. * etc/NEWS: Mention the new user option. * doc/emacs/search.texi: Document the new user option.
* * lisp/isearch.el (isearch-wrap-pause): New defcustom (bug#47599).Juri Linkov2021-04-061-0/+8
| | | | | (isearch-repeat): Use it. (isearch-search): Don't ding when isearch-wrap-pause is no-ding.
* * lisp/repeat.el (repeat-keep-prefix): New defcustom.Juri Linkov2021-04-061-0/+4
| | | | | | | | | | | | | | * lisp/repeat.el (repeat-map): New autoloaded global variable. (repeat-post-hook): Use 'repeat-map' when non-nil and reset it to nil afterwards. (repeat-post-hook): Keep the current prefix when 'repeat-keep-prefix' is non-nil. * lisp/window.el (other-window-repeat-map): Add "O" that sets 'repeat-map' to 'other-window-repeat-map' before calling '(other-window -1)'. https://lists.gnu.org/archive/html/emacs-devel/2021-03/msg01387.html
* * etc/NEWS: Add entry for new SVG icons in customize.Stefan Kangas2021-04-051-0/+4
|
* Work around librsvg bug (bug#47074)Alan Third2021-04-045-8/+8
| | | | | | | | | | | | Librsvg <= 2.40 has restrictions on how certain numbers can be run together in path elements which do not match the SVG spec. * etc/images/checkbox-mixed.svg: * etc/images/checked.svg: * etc/images/radio-checked.svg: * etc/images/unchecked.svg: Separate problem numbers. * etc/images/radio-mixed.svg: Separate problem numbers and color and font-weight data.
* Make new SVG widgets match character height (bug#47074)Alan Third2021-04-036-6/+6
| | | | | | | | | * etc/images/checkbox-mixed.svg: * etc/images/checked.svg: * etc/images/radio-checked.svg: * etc/images/radio-mixed.svg: * etc/images/radio.svg: * etc/images/unchecked.svg: Use viewBox and set height to 1em.
* Set CSS for SVG filesAlan Third2021-04-031-0/+9
| | | | | | | | | | | | | | | | * src/dispextern.h (struct image): Add font details required for the CSS. * src/image.c (free_image): Free the font family string. (search_image_cache): (uncache_image): Make image caching understand the font details. (lookup_image): Handle the font details when generating the image and looking up the cache. (svg_css_length_to_pixels): Handle 'em' when we know the font size. (svg_load_image): Generate the CSS and apply it to the SVG. (enum svg_keyword_index): (svg_format): (syms_of_image): Add ':css' attribute. * doc/lispref/display.texi (SVG Images): Add details of new svg image attributes.
* Add SVG icons for customize buffersStefan Kangas2021-04-0311-0/+217
| | | | | | | | | | | | | | | | | | | * etc/images/checkbox-mixed.svg: * etc/images/checked.svg: * etc/images/down.svg: * etc/images/left.svg: * etc/images/radio-checked.svg: * etc/images/radio-mixed.svg: * etc/images/radio.svg: * etc/images/right.svg: * etc/images/unchecked.svg: * etc/images/up.svg: New files from the Adwaita Icon Theme (made by the GNOME project). The background color was changed from gray to none to use the same colors as the current face instead. (Bug#47074) * etc/images/README: Add license information for the above new files. * lisp/wid-edit.el (widget-image-conversion): Prefer SVG if it exists. (radio-button): Rename radio buttons to "radio-checked" and "radio". These files did not exist before.
* Merge from origin/emacs-27Glenn Morris2021-03-291-1/+0
|\ | | | | | | | | | | | | | | | | | | | | | | bcc4cc3362 Doc fixes for 'face-foreground' and 'face-background'. bf6442fafd ; * admin/make-tarball.txt: Minor addition to the Web page... 38b127d32e * admin/admin.el (set-version): Handle malformed NEWS markup. 0d7e2a993e admin.el fix for bug#47394 fdec444758 ; * etc/NEWS: Fix typo. 1e6ca2765f ; * admin/make-tarball.txt: Another minor addition. # Conflicts: # etc/NEWS
| * ; * etc/NEWS: Fix typo.Michael Albinus2021-03-251-1/+0
| |
| * Bump Emacs version past 27.2Eli Zaretskii2021-03-251-0/+33
| | | | | | | | | | | | | | | | * README: * configure.ac: * nt/README.W32: * msdos/sed2v2.inp: * etc/NEWS: Bump Emacs version to 27.2.50.
* | File unlock errors now issue warnings (Bug#46397)Matt Armstrong2021-03-271-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The primary idea is to allow `kill-buffer' and `kill-emacs' to complete even if Emacs has trouble unlocking the buffer's file. * lisp/userlock.el (userlock--handle-unlock-error): New function, call `display-error'. * src/filelock.c (unlock_file_body): New function, do what 'unlock_file' used to. (unlock_file_handle_error): New function, call `userlock--handle-unlock-error' with the captured error. (unlock_file): Handle `file-error' conditions by calling the handler defined above. * test/src/filelock-tests.el (filelock-tests-kill-buffer-spoiled): (filelock-tests-unlock-spoiled): Modify to test new behavior.
* | Update rnc to use Open Document's Relax-NG schema to version 1.3Mark A. Hershberger2021-03-253-5340/+6370
| | | | | | | | | | | | | | | | | | | | | | * Use the LibreOffice Relax-NG files since they include a hack to support 1.2. * rng source: https://raw.githubusercontent.com/freedesktop/libreoffice-core/master/ schema/libreoffice/OpenDocument-schema-v1.3%2Blibreoffice.rng * translation to rnc with trang: trang -I rng -O rnc OpenDocument-schema-v1.3+libreoffice.rng \ OpenDocument-schema-v1.3+libreoffice.rnc
* | Add command project-remove-known-projectTheodor Thornhill2021-03-251-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * etc/NEWS: Mention the new command. * lisp/progmodes/project.el (project--remove-from-project-list): Add new argument, report-message, used to signal various messages when removal has happened. * lisp/progmodes/project.el (project-remove-known-project): New command that removes the selected directory from the project-list-file. * lisp/progmodes/project.el (project-current): Add the report message. * doc/emacs/maintaining.text: Add information about the new command to the manual.
* | * lisp/tab-bar.el (tab-bar-tab-post-change-group-functions): New hook.Juri Linkov2021-03-241-1/+3
| | | | | | | | | | (tab-bar-change-tab-group): Run it. (tab-bar-move-tab-to-group): New command for new hook.
* | Use pop-to-buffer-same-window for shellTheodor Thornhill2021-03-211-0/+4
| | | | | | | | | | | | | | | | * lisp/progmodes/project.el (project-shell): Behave the same way as 'M-x project-eshell'. * lisp/shell.el (shell): Behave the same way as 'M-x eshell'. * etc/NEWS: Add news entry describing the change. * lisp/tutorial.el: Use lexical-binding.
* | ; * etc/NEWS: Minor improvement to the last change.Eli Zaretskii2021-03-201-1/+6
| |
* | ; Improve a recent change in NEWSEli Zaretskii2021-03-201-1/+7
| | | | | | | | | | * etc/NEWS: Enhance the description of how to get the old bindings removed with the 'M-o' keymap.
* | * etc/NEWS: Small corrections for the new command 'font-lock-update'Gregory Heytings2021-03-201-3/+3
| |
* | * lisp/emacs-lisp/pcase.el (pcase-compile-patterns): New function (bug#47261)Stefan Monnier2021-03-191-0/+3
| | | | | | | | | | Extracted from `pcase--expand`. (pcase--expand): Use it.
* | Add a note to NEWS as to how to restore the facemenuLars Ingebrigtsen2021-03-191-0/+4
| |
* | * lisp/simple.el (next-error-quit-window): New function (bug#44611).Juri Linkov2021-03-181-0/+6
| | | | | | | | (next-error-found-function): Add it as a choice.
* | Merge from origin/emacs-27Glenn Morris2021-03-182-24/+2
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | d5b160d7cc (tag: emacs-27.2-rc1, origin/emacs-27) Prepare the Emacs 2... 216bd67a4f ; * admin/make-tarball.txt: Advise to remove stale subdire... # Conflicts: # ChangeLog.3 # README # configure.ac # etc/AUTHORS # etc/NEWS # lisp/ldefs-boot.el # msdos/sed2v2.inp # nt/README.W32
| * Prepare the Emacs 27.2 release.emacs-27.2-rc1Eli Zaretskii2021-03-183-39/+23
| | | | | | | | | | | | | | | | | | * etc/HISTORY: Update for Emacs 27.2. * README: * configure.ac: * nt/README.W32: * msdos/sed2v2.inp: Set version to 27.2
| * Update files for 27.1.91 pretestemacs-27.1.91Eli Zaretskii2021-01-291-10/+12
| | | | | | | | | | | | * ChangeLog.3: * etc/AUTHORS * lisp/ldefs-boot.el: Update.
* | Extend handled events in 'while-no-input-ignore-events' (Bug#47205)Michael Albinus2021-03-181-4/+10
| | | | | | | | | | | | | | * etc/NEWS: Mention changes to 'while-no-input-ignore-events'. * src/keyboard.c (kbd_buffer_store_buffered_event): Handle also Qfile_notify and Qdbus_event as ignore_event. (Bug#47205)
* | Don't pre-load facemenuLars Ingebrigtsen2021-03-181-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/facemenu.el (facemenu-add-face-function): Move to avoid a compilation warning. (facemenu-color-alist): Made obsolete. * lisp/faces.el (read-color): Don't use it. * lisp/loadup.el ("emacs-lisp/syntax"): Don't load facemenu. * lisp/wid-edit.el (color): Don't use facemenu-color-alist. (widget-color--choose-action): Require facemenu. (widget-color-action): Ditto. * lisp/progmodes/cperl-mode.el (facemenu): Require. * lisp/textmodes/sgml-mode.el (facemenu): Require.
* | Unbind `M-o' and add new `C-x x f' bindingLars Ingebrigtsen2021-03-181-1/+6
| | | | | | | | | | | | | | | | | | | | | | * doc/lispref/modes.texi (Other Font Lock Variables): `font-lock-fontify-block' is no longer bound. * lisp/bindings.el (ctl-x-x-map): Bind `font-lock-update'. * lisp/font-lock.el (font-lock-update): New command written by Gregory Heytings <gregory@heytings.org>. * lisp/loadup.el: Remove transitional experimental code.
* | * lisp/emacs-lisp/benchmark.el (benchmark-call): New functionStefan Monnier2021-03-171-0/+5
| | | | | | | | | | (benchmark-run, benchmark-run-compiled, benchmark): Use it. (benchmark--adaptive): New internal function.
* | * etc/themes/modus-themes.el: Bump version for GNU ELPA releaseStefan Monnier2021-03-161-1/+15
| | | | | | | | (News:): New section.
* | Add minibuffer input support to commands that set the frame sizeDaniel Martín2021-03-161-0/+4
| | | | | | | | | | | | | | | | | | | | | | * lisp/frame.el (set-frame-property--interactive): Internal function to produce the interactive form of `set-frame-width' and `set-frame-height'. Offer the current size as default. (Bug#9970) * src/frame.c (Fset_frame_height): Modify to call `set-frame-property--interactive'. (Fset_frame_width): Modify to call `set-frame-property--interactive'. * doc/lispref/frames.texi (Frame Size): Update the manuals. * etc/NEWS: Advertise the change (bug#9970).
* | * lisp/tab-bar.el (tab-bar-new-tab-group): New defcustom.Juri Linkov2021-03-151-0/+1
| | | | | | | | (tab-bar--current-tab, tab-bar-new-tab-to, tab-bar-duplicate-tab): Use it.
* | * lisp/tab-bar.el: Tab groups can be displayed with tab-bar-format-tabs-groupsJuri Linkov2021-03-141-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/tab-bar.el (tab-bar-format): Turn defvar into defcustom. Add :options and force-mode-line-update in :set. (tab-bar--format-tab): New function refactored from tab-bar-format-tabs. (tab-bar-format-tabs): Move most of code to tab-bar--format-tab and call it. (tab-bar-tab-group-format-function): New defcustom. (tab-bar-tab-group-format-default): New function. (tab-bar--format-tab-group, tab-bar-format-tabs-groups): New functions. (tab-bar-format-align-right, tab-bar-format-global): Shorten id. (tab-bar-change-tab-group): Add refs to tab-bar-format in docstring.
* | Add help-key-binding styling to wombat themeStefan Kangas2021-03-131-0/+2
| | | | | | | | | | * etc/themes/wombat-theme.el (help-key-binding): Add face definition.
* | Add a new `image-transform-smoothing' user optionLars Ingebrigtsen2021-03-121-0/+6
| | | | | | | | | | | | | | * doc/lispref/display.texi (Image Descriptors): Document it. * lisp/image.el (image-transform-smoothing): New user option. (create-image): Use it. (image--default-smoothing): New function.
* | ; Fix some typos.Basil L. Contovounesios2021-03-111-2/+2
| |
* | Fix wording of a recently added documentationEli Zaretskii2021-03-111-1/+1
| | | | | | | | | | | | * etc/NEWS: * doc/lispref/display.texi (Image Descriptors): Fix wording of the description of :transform-smoothing.