summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Avoid inflooping when 'tab-bar-format' includes embedded newlinesEli Zaretskii2022-01-021-1/+9
| | | | | * src/xdisp.c (tab_bar_height, redisplay_tab_bar): Support 'tab-bar-format' with embedded newlines. (Bug#52947)
* Clarify %g and %G time format specsEli Zaretskii2022-01-021-3/+4
| | | | | * src/timefns.c (Fformat_time_string): * doc/lispref/os.texi (Time Parsing): Clarify %g/%G. (Bug#52934)
* * src/xfaces.c (face_for_font): Make 'hash' be uintptr_t.Zhehao Lin2022-01-011-1/+1
| | | | Copyright-paperwork-exempt: yes
* ; Add 2022 to copyright years.Eli Zaretskii2022-01-01229-229/+229
|
* Improve doc strings of fringe indicator variablesEli Zaretskii2021-12-311-4/+5
| | | | | * src/buffer.c (syms_of_buffer): Fix doc strings of 'indicate-empty-lines' and 'indicate-buffer-boundaries'.
* Avoid assertion violations with variable-weight fontsEli Zaretskii2021-12-301-3/+6
| | | | | | | | * src/font.c (font_score, font_delete_unmatched): Don't assume weight, slant, and width properties of the font must be fixnums: some variable-weight fonts violate that assumption. Reported by Sean Whitton <spwhitton@spwhitton.name>. Do not merge to master. (Bug#52888)
* Explain why we remove stuff from 'user-full-name'Eli Zaretskii2021-12-251-2/+7
| | | | | * src/editfns.c (Fuser_full_name): Document why we chop everything starting from the first comma. (Bug#52785)
* Fix crash when dumping charset_table with portable dumper (Bug#52461)YAMAMOTO Mitsuharu2021-12-153-3/+4
| | | | | | | * src/charset.h: * src/charset.c (charset_table_used): Now extern. * src/pdumper.c (dump_charset): Don't dump code_space_mask for unused slots of charset_table.
* Remove maintainer comment from Emacs 28 module snippet.Philipp Stephani2021-12-141-4/+0
| | | | | | | | This is the same as 44c13eefe8d30841000a96d82f467fb8d222e365 on master. We should also remove this comment on the release branch, otherwise it ends up in the emacs-module.h shipped to users. * src/module-env-28.h: Remove maintainer comment.
* ; * src/xdisp.c (move_it_vertically_backward): Clarify commentary.Eli Zaretskii2021-12-131-5/+6
|
* Avoid undefined behavior in 'send-process-region' (Bug#52369).Philipp Stephani2021-12-111-0/+3
| | | | | * src/process.c (send_process): Signal an error if the file descriptor has already been closed.
* Fix the DJGPP portPo Lu2021-12-116-3/+148
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * config.bat: * msdos/sed1v2.inp: * msdos/sed2v2.inp: * msdos/sed3v2.inp: * msdos/sedlibmk.inp: Update for Emacs 28. * msdos/langinfo.h: New file. * lisp/loadup.el: Use correct path to temacs when dumping on MS-DOS. * src/callproc.c (environ) [MSDOS]: New declaration. (child_setup, emacs_spawn): Update MS-DOS parts for Emacs 28. * src/fileio.c (Fcopy_file): Don't use copy_file_range on MS-DOS. * src/msdos.c (initialize_msdos_display): Add `defined_color_hook'. (openat, fchmodat, futimens, utimensat): New functions. * src/msdos.h (FRAME_X_DISPLAY): New macro. * src/process.c: Make some more things conditional on subprocess support. (PIPECONN_P, PIPECONN1_P) [!subprocesses]: New placeholder macros. (Fnum_processors): Return 1 on MSDOS. (open_channel_for_module): Avoid subprocess specific code on MSDOS.
* Clarify a comment in xdisp.cEli Zaretskii2021-12-091-4/+5
| | | | | * src/xdisp.c (compute_window_start_on_continuation_line): Clarify a comment. (Bug#52378)
* Fix the enumeration values returned by 'try_scrolling'Eli Zaretskii2021-12-041-3/+3
| | | | | * src/xdisp.c (try_scrolling): Make the enum values match the commentary. Reported by Po Lu <luangruo@yahoo.com>.
* * src/dosfns.c (Fint86): Doc fix; don't use obsolete names.Stefan Kangas2021-12-041-2/+2
|
* Unbreak build after 9c222b9c1a7f91497a37567b4d7de3a511fff069.Philipp Stephani2021-12-031-1/+1
| | | | * src/pdumper.c (dump_subr): Fix Lisp_Subr hash value.
* Port to C compilers that lack size-0 arraysPaul Eggert2021-12-028-71/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The C standard does not allow size-zero arrays, so redo struct Lisp_Subr to not use size-zero arrays when native compilation is not being used. Formerly, the code was using size-zero arrays (a GNU C extension) to avoid using memory unnecessarily when HAVE_NATIVE_COMP is not defined. Replace this hack with the more-traditional hack of putting the relevant members inside ‘#ifdef HAVE_NATIVE_COMP’. * src/alloc.c (cleanup_vector, mark_object): * src/comp.c (make_subr): * src/data.c (Fsubr_native_lambda_list, Fsubr_native_comp_unit): * src/eval.c (init_eval_once, funcall_lambda): * src/lisp.h (SUBR_NATIVE_COMPILEDP, SUBR_NATIVE_COMPILED_DYNP) (SUBR_TYPE): * src/lread.c (Fload): Conditionally compile with ‘#ifdef HAVE_NATIVE_COMP’ instead of with ‘if (NATIVE_COMP_FLAG)’. Redo members like native_comp_u[0] to be plain native_comp_u. Put all uses of these members inside ‘#ifdef HAVE_NATIVE_COMP’. * src/lisp.h (struct Lisp_Subr): Members native_comp_u, native_c_name, lambda_list, type are now all ifdeffed out if HAVE_NATIVE_COMP is not defined, instead of being size-zero arrays. All uses changed. * src/pdumper.c (dump_subr, dump_cold_native_subr) (dump_do_dump_relocation): * src/comp.h (NATIVE_COMP_FLAG): Remove; no longer needed.
* Work around IBM XL C compiler bugPaul Eggert2021-12-021-1/+3
| | | | | | | | * src/fileio.c (Fcopy_file): Work around a compiler bug in IBM XL C for AIX, V12.1 (5765-J02, 5725-C72). Without this patch, the compiler incorrectly complains “Initialization between types "int" and "struct timespec" is not allowed” and “Initialization between types "long" and "struct timespec" is not allowed”.
* ; * src/comp.c (syms_of_comp) <comp-no-native-file-h>: Doc fix.Eli Zaretskii2021-11-301-3/+3
|
* * src/callint.c (Fcall_interactively): Fix inhibit_mouse_event_check.Juri Linkov2021-11-301-10/+17
| | | | | Don't search for the next mouse event with parameters when inhibit-mouse-event-check is non-nil (bug#50067).
* Avoid undefined behaviour when copying part of structureAndreas Schwab2021-11-291-1/+1
| | | | | | | * src/dispnew.c (copy_row_except_pointers): Don't use address of subobject as starting point. (cherry picked from commit 6943786b5c1fe76ea05a3a810512bd6777883710)
* ; Remove an obsolete commentKarl Fogel2021-11-281-3/+0
| | | | | | | * src/editfns.c (Ftranspose_regions): Remove an obsolete comment about memmove, following up to commit 72af86bd8cf of 8 Jul 2010 by Andreas Schwab and commit 354f9f0fc6cc of 23 Feb 2016 by Fredrik Bergroth, both of which added calls to memmove.
* * src/coding.c (Fdecode_coding_region, Fencode_coding_region): Doc fix.Eli Zaretskii2021-11-281-3/+6
|
* ; * src/emacs.c (main): Add commentary about command-line processing.Eli Zaretskii2021-11-251-0/+33
|
* Fix 'posn-at-point' near some overlaysEli Zaretskii2021-11-251-2/+18
| | | | | | * src/xdisp.c (pos_visible_p): Fix 'posn-at-point' for positions just after a display property that draws a fringe bitmap. (Bug#52097)
* ; * src/xdisp.c (produce_stretch_glyph): Avoid compilation warning.Eli Zaretskii2021-11-231-1/+1
|
* Fix '(space :relative-width N)' display spec w/non-ASCII charsEli Zaretskii2021-11-221-8/+22
| | | | | | * src/xdisp.c (produce_stretch_glyph): Use the correct face for non-ASCII characters. Support :relative-width display spec on Lisp strings, not just on buffer text.
* Fix mouse handling with several TTY frames on MS-WindowsEli Zaretskii2021-11-201-0/+3
| | | | | | * src/w32inevt.c (do_mouse_event): Reset the 'mouse_moved' flag of the selected frame. Without that, this flag might remain set on a TTY frame that is not displayed.
* Fix temacs invocation from outside of the 'src' directoryEli Zaretskii2021-11-201-0/+11
| | | | | | * src/emacs.c (main) [HAVE_NATIVE_COMP]: Recompute the value of native-comp-eln-load-path if about to load loadup in uninitialized Emacs. (Bug#51999)
* Fix mouse events on tab bar or tool bar when 'track-mouse' is tmartin rudalics2021-11-201-12/+13
| | | | | | | | * lisp/mouse.el (mouse-drag-track): * lisp/mouse-drag.el (mouse-drag-drag): Set 'track-mouse' to some value neither t nor nil. * src/keyboard.c (make_lispy_position): If track_mouse is Qt, report event on tool or tab bar (Bug#51794).
* Improve doc string of 'highlight-nonselected-windows'Eli Zaretskii2021-11-181-1/+3
| | | | | * src/xdisp.c (syms_of_xdisp) <highlight-nonselected-windows>: Clarify the doc string. (Bug#51927)
* Avoid segfaults due to freed face cacheEli Zaretskii2021-11-151-1/+4
| | | | | * src/xfaces.c (face_at_buffer_position): Make sure DEFAULT_FACE is usable. (Bug#51864)
* Add more files to be natively-compiled AOTEli Zaretskii2021-11-141-0/+10
| | | | | * src/Makefile.in (elnlisp): Add emacs-lisp/gv.eln and other missing dependencies of comp.el.
* Fix compilation on MS-WindowsEli Zaretskii2021-11-131-0/+2
| | | | | | | * src/callproc.c (emacs_spawn) <fork_done>: Define the label only if USABLE_POSIX_SPAWN is defined, to avoid a compiler warning. (cherry picked from commit a8fc08085110de00ebcbd67b5273a755a5cb8ea1)
* Use posix_spawn if possible.Philipp Stephani2021-11-131-1/+189
| | | | | | | | | | | | | | | | | | | | | | | | | posix_spawn is less error-prone than vfork + execve, and can make better use of system-specific enhancements like 'clone' on Linux. Use it if we don't need to configure a pseudoterminal. Backported from commit a60053f8368e058229721f1bf1567c2b1676b239. Unlike that commit, only define USABLE_POSIX_SPAWN on macOS, because there posix_spawn is much faster than vfork. Don't merge to master. * configure.ac (HAVE_SPAWN_H, HAVE_POSIX_SPAWN) (HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR) (HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR_NP) (HAVE_POSIX_SPAWNATTR_SETFLAGS, HAVE_DECL_POSIX_SPAWN_SETSID): New configuration variables. * src/callproc.c (USABLE_POSIX_SPAWN): New configuration macro. (emacs_posix_spawn_init_actions) (emacs_posix_spawn_init_attributes, emacs_posix_spawn_init): New helper functions. (emacs_spawn): Use posix_spawn if possible. (cherry picked from commit a60053f8368e058229721f1bf1567c2b1676b239)
* Improve style and comments in font-related sourcesEli Zaretskii2021-11-133-12/+28
| | | | | | * src/w32font.c (fill_in_logfont): Stylistic changes. * src/font.h (font_property_index, font_select_entity): Add/improve comments.
* ; Fix typosStefan Kangas2021-11-121-2/+2
|
* Improve documentation of 'decode-coding-region'Eli Zaretskii2021-11-121-4/+5
| | | | | | | | * src/coding.c (Fdecode_coding_region): Doc fix. * doc/lispref/nonascii.texi (Coding System Basics) (Explicit Encoding): Explain the significance of using 'undecided' in 'decode-coding-*' functions.
* Fix ACL errors with WebDAV volumes on MS-WindowsEli Zaretskii2021-11-111-5/+7
| | | | | | * src/w32.c (acl_get_file): Handle ERROR_INVALID_FUNCTION from WebDAV. Patch from Ioannis Kappas <ioannis.kappas@gmail.com>. (Bug#51773)
* Revert "Fix localized display of date and time in the NS port"Stefan Kangas2021-11-091-3/+1
| | | | | | | This reverts commit 5e05be566b0e13ce0b4e75da663fb051039f0751. This was discussed in https://debbugs.gnu.org/cgi/bugreport.cgi?bug=51321#93
* Fix compilation MinGW warningsEli Zaretskii2021-11-071-2/+2
| | | | | | | * src/w32.h (prepare_standard_handles, reset_standard_handles): Fix prototypes. Reported by Andy Moreton <andrewjmoreton@gmail.com> in https://lists.gnu.org/archive/html/emacs-devel/2021-11/msg00597.html.
* Clarify "text area of a window" in the documentationEli Zaretskii2021-11-061-0/+2
| | | | | | | | | * src/keyboard.c (Fposn_at_x_y): Clarify that the Y coordinate includes the header-line and the tab-line. (Bug#51590) * doc/lispref/windows.texi (Window Sizes, Splitting Windows) (Textual Scrolling, Coordinates and Windows): Fix/remove improper or confusing uses of "text area" of a window.
* Fix header-line and tab-line when mode-line-compact is setEli Zaretskii2021-11-031-1/+2
| | | | | * src/xdisp.c (display_mode_line): Make 'mode-line-compact' apply only to mode lines. (Bug#51558)
* * src/pdumper.c (dump_do_dump_relocation): Add sanity check.Andrea Corallo2021-11-021-0/+3
|
* Avoid signaling errors in lookup-keyEli Zaretskii2021-10-311-16/+22
| | | | | * src/keymap.c (Flookup_key): Handle KEY vectors where not all components are symbols. (Bug#51527) Do not merge to master.
* Fix localized display of date and time in the NS portDaniel Martín2021-10-311-1/+3
| | | | | | * src/nsterm.m (ns_init_locale): If not already set, set LC_ALL to the current locale ID so that dates, currencies, etc. use the settings configured in the operating system. (Bug#51321)
* Fix display glitches with side-by-side windows on TTY framesEli Zaretskii2021-10-311-2/+4
| | | | | | * src/dispnew.c (adjust_glyph_matrix, prepare_desired_row): Leave room for the border glyph only if the window does actually have the right margin. (Bug#51521)
* Avoid assertion violations in 'lookup-key'Eli Zaretskii2021-10-281-2/+2
| | | | | * src/keymap.c (Flookup_key): Don't call ASIZE unless KEY is a vector. This avoids assertion violations when KEY is a string.
* Be more allowing when looking for menu-bar itemsStefan Kangas2021-10-281-21/+59
| | | | | | | | | | | | | Don't merge to master. This is a safe-for-release fix for Bug#50752. * src/keymap.c (lookup_key_1): Factor out function from Flookup_key. (Flookup_key): Be case insensitive when looking for Qmenu_bar items. (Bug#50752) * test/src/keymap-tests.el (keymap-lookup-key/mixed-case) (keymap-lookup-key/mixed-case-multibyte): New tests.
* Allow automatic use of color fonts for emoji on macOSRobert Pluim2021-10-271-2/+6
| | | | | * src/macfont.m (macfont_list): Don't exclude color fonts when the fontspec has an 'emoji' script specification.