summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Allow the use of poll instead of selectfeature/more-fdsRobert Pluim2022-05-057-82/+273
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Increase the maximum number of open files allowed to 10 x FD_SETSIZE (which is what poll is limited to on macOS). * configure.ac (--with-poll): New option, default off, for requesting 'poll' support. Check for "sys/poll.h" header. (USE_POLL): New variable. (EMACS_CONFIG_FEATURES): Add USE_POLL. * etc/NEWS: Document --with-poll. * src/sysselect.h: New define EMACS_MAX_FD, defaulting to FD_SETSIZE, for the maximum number of file descriptors Emacs can use. * src/process.c: * src/sysdep.c: * src/nsterm.m (ns_select_1): (applicationDidFinishLaunching): Use EMACS_MAX_FD instead of FD_SETSIZE everywhere. * src/syspoll.h (SYSPOLL_H): New file for definitions related to use of 'poll'. * src/sysselect.h [USE_POLL]: Set EMACS_MAX_FD to 10 x FD_SETSIZE. (emacs_fd_set) [USE_POLL]: New type, used for bitsets of file descriptors. (FD_CLR, FD_ISSET, FD_SET, FD_ZERO) [USE_POLL]: Macros for manipulating bitsets. [USE_POLL]: Include "syspoll.h". * src/process.c (fd_sets_to_pollfds) [USE_POLL]: New function. Converts two 'emacs_fd_set' to an array of 'struct pollfd' (pollfds_to_fd_sets) [USE_POLL]: New function. Converts from an array of 'struct pollfd' to two 'emacs_fd_set'. (timespec_to_timeout) [USE_POLL]: New function, converts a 'struct timespec' to a timeout in milliseconds. (emacs_pselect) [USE_POLL]: Replacement for 'pselect' that calls 'poll' and does the appropriate conversions. Does not support sigmask.
* Sort completions in Info references/menu correctlyLars Ingebrigtsen2022-05-051-2/+4
| | | | | | * lisp/info.el (Info-follow-reference): Sort completions in the order they appear in the buffer (bug#54175). (Info-menu-update): Ditto.
* Be more resilient towards errors during error handlingLars Ingebrigtsen2022-05-051-1/+8
| | | | | * src/print.c (print_error_message): Avoid infinite recursion if `substitute-command-keys' bugs out (bug#55269).
* Avoid resizing mini buffer when displaying page numbersPhilip Kaludercic2022-05-051-8/+7
| | | | | * doc-view.el (doc-view-goto-page): Do not insert a newline at the end of the "current info" if not necessary.
* Describe kmacro registers betterLars Ingebrigtsen2022-05-051-1/+1
| | | | | * lisp/kmacro.el (register-val-describe): Allow describing macros that contain mouse events (bug#55266).
* Speed up opening fonts on HaikuPo Lu2022-05-054-47/+183
| | | | | | | | | | | | | | | * src/font.h (font_property_index): Note that some font drivers use the extra data in a font entity to store driver-specific information. * src/haiku_font_support.cc (BFont_find): Set font indices. (be_open_font_at_index): New function. (BFont_open_pattern): Clean up coding style. * src/haiku_support.h (enum haiku_font_specification) (struct haiku_font_pattern): New fields and specifications for indices. * src/haikufont.c (haikufont_pattern_to_entity, haikufont_open): Use indices to open fonts if available in the extra data.
* Fix font weight reporting on macOSPo Lu2022-05-052-1/+18
| | | | | | | | * src/macfont.m (macfont_store_descriptor_attributes): Fix numeric values for the addition of `medium'. * src/nsterm.m (ns_font_desc_to_font_spec): Adjust accordingly. (ns_create_font_panel_buttons): Try to fix button width.
* Merge branch 'master' of git.sv.gnu.org:/srv/git/emacsPo Lu2022-05-052-10/+50
|\
| * Add Tramp testMichael Albinus2022-05-052-10/+50
| | | | | | | | | | | | | | | | | | * test/lisp/net/tramp-tests.el (tar-mode): Require. (tramp-test10-write-region-other-file-name-handler): New test. (tramp-test31-interrupt-process, tramp-test31-signal-process): Tag them :unstable unconditionally. * test/lisp/net/tramp-resources/foo.tar.gz: New resource file.
* | Improve appearance of macOS font panel buttonsPo Lu2022-05-051-13/+59
|/ | | | | | * src/nsterm.m (ns_create_font_panel_buttons): ([EmacsView noteUserCancelledSelection]): New functions. ([EmacsView showFontPanel]): Use those buttons instead.
* Fix min size reporting of style pane in Haiku font dialogsPo Lu2022-05-051-0/+14
| | | | | * src/haiku_support.cc (class DualLayoutView): (MinSize): Implement correctly with both views.
* Use bswap_32 and bswap_16 in Motif DND codePo Lu2022-05-051-0/+8
| | | | | * src/xterm.c (SWAPCARD32, SAPCARD16): Use glibc/gnulib byte-swapping functions if checking is disabled.
* Take size into account when previewing fonts on HaikuPo Lu2022-05-051-16/+38
| | | | | | | | * src/haiku_support.cc (MessageReceived): Decode size sent and handle `UPDATE_PREVIEW_DIALOG' message. (UpdatePreview): Add current size. (EmacsFontSelectionDialog): Assign correct modification messages to the size entry.
* Allow displaying font preview on HaikuPo Lu2022-05-051-8/+221
| | | | | | | | | | * src/haiku_support.cc (class EmacsFontPreviewDialog) (class DualLayoutView): New classes. (class EmacsFontSelectionDialog): Add field for preview, checkbox and layout view. (MessageReceived): Handle new font preview messages. (EmacsFontSelectionDialog): New constructor. (FrameResized): Resize the layout view instead.
* Fix device reporting from scroll bar events on XPo Lu2022-05-051-14/+26
| | | | | | * src/xterm.c (x_scroll_bar_handle_click): New argument `device'. (handle_one_xevent): Set it appropriately as long as required.
* Transcription errordickmao2022-05-041-4/+4
| | | | | | * lisp/gnus/gnus-topic.el (gnus-topic-display-missing-topic): Indent. (gnus-topic-update-topic-line): Insert missing fourth argument.
* Revert "server-execute: Initialize the *scratch* buffer"Sean Whitton2022-05-041-11/+4
| | | | | | This reverts commit f2d2fe6fc8ef0b6087c4a8a69d05a4e521b23047. To be replaced with factoring out *scratch* buffer initialization.
* Stop esh-var-tests leaving temp files behindGlenn Morris2022-05-041-1/+6
| | | | | * test/lisp/eshell/esh-var-tests.el (esh-var-test/quoted-interp-temp-cmd): Don't leave temporary files.
* Remove bogus mode check from gnus topic update functionsEric Abrahamsen2022-05-041-2/+2
| | | | | | | | | * lisp/gnus/gnus-topic.el (gnus-topic-update-topics-containing-group): (gnus-topic-update-topic): These functions originally checked to see if we were in group mode, but later that check was changed to 'gnus-topic-mode, which never passes because 'gnus-topic-mode isn't a major mode. Revert to checking for 'gnus-group-mode, and use `derived-mode-p' while we're at it.
* * lisp/tab-bar.el: Use pixel-based alignment (bug#55207)Juri Linkov2022-05-041-3/+3
| | | | | | * lisp/tab-bar.el (tab-bar-format-align-right): Use string-pixel-width on the string with tab-bar face to get the width in pixels to align. (tab-bar-format-global): Remove string-trim-right to keep padding-right.
* Remove unused lexvar in subr-x-tests.elBasil L. Contovounesios2022-05-041-13/+11
| | | | | | * test/lisp/emacs-lisp/subr-x-tests.el (test-with-buffer-unmodified-if-unchanged): Pacify unused lexvar byte-compiler warning. Simplify slightly and reindent.
* * src/xterm.c (handle_one_xevent): Fix int/Lisp_Object mix-up.Glenn Morris2022-05-041-1/+1
| | | | ; Flagged by --enable-check-lisp-object-type
* ; Re-fix last change in doc of 'with-buffer-unmodified-if-unchanged'.Robert Pluim2022-05-041-1/+1
|
* * etc/NEWS: Improve some NEWS entriesRobert Pluim2022-05-041-17/+21
|
* ; * etc/PROBLEMS: Fix typo.Robert Pluim2022-05-041-1/+1
|
* * doc/emacs/killing.texi: Fix typosRobert Pluim2022-05-041-7/+7
| | | | | | * doc/emacs/killing.texi (Clipboard): Fix wording in description of 'save-interprogram-paste-before-kill'. Ensure the reference to "Yanking Media" is not split over two lines.
* ; Fix last change in doc string of 'with-buffer-unmodified-if-unchanged'.Eli Zaretskii2022-05-041-1/+2
|
* ; Fix typo in emacs-news-modePo Lu2022-05-041-1/+1
| | | | | | * lisp/textmodes/emacs-news-mode.el (emacs-news-count-untagged-entries): Fix typo in message when there are a pural amount of untagged entries.
* ; * lisp/frameset.el: Fix a typo in a comment.Eli Zaretskii2022-05-041-1/+1
|
* Fix restoring desktop from TTY-saved sessionsEli Zaretskii2022-05-041-3/+8
| | | | | | * lisp/frameset.el (frameset-restore): Don't override/fix position of the restored frames for which we have geometry information saved by a past GUI session. (Bug#55070)
* Turn on XInput 2 support by defaultPo Lu2022-05-043-8/+9
| | | | | | | | | | | | | The support doesn't interfere with compatibility, since Emacs built with XInput 2 support transparently falls back to Core Input when a suitable version of the input extension is not available. It also matured much sooner than expected, so enabling this by default will lead to new features being available to more users. * INSTALL: * configure.ac: * etc/NEWS: Enable XInput 2 support by default.
* Clarify the doc string of 'with-buffer-unmodified-if-unchanged'Eli Zaretskii2022-05-041-7/+14
| | | | | * lisp/emacs-lisp/subr-x.el (with-buffer-unmodified-if-unchanged): Describe better what is meant by "buffer changes". (Bug#4587)
* Remove unused variable in Haiku selection codePo Lu2022-05-042-4/+2
| | | | | * src/haiku_select.cc (selection_state_flag): * src/haikuselect.h: Remove variable.
* ; * lisp/international/characters.el (#xfb50): Fix last change.Eli Zaretskii2022-05-041-1/+1
|
* Fix 'bidi-class' property of unassigned codepointsEli Zaretskii2022-05-043-4/+17
| | | | | | | | | | | | * admin/unidata/unidata-gen.el (unidata-file-alist): Update the default values of 'bidi-class' according to the latest Unicode Standard. * admin/notes/unicode: Mention possible changes in DerivedBidiClass.txt that need to be reflected in unidata-gen.el. * lisp/international/characters.el (#xfb50, #xfdf0): Fix the Arabic block characters. (Bug#55256)
* Flush the tool bar cache on all terminals when adding new entriesLars Ingebrigtsen2022-05-041-1/+9
| | | | | * lisp/tool-bar.el (tool-bar--flush-cache): Flush the cache for the current tool bar on all terminals.
* Correctly encode and decode filenames on NSPo Lu2022-05-041-11/+19
| | | | | * src/nsfns.m (Fns_read_file_name): Run dir through ENCODE_FILE and fname through DECODE_FILE.
* Fix file name encoding on Haiku file dialogsPo Lu2022-05-041-2/+2
| | | | | * src/haikufns.c (Fhaiku_read_file_name): Use ENCODE_FILE and DECODE_FILE correctly.
* Set initial size in the Haiku font dialogPo Lu2022-05-043-6/+20
| | | | | | | | | * src/haiku_support.cc (class EmacsFontSelectionDialog) (EmacsFontSelectionDialog): New argument `initial_size'. (be_select_font): Likewise. * src/haiku_support.h: Update prototypes. * src/haikufont.c (Fx_select_font): Set font dialog size to the pixel size of the current font.
* Encode and decode filenames correctly on HaikuPo Lu2022-05-041-2/+5
| | | | | * src/haikufns.c (Fhaiku_read_file_name): Decode file names correctly.
* Clean up Haiku file panel codePo Lu2022-05-046-193/+116
| | | | | | | | | | | | | | | | | | | | | | | * lisp/term/haiku-win.el (x-file-dialog): Fix nil values of `default-filename'. * src/haiku_io.c (haiku_len): Remove `FILE_PANEL_EVENT'. (record_c_unwind_protect_from_cxx, c_specpdl_idx_from_cxx) (c_unbind_to_nil_from_cxx): Delete functions. * src/haiku_support.cc (MessageReceived): Write pointer to buffer to file panel port instead. (struct popup_file_dialog_data): Delete strict. (unwind_popup_file_dialog): Delete functions. (be_popup_file_dialog): Accept a pointer to `process_pending_signals' and run nested event loop as usual. * src/haiku_support.h (enum haiku_event_type): Remove `FILE_PANEL_EVENT'. (struct haiku_file_panel_event): Delete struct. * src/haikufns.c (unwind_popup): Delete function. (Fhaiku_read_file_name): Update and quit on invalid filename. * src/haikuterm.c (struct unhandled_event): Delete struct. (haiku_read_socket): Remove "unhandled events".
* * src/haikufns.c (haiku_create_frame): Improve default border width.Po Lu2022-05-041-1/+1
|
* server-execute: Initialize the *scratch* bufferSean Whitton2022-05-031-4/+11
| | | | | | * lisp/server.el: Require subr-x when compiling. (server-execute): Initialize the *scratch* buffer in the same way that the scratch-buffer command does, for consistency.
* Fix display of placeholder composite string on HaikuPo Lu2022-05-041-2/+2
| | | | | | * src/haikuterm.c (haiku_draw_composite_glyph_string_foreground): Correct translation of XDrawRectangle.
* Fix event mask and source indication of _NET_WM_STATE messagesPo Lu2022-05-043-21/+23
| | | | | | | * src/xselect.c (x_send_client_event): Make static. * src/xterm.c (set_wm_state): Send event with correct mask and source indication set. * src/xterm.h: Update prototypes.
* Make some recently added tests actually runLars Ingebrigtsen2022-05-033-35/+37
|
* Make with-buffer-unmodified-if-unchanged more efficientLars Ingebrigtsen2022-05-031-2/+2
| | | | | * lisp/emacs-lisp/subr-x.el (with-buffer-unmodified-if-unchanged): Make more efficient.
* Make with-buffer-unmodified-if-unchanged more resilientLars Ingebrigtsen2022-05-032-8/+43
| | | | | * lisp/emacs-lisp/subr-x.el (with-buffer-unmodified-if-unchanged): Make more resilient.
* with-buffer-unmodified-if-unchanged: Tweak the implementationStefan Monnier2022-05-031-3/+5
| | | | | | | * lisp/emacs-lisp/subr-x.el (with-buffer-unmodified-if-unchanged): Skip the hash if the buffer was not modified at all. Use `restore-buffer-modified-p`. Also mention that it's imperative that the current buffer is preserved.
* Add NEWS entry about incompatible sorting command behaviorsLars Ingebrigtsen2022-05-031-0/+8
|