aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Use the new error API functionsfeature/error-APIStefan Monnier5 hours14-84/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/epa-file.el (epa-file--find-file-not-found-function): Use `error-slot-value` and `error-data`. (epa-file-insert-file-contents): Use `error-has-type-p`, `error-slot-value`, and `error-data`. * lisp/jka-compr.el (jka-compr-insert-file-contents): Use `error-has-type-p` and `error-slot-value` as well as new re-signaling form of `signal`. * lisp/simple.el (minibuffer-error-function): Use `error-has-type-p`. * lisp/startup.el (startup--load-user-init-file): Use `error-message-string`. (command-line): Use `error-has-type-p` and `error-message-string`. * lisp/type-break.el (type-break-demo-life): Use `error-message-string`. * lisp/emacs-lisp/bytecomp.el (batch-byte-compile-file): Use `error-message-string` and `error-has-type-p`. * lisp/emacs-lisp/edebug.el (edebug-safe-eval, edebug-report-error) (edebug-eval-expression): * lisp/emacs-lisp/debug.el (debugger-eval-expression): Use `error-message-string`. * lisp/emacs-lisp/ert.el (ert--should-error-handle-error): Use `error-has-type-p` and `error-type`. * lisp/net/sasl.el (sasl-error): Use `define-error`. * lisp/net/tramp-compat.el (tramp-error-type-p): New function. (tramp-permission-denied, tramp-compat-permission-denied): Use it. * lisp/progmodes/elisp-mode.el (elisp-completion-at-point): Use `error-type-p`.
* Fix `signal` calls where the data argument is not a listStefan Monnier5 hours6-13/+19
| | | | | | | | | | | * test/src/thread-tests.el (threads-join-error): * test/src/emacs-module-resources/mod-test.c (Fmod_test_signal): * src/print.c (print_bind_overrides): * lisp/url/url-future.el (url-future-finish, url-future-errored) (url-future-call, url-future-cancel): Make sure signal's data is a list. * test/src/emacs-module-tests.el (mod-test-non-local-exit-signal-test): Adjust accordingly.
* Improve the error APIStefan Monnier9 hours3-9/+76
| | | | | | | | | | | | | | | | | | | | Define new functions to manipulate error descriptors and add support for `signal` to *re*signal a previous error. * src/eval.c (Fsignal): Make the second arg optional and document the possibility of passing a whole error descriptor to re-signal it. (signal_or_quit): Fix a few corner case issues when DATA is `nil` and ERROR_SYMBOL is an error descriptor. * lisp/subr.el (error-type-p, error--p, error-type, error-data) (error-has-type-p, error-slot-value): New function. * doc/lispref/control.texi (Handling Errors): Prefer "error descriptor" to "error description". Use the new single-arg call to `signal` to re-throw an error. Document `error-type`, `error-data` and `error-slot-value`. (Error Symbols): Document the new functions `error-type-p` and `error-has-type-p`.
* Mention newcomers theme on 'normal-mouse-startup-screen'Philip Kaludercic14 hours1-21/+27
| | | | | | | * lisp/startup.el (startup-insert-newcomers-theme): Factor out new function from 'normal-no-mouse-startup-screen'. (normal-mouse-startup-screen, normal-no-mouse-startup-screen): Call new function.
* cl-seq.el: Prefer `:test` to `:if`Stefan Monnier14 hours1-24/+24
| | | | | | | | | | | * lisp/emacs-lisp/cl-seq.el (cl-remove-if, cl-remove-if-not) (cl-delete-if, cl-delete-if-not, cl-substitute-if) (cl-substitute-if-not, cl-nsubstitute-if, cl-nsubstitute-if-not) (cl-find-if, cl-find-if-not, cl-position-if, cl-position-if-not) (cl-count-if, cl-count-if-not, cl-member-if, cl-member-if-not) (cl-assoc-if, cl-assoc-if-not, cl-rassoc-if, cl-rassoc-if-not) (cl-subst-if, cl-subst-if-not, cl-nsubst-if, cl-nsubst-if-not): Prefer the Common Lisp standard `:test` to the cl-lib specific `:if`.
* ; Fix documentation of 'emacs-news-mode' commandsEli Zaretskii14 hours1-9/+27
| | | | | | | | * lisp/textmodes/emacs-news-mode.el (emacs-news-next-untagged-entry) (emacs-news-previous-untagged-entry, emacs-news-cycle-tag) (emacs-news-count-untagged-entries, emacs-news-goto-section) (emacs-news-find-heading, emacs-news-open-line) (emacs-news-delete-temporary-markers): Doc fixes. (Bug#80569)
* iso-transl.el: Revert cosmetic changeStefan Monnier16 hours1-12/+16
| | | | | * lisp/international/iso-transl.el (iso-transl-char-map): Re-add ineffective backslashes removed in in previous patch.
* ; recentf-exclude-file-by-extension-p: Restore and-let*.Sean Whitton17 hours1-1/+1
|
* * lisp/textmodes/fill.el (unfill-paragraph): Fix for wide chars.Sean Whitton17 hours1-1/+3
|
* * lisp/files.el (auto-mode-alist): Recognize /etc/profile as sh.shynur17 hours1-0/+2
|
* ; * doc/lispintro/emacs-lisp-intro.texi (Lists diagrammed): Fix last change.Eli Zaretskii19 hours1-1/+0
|
* Use images in Emacs Lisp Intro manual (bug#80519)Eli Zaretskii19 hours22-190/+111
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispintro/emacs-lisp-intro.texi (Lists diagrammed) (Symbols as Chest, kill-ring-yank-pointer, lambda): Use @image and remove ASCII-art diagrams, which are now on separate *.txt files. (header): Remove print-postscript-figures and its commentary. * doc/lispintro/Makefile.in (auxfiles): New file list. (${buildinfodir}/%.txt, ${buildinfodir}/%.png): New targets. (${buildinfodir}/eintr.info): Depend on ${auxfiles}. (infoclean): Remove ${auxfiles}. * doc/lispintro/cons-1.png: * doc/lispintro/cons-1.txt: * doc/lispintro/cons-2.png: * doc/lispintro/cons-2.txt: * doc/lispintro/cons-2a.png: * doc/lispintro/cons-2a.txt: * doc/lispintro/cons-3.png: * doc/lispintro/cons-3.txt: * doc/lispintro/cons-4.png: * doc/lispintro/cons-4.txt: * doc/lispintro/cons-5.png: * doc/lispintro/cons-5.txt: * doc/lispintro/drawers.png: * doc/lispintro/drawers.txt: * doc/lispintro/lambda-1.png: * doc/lispintro/lambda-1.txt: * doc/lispintro/lambda-2.png: * doc/lispintro/lambda-2.txt: * doc/lispintro/lambda-3.png: * doc/lispintro/lambda-3.txt: New files, from Matto Fransen <matto@matto.nl>.
* Fix mpuz under text-scalingEli Zaretskii22 hours1-1/+2
| | | | | * lisp/play/mpuz.el (mpuz-switch-to-window): Don't unconditionally turn on 'mpuz-mode', as that kills all local variables. (Bug#80567)
* iso-transl.el: Remove ineffective backslashes in previous patchStefan Monnier39 hours1-12/+12
| | | | | * lisp/international/iso-transl.el (iso-transl-char-map): Remove ineffective backslashes in previous patch.
* Add "C-x 8" commands for letters with breeveEli Zaretskii43 hours1-0/+12
| | | | | * lisp/international/iso-transl.el (iso-transl-char-map): Add Latin letters with breve. (Bug#80515)
* Fix infloop when decoding incomplete embedded UTF-8 inputPip Cet45 hours1-1/+5
| | | | | * src/coding.c (decode_coding_iso_2022): Record conversion result for incomplete data.
* Improve Python setup codes to avoid leaving global nameskobarity45 hours1-13/+21
| | | | | * lisp/progmodes/python.el (python-shell-setup-code) (python-shell-readline-detect): Improve Python code. (Bug#80551)
* ; * admin/authors.el (authors-aliases): Improve one entry.Eli Zaretskii45 hours1-1/+1
|
* Improve documentation of 'define-keymap'Eli Zaretskii47 hours2-3/+7
| | | | | | * lisp/emacs-lisp/shortdoc.el (keymaps): Add example for adding key bindings to an existing keymap. * lisp/keymap.el (define-keymap): Doc fix. (Bug#80556)
* Fix segfaults in 'kbd_buffer_get_event'Eli Zaretskii2 days1-1/+5
| | | | | | * src/keyboard.c (kbd_buffer_get_event): Ignore selection-request events when accessing the frame of an event. Suggested by dick r. chiang <dick.r.chiang@gmail.com>. (Bug#80558)
* ; Move ns_init_colors from Fns_list_colors to emacs.c (bug#80377)Stéphane Marks2 days3-10/+8
| | | | | | | | | | | Support calls to ns_lisp_to_color or Fns_list_colors in headless environments where ns_term_init is not called, and calls before ns_term_init runs. * src/emacs.c (main): Call ns_init_colors when not in dump mode. * src/nsfns.m (ns_init_colors): Make public function. (Fns_list_colors): Remove ns_init_colors call. * src/nsterm.h: extern ns_init_colors.
* ; newcomers-presets: Fix adding to after-save-hook.Sean Whitton3 days1-2/+2
|
* * lisp/recentf.el (recentf-exclude-file-by-extension-p): Fix thinko.Michael Albinus3 days1-4/+6
|
* Additional fixes for 'get-mru-frame' (Bug#80397)Martin Rudalics3 days2-10/+11
| | | | | | * src/frame.c (delete_frame): Call 'get-mru-frame' safely and with EXCLUDE-FRAME argument set up correctly. * lisp/frame.el (get-mru-frames, get-mru-frame): Fix doc-strings.
* Fix last change in recentf.elEli Zaretskii3 days2-15/+20
| | | | | | | | | | * lisp/recentf.el (recentf-exclude-ignored-extensions): Doc fix. (recentf-exclude-file-by-extension-p): Rename from `recentf-exclude-ignored-extensions'; all references changed. Doc fix. * etc/NEWS: Improve wording of the entry which announces the above.
* Mention newcomer theme on "no-mouse" splash screenPhilip Kaludercic3 days1-0/+25
| | | | | * lisp/startup.el (normal-no-mouse-startup-screen): Add a button to toggle the "newcomers-presets" theme.
* New user option and function 'recentf-exclude-ignored-extensions'Stéphane Marks3 days2-0/+28
| | | | | | | | | * lisp/recentf.el (recentf-exclude-ignored-extensions): New user option. (recentf-exclude-ignored-extensions): New function. * etc/NEWS: Announce the new option and function. (Bug#80347)
* ; Fix documentation of a recently added user optionEli Zaretskii4 days1-2/+3
| | | | | * lisp/vc/vc-dispatcher.el (vc-display-failed-async-commands): Doc fix. Add a :version tag.
* ; * doc/emacs/vc1-xtra.texi (General VC Options): Fix a typo.Eli Zaretskii4 days1-1/+1
|
* unfill-paragraph: Reimplement in terms of fill-regionSean Whitton4 days1-43/+15
| | | | | * lisp/textmodes/fill.el (unfill-paragraph): Reimplement in terms of fill-region.
* ; Move unfill-paragraph to fill.el. Document it in (elisp)Filling.Sean Whitton4 days5-80/+82
|
* ; * doc/lispref/control.texi (Conditionals): Improve explanation.Sean Whitton4 days1-1/+2
|
* ; * doc/emacs/vc1-xtra.texi (General VC Options): Fix last change.Sean Whitton4 days1-1/+1
|
* New user option vc-display-failed-async-commandsSean Whitton4 days4-5/+39
| | | | | | | | | | | | * lisp/vc/vc-dispatcher.el (vc-display-failed-async-commands): New user option. (vc-do-async-command): Use it. * doc/emacs/vc1-xtra.texi (General VC Options): * etc/NEWS: Document it. * lisp/vc/vc-dispatcher.el (vc-do-command): Adjust message to begin "Failed" not "Done" when command exits non-zero. * lisp/vc/vc.el (vc-checkin): Adjust message to end in "...failed" not "...done" when async command exits non-zero.
* ; Fix indexing in viper.texi.Eli Zaretskii4 days1-520/+533
| | | | | | | | | * doc/misc/viper.texi: Fix weird use of indexing, whereby many index entries were placed _after_ the table which described the functions or variables or keys, or even in the end of a @node describing some subject. The index entries were moved to _before_ the text to which they pertain. Also, fix some incorrect cross-references.
* ; Fix documentation of vc-command-messages.Sean Whitton4 days1-3/+5
|
* vc-do-command: Tidy up some messagingSean Whitton4 days1-13/+16
| | | | | | | * lisp/vc/vc-dispatcher.el (vc--inhibit-message): New defvar, replacing the undeclared vc-inhibit-message. All uses changed. (vc--command-message): New function, factored out. (vc-do-command): Call it.
* Fix segfault introduced by recent 'get-mru-frame' changeMartin Rudalics4 days1-1/+2
| | | | | * src/frame.c (delete_frame): Fix segfault when deleting a frame and 'get-mru-frame' returns that frame.
* Make 'frame-use-time' more reliable. (bug#80397)Stéphane Marks4 days3-61/+106
| | | | | | | | | | | | | Walking the window tree is more reliable than using the selected window. Implement 'get-mru-frame' on top of 'get-mru-frames' using 'frame-use-time'. * lisp/frame.el (frame-use-time): Change to walk the window tree for the specified frame. (get-mru-frames): New defun. (get-mru-frame): Change to call 'get-mru-frames'. * doc/lispref/frames.texi: Update documentation. * etc/NEWS: Update announcement.
* Fix seg fault when image dimensions don't match (bug#80518)Alan Third5 days1-1/+9
| | | | | | * src/image.c (four_corners_best): [USE_CAIRO] Reset the image dimensions to real values. (Fimage_transforms_p): Fix typo.
* Revert "Repair serious breakage in the batch tests."Michael Albinus5 days73-552/+175
| | | | | | | | | | | | | | | | | | | | | | | This reverts commit feac53141577161c32a7a6dfe75399a5ae98a7c1. This patch has deactivated 253 test cases without a sufficient reasoning. Instead it speaks about a shotgun in its commite message. The patch is reverted because - It hasn't been discussed on emacs-devel. It should have, because it is a serious change in our infrastructure (new official tag :nobatch). Any documentation of this change, for example in test/README, is missing. - The proper way to deactivate such tests would have been (skip-when noninteractive) Even better to skip for the respective reasons. - There is no fault report. There is no information about how these tests have failed. Since it hasn't been a problem so far for us, nobody will work on a fix forever.
* (flymake-start): Give a bit more info in the logStefan Monnier5 days1-2/+4
| | | | | * lisp/progmodes/flymake.el (flymake-start): Log the reason why it's disabled when not starting a backend.
* Rename 'any' to 'member-if' and deprecate 'cl-member-if'Sean Whitton5 days13-52/+87
| | | | | | | | | | | | * lisp/subr.el (any): Rename from this ... (member-if): ... to this. All uses changed. (any): New function alias. * lisp/emacs-lisp/cl-seq.el (cl-member-if): Mark obsolete. * lisp/obsolete/cl.el (member-if): Delete obsolete function alias. * doc/lispref/lists.texi (List Elements): * doc/misc/cl.texi (Lists as Sets): * etc/NEWS: Document the change.
* New command 'unfill-paragraph'Sean Whitton5 days3-0/+83
| | | | | | * lisp/simple.el (unfill-paragraph): New command. * doc/emacs/indent.texi (Indentation Commands): * etc/NEWS: Document it.
* ; * lisp/vc/vc.el (vc-print-change-log): Fix last change.Sean Whitton5 days1-1/+1
|
* In 'frame--purify-parameters' fix frame-inherited-parameters (Bug#80536)Stéphane Marks5 days1-2/+4
| | | | | * lisp/frame.el (frame--purify-parameters): 'frame-inherited-parameters' is a parameter list, not an alist.
* ; * doc/emacs/files.texi (Time Stamps): Small wording fix.Stephen Gildea6 days1-1/+1
|
* Revert "Rename 'any' to 'member-if' and deprecate 'cl-member-if'"Mattias Engdegård6 days13-94/+58
| | | | | | This reverts commit 2bdf15f6d8293b21234cd236f39ce68f62e1f6c3. There is no consensus for this change.
* Faster JSON string serialisation (bug#80529)Mattias Engdegård6 days1-5/+9
| | | | | | | | | | | * src/json.c (json_out_string): Optimise for runs of non-special ASCII chars. This seems to be a a substantial performance gain for long strings but a smaller regression for short strings (up to 6 chars or thereabouts, depending on cpu, compiler, and/or C library). Still likely worth it. Suggested by Pavel <cyberkm@gmail.com>.
* Merge branch 'master' of git.sv.gnu.org:/srv/git/emacsMichael Albinus6 days28-175/+454
|\