summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix some font parsing problems on NSPo Lu2022-05-031-2/+4
| | | | | * src/nsterm.m (ns_font_desc_to_font_spec): Fix processing of condensed width.
* Handle GraphicsExpose events on scroll barsPo Lu2022-05-031-4/+27
| | | | | | * src/xterm.c (x_scroll_bar_expose): Handle GraphicsExpose events. (handle_one_xevent): Give graphics exposures to scroll bars.
* Make sure rectangles are drawn correctly on XPo Lu2022-05-033-5/+17
| | | | | | | * src/xfaces.c (prepare_face_for_display): Always use line-width of 1. * src/xfns.c (x_make_gc): Likewise. * src/xterm.c (x_scroll_bar_expose): Comment out obsolete code.
* Fix glyphless glyph display on HaikuPo Lu2022-05-031-2/+2
| | | | | | * src/haikuterm.c (haiku_draw_glyphless_glyph_string_foreground): Fix rectangle width.
* Fix font matching of "Fira Code Retina" and "Fira Code Regular" on HaikuPo Lu2022-05-031-2/+6
| | | | | | * src/haiku_font_support.cc (font_family_style_matches_p): Don't allow matches on fonts with an adstyle if none was specified in the input pattern.
* Don't leave temp files behind from undigest-testsGlenn Morris2022-05-021-50/+60
| | | | | | | | | | | Sadly the "temp" in with-temp-file refers to a buffer, not a file. * test/lisp/mail/undigest-tests.el (rmail-undigest-test-rfc934-digest) (rmail-undigest-test-rfc1153-digest-strict) (rmail-undigest-test-rfc1153-less-strict-digest) (rmail-undigest-test-rfc1153-sloppy-digest) (rmail-undigest-test-rfc1521-mime-digest) (rmail-undigest-test-multipart-mixed-digest): Delete temporary files at end.
* Clean up X11 double buffering codePo Lu2022-05-034-51/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes several latent bugs where code went down the path with double buffering enabled when it wasn't, and vice versa. * src/xfns.c (x_set_inhibit_double_buffering): Improve commentary and only define when HAVE_XDBE. (x_mark_frame_dirty): Only set buffer flip flag when HAVE_XDBE. (initial_set_up_x_back_buffer): Clean up coding style and remove unnecessary block_input pair. (Fx_double_buffered_p): Always return nil if !HAVE_XDBE. (x_frame_parm_handlers): Don't set double buffering handler if !HAVE_XDBE. * src/xftfont.c (xftfont_drop_xrender_surfaces, xftfont_driver): Only define when XDBE is available. * src/xterm.c (x_drop_xrender_surfaces): Likewise. (x_clear_window): Don't test double buffering flags when !HAVE_XDBE. (show_back_buffer): Only define when HAVE_XDBE. (x_flip_and_flush): Don't try to flip when !HAVE_XDBE. (XTframe_up_to_date): Likewise. (XTbuffer_flipping_unblocked_hook): Only define when Xdbe is available. (x_clear_area): Don't test double buffering flags when Xdbe is not available. (flush_dirty_back_buffer_on): Don't define if there's no DBE. (handle_one_xevent, x_create_terminal): Likewise. * src/xterm.h (FRAME_X_DRAWABLE): Fix coding style.
* ; * src/nsterm.m (syms_of_nsterm): Fix typo in defsym.Po Lu2022-05-031-1/+1
|
* Fix punctuation in the Eshell manualEli Zaretskii2022-05-021-3/+3
| | | | | * doc/misc/eshell.texi (Argument Predication and Modification): Fix whitespace.
* ; * etc/NEWS: Improve wording of "M-x scratch-buffer" entry.Eli Zaretskii2022-05-021-2/+3
|
* ; Fix typo and wording of a doc stringEli Zaretskii2022-05-021-3/+3
| | | | | * lisp/textmodes/reftex-parse.el (reftex-using-biblatex-p): Fix typo and wording of the doc string.
* Load multiple bibliographies with multibib packageArash Esbati2022-05-021-6/+11
| | | | | | | | * lisp/textmodes/reftex-parse.el (reftex-using-biblatex-p): Recognize 'multibib' which allows multiple bibliography loading macro calls. (reftex-locate-bibliography-files): Prevent possible duplications in bibliography database files.
* Wait for events from all displays in Xm dialogs even on XI2Po Lu2022-05-021-15/+1
| | | | | * src/xfns.c (Fx_file_dialog): Always process events from all displays.
* Make the eval-in-debug error message prettier in non-recursive errorsLars Ingebrigtsen2022-05-021-11/+17
| | | | | * lisp/emacs-lisp/debug.el (debugger-eval-expression): Make the error message (when recursive debugging is off) prettier.
* Make non-recursive error messages in edebug prettierLars Ingebrigtsen2022-05-021-8/+19
| | | | | * lisp/emacs-lisp/edebug.el (edebug-eval-expression): Make the error message (when recursive debugging is off) prettier.
* Fix eldoc interaction with `when' and `unless'Lars Ingebrigtsen2022-05-021-6/+2
| | | | | | | * lisp/subr.el (when, unless): Remove the (fn...) bits from the doc string, because the advertised calling convention is correct the way it is (bug#27229). This also makes eldoc highlight the arguments correctly.
* Add a command to recreate the *scratch* bufferLars Ingebrigtsen2022-05-023-0/+22
| | | | | * doc/emacs/building.texi (Lisp Interaction): Mention it. * lisp/simple.el (scratch-buffer): New command.
* Fix handling double-click-time nil or tStefan Kangas2022-05-027-6/+34
| | | | | | | | | | | | | | * lisp/mouse.el (mouse-double-click-time): New function to always return a number for `double-click-time'. * lisp/emulation/viper-mous.el (viper-multiclick-timeout): * lisp/foldout.el (foldout-mouse-swallow-events): * lisp/help.el (help--read-key-sequence): * lisp/org/org-mouse.el (org-mouse-show-context-menu): Use 'mouse-double-click-time' instead of 'double-click-time'. * src/keyboard.c (syms_of_keyboard): Mention 'mouse-double-click-time' in doc string of 'double-click-time'. * test/lisp/mouse-tests.el (mouse-test-mouse-double-click-time): New test.
* Re-fix Gcc header tokenization in GnusLars Ingebrigtsen2022-05-021-2/+3
| | | | | * lisp/gnus/gnus-msg.el (gnus-inews-do-gcc): Split the Gcc header on commas, but allow group names to contain spaces (bug#55217).
* Allow reusing the *Help* window with `i'/`s/ commandsLars Ingebrigtsen2022-05-025-21/+57
| | | | | | | | | | | | | * doc/emacs/help.texi (Help): Document it. * lisp/help-mode.el (help-function-def--button-function): Use it. * lisp/help-mode.el (help-goto-info): Use it. * lisp/help.el (help-window-select): Mention it. (help-window-keep-selected): New user option (bug#9054). * lisp/info-look.el (info-lookup-symbol): (info-lookup): Allow keeping the same window.
* Fix inconsistencies in Haiku font selection dialogPo Lu2022-05-022-7/+9
| | | | | | | * src/haiku_font_support.cc (font_family_style_matches_p): Fix coding style. * src/haikufont.c (haikufont_pattern_from_object): Set slant and width using correct object.
* Allow show-paren to show matching parentheses inside commentsLars Ingebrigtsen2022-05-021-0/+7
| | | | | * lisp/paren.el (show-paren--default): Improve blinking when inside a comment (bug#5410).
* Fix handling of some weights in the Haiku font driverPo Lu2022-05-023-15/+7
| | | | | | | | * src/haiku_font_support.cc (font_style_to_flags): * src/haiku_support.h (enum haiku_font_weight): * src/haikufont.c (haikufont_weight_to_lisp) (haikufont_lisp_to_weight): Make `ultralight' and `extralight' mean the same thing.
* Use xref-goto-xref as the xref mouse bindingLars Ingebrigtsen2022-05-021-1/+1
| | | | | | * lisp/progmodes/xref.el (xref--button-map): Keep the xref-goto-xref binding instead of select-and-show to be more similar to grep buffers.
* Fix the OMIT-NULLS + "" case in string-linesLars Ingebrigtsen2022-05-022-1/+4
| | | | | * lisp/subr.el (string-lines): Respect OMIT-NULLS when given an empty string.
* Improve font dialog on macOSPo Lu2022-05-021-1/+40
| | | | | | | * src/nsterm.m ([EmacsView changeFont:]): Don't exit loop here on macOS. ([EmacsView noteUserSelectedFont]): New function. ([EmacsView showFontPanel]): Add explicit "OK" button on macOS.
* Default to currently selected font in Haiku font dialogsPo Lu2022-05-024-20/+149
| | | | | | | | | | | | | | | | | | | | * src/haiku_font_support.cc (be_find_font_indices): New function. * src/haiku_support.cc (class EmacsFontSelectionDialog) (UpdateStylesForIndex, EmacsFontSelectionDialog): Allow specifying an initial font family and style. (be_select_font): New parameters `initial_family' and `initial_style'. * src/haiku_support.h: Update prototypes. * src/haikufont.c (haikufont_lisp_to_weight) (haikufont_lisp_to_slant, haikufont_lisp_to_width): Handle `regular'. (haikufont_pattern_from_object): New function. (haikufont_spec_or_entity_to_pattern): Fix coding style. (Fx_select_font): Compute indices based on currently selected font. (syms_of_haikufont): New defsyms.
* * lisp/gnus/gnus-util.el (gnus-byte-compile): Use `lexical-binding`Stefan Monnier2022-05-021-6/+7
|
* Fix race conditions with async input in some Haiku dialogsPo Lu2022-05-022-0/+4
| | | | | | * src/haikufns.c (Fhaiku_save_session_reply): * src/haikufont.c (Fx_select_font): Block sigio around system calls.
* Fix the macOS buildPo Lu2022-05-021-1/+4
| | | | | * src/nsterm.m (ns_font_desc_to_font_spec, syms_of_nsterm): Define missing symbols that are only on GNUstep.
* Make the NS font dialog return more correct valuesPo Lu2022-05-022-3/+60
| | | | | | | | * src/nsfns.m (Fx_select_font): Update doc string. * src/nsterm.m (ns_font_desc_to_font_spec): New function. ([EmacsView showFontPanel]): Return selected font as a font spec instead.
* Fix devices staying disabled in some casesPo Lu2022-05-021-2/+44
| | | | | * src/xterm.c (handle_one_xevent): Process queued disables before handling an XIDeviceEnabled situation.
* Fix string-lines return for ""Lars Ingebrigtsen2022-05-012-23/+27
| | | | | * lisp/subr.el (string-lines): Return the correct result on "" (bug#55213).
* Change string-lines semantics slightlyLars Ingebrigtsen2022-05-013-7/+7
| | | | | * lisp/subr.el (string-lines): Change the semantics slightly -- don't return an empty string for a trailing newline.
* Handle escaped characters in Eshell special references (e.g. buffers)Jim Porter2022-05-013-12/+34
| | | | | | | | | | | * lisp/eshell/esh-arg.el (eshell-parse-special-reference): Unescape escaped characters. * test/lisp/eshell/eshell-tests-helpers.el (with-temp-eshell): Restore current buffer after evaluating BODY. * test/lisp/eshell/eshell-tests.el (eshell-test/redirect-buffer) (eshell-test/redirect-buffer-escaped): New tests (bug#55204).
* Handle escaped characters in Eshell argument predicates/modifiersJim Porter2022-05-012-1/+15
| | | | | | | | * lisp/eshell/em-pred.el (eshell-get-delimited-modifier-argument): Unescape escaped characters. * test/lisp/eshell/em-pred-tests.el (em-pred-test/predicate-escaping): New test (bug#55204).
* Use a common set of string delimiters for all Eshell predicates/modifiersJim Porter2022-05-014-164/+180
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/eshell/em-pred.el (eshell-pred-delimiter-pairs): New variable. (eshell-get-comparison-modifier-argument) (eshell-get-numeric-modifier-argument) (eshell-get-delimited-modifier-argument): New functions... (eshell-pred-user-or-group, eshell-pred-file-time) (eshell-pred-file-links, eshell-pred-file-size) (eshell-pred-substitute, eshell-join-memebers, eshell-split-members): ... and use them here. (eshell-include-members): Pass 'mod-char' and use 'eshell-get-delimited-modifier-argument'. (eshell-pred-file-type, eshell-pred-file-mode): Use 'when-let'. (eshell-modifier-alist): Pass modifier char to 'eshell-include-members'. * test/lisp/eshell/em-pred-tests.el (em-pred-test/predicate-delimiters): New test. (em-pred-test/predicate-uid, em-pred-test/predicate-gid, em-pred-test/modifier-include, em-pred-test/modifier-exclude): Remove cases covered by 'em-pred-test/predicate-delimiters'. (em-pred-test/modifier-substitute): Add test cases for new delimiter styles. * doc/misc/eshell.texi (Argument Predication and Modification): Explain how string parameters are delimited. (Argument Modifiers): Document some special delimiter behavior with the 's/PATTERN/REPLACE/' modifier (bug#55204). * etc/NEWS: Announce this change, and move the 'eshell-eval-using-options' entry to the Eshell section.
* * lisp/minibuffer.el (completion--replace): Fix bug#55205Stefan Monnier2022-05-011-0/+1
|
* Replace NS code that implemented font panels in a different wayPo Lu2022-05-016-102/+103
| | | | | | | | | | | | | | | | | | | | | | * doc/emacs/macos.texi (Mac / GNUstep Events): Document removal of `ns-change-font' event. The font panels are now implemented normally, via `x-select-font'. * lisp/term/common-win.el (x-setup-function-keys): Likewise. * lisp/term/ns-win.el (global-map, ns-popup-font-panel): Remove. (x-select-font, mouse-set-font, ns-input-font): (ns-input-fontsize): Remove. (ns-respond-to-change-font): Delete function. * src/nsfns.m (Fns_popup_font_panel): Delete function. (Fx_select_font): New function. (syms_of_nsfns): Update subrs. * src/nsterm.h (@interface EmacsView): * src/nsterm.m (ns_select_1): New function. (ns_select): Wrap around that instead. ([EmacsView changeFont:]): Exit nested event loop ([EmacsView showFontPanel:]): New function.
* Don't enter the debugger from *Backtrace* or edebug on eval errorsLars Ingebrigtsen2022-05-015-5/+47
| | | | | | | | | | | | | * doc/lispref/debugging.texi (Error Debugging): Document it. * doc/lispref/edebug.texi (Edebug Eval): Mention it. * lisp/emacs-lisp/debug.el (debug-allow-recursive-debug): New user option (bug#36145). (debugger-eval-expression): Use it. * lisp/emacs-lisp/edebug.el (edebug-eval-expression): Ditto. This patch is based on a patch by Noam Postavsky.
* Correct Using Debugger lispref nodeLars Ingebrigtsen2022-05-011-5/+3
| | | | | * doc/lispref/debugging.texi (Using Debugger): Make documentation reflect reality (bug#36145).
* Make scroll-other-window respect target window remappingsLars Ingebrigtsen2022-05-013-32/+27
| | | | | | * lisp/window.el (scroll-other-window, scroll-other-window-down): Moved from window.c and change implementation so that they respect command remappings in the target window (bug#20236).
* Improve documentation of 'malloc-trim'Eli Zaretskii2022-05-012-5/+6
| | | | | | * src/alloc.c (Fmalloc_trim): Fix the doc string. * etc/NEWS: Document which systems support 'malloc-trim'.
* Add new function `malloc-trim'Lars Ingebrigtsen2022-05-013-0/+41
| | | | | | * configure.ac (PGTK_LIBS): Check for malloc_trim. * src/alloc.c (Fmalloc_trim): Add new function (bug#45200).
* Fix specifying zero as a size for fonts on HaikuPo Lu2022-05-011-5/+3
| | | | | * src/haiku_support.cc (MessageReceived): Set `size_specified' correctly.
* Improve display of Haiku font dialogPo Lu2022-05-013-29/+23
| | | | | | | | | | | * src/haiku_support.cc (EmacsFontSelectionDialog) (class EmacsFontSelectionDialog, FrameResized): Set minimum size based on individual view dimensions and add label to size control. (BWindow_set_min_size): Delete function. * src/haiku_support.h: Update prototypes. * src/haikuterm.c (haiku_update_size_hints): Stop setting min size, since that doesn't work correctly on Haiku.
* Fix the mm-decode-content-transfer-encoding overflow betterLars Ingebrigtsen2022-05-011-2/+17
| | | | | | * lisp/gnus/mm-bodies.el (mm-decode-content-transfer-encoding): Use it. (mm-base64-line-p): New function.
* * lisp/menu-bar.el (menu-bar-search-menu): Remove extra separator.Po Lu2022-05-011-4/+0
|
* Document 'help-window-select'Eli Zaretskii2022-05-012-3/+24
| | | | | | * etc/NEWS: * doc/emacs/help.texi (Apropos, Help): Document 'help-window-select'; improve indexing. (Bug#46034)
* Allow specifying font size in the Haiku font selection dialogPo Lu2022-05-013-10/+43
| | | | | | | | | | | | | * src/haiku_support.cc (struct font_selection_dialog_message): New fields `size' and `size_specified'. (class EmacsFontSelectionDialog): New `size_entry' control. (MessageReceived): Set size from that control if available. (EmacsFontSelectionDialog): Initialize that control. (FrameResized): Handle layout for that control. (be_select_font): New field `size'. * src/haiku_support.h: Update prototypes. * src/haikufont.c (Fx_select_font): Populate font spec with size.