summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Avoid assertion violations in STRING_CHAREli Zaretskii2022-10-042-2/+7
| | | | | | | | | * src/xdisp.c (handle_composition_prop): * src/editfns.c (styled_format): Don't call 'STRING_CHAR' on unibyte strings. This avoids assertion violation in 'string_char_and_length'. (cherry picked from commit d52d6e1e106117eb4bba81a65e256e2e793037b6)
* * src/emacs.c (load_pdump): Fix use of xpalloc.Andreas Schwab2022-10-021-5/+4
|
* Avoid assertion violation in 'xpalloc'Eli Zaretskii2022-10-021-1/+1
| | | | | * src/emacs.c (load_pdump): Ensure the 3rd argument of xpalloc is always positive. (Bug#58232)
* Avoid assertion violations in 'pop_it'Eli Zaretskii2022-09-281-1/+8
| | | | | * src/xdisp.c (pop_it): Avoid assertion violations when handling lists or vectors of display properties. (Bug#58122)
* ; Add commentary to disabled OTF support code in font.cEli Zaretskii2022-09-261-290/+293
| | | | | | | | * src/font.c (check_gstring, check_otf_features, otf_tag_symbol) (otf_open, font_otf_capability, generate_otf_features) (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor): Move closer to the primitives that use them. Add commentary for the purpose of this code.
* ; * src/keyboard.c (Fposn_at_point): Doc fix. (Bug#52092)Eli Zaretskii2022-09-241-0/+3
|
* Fix shaping with bitmap-only fonts on HarfBuzz 5.2.0 (Bug#57976)YAMAMOTO Mitsuharu2022-09-231-2/+6
| | | | | * src/ftcrfont.c (ftcrhbfont_begin_hb_font): Undo last change for HarfBuzz 5.2.0.
* ; More comment fixes in font.h (bug#57935)Eli Zaretskii2022-09-191-1/+1
|
* ; * src/font.h (struct font_driver): Comment fix.Manuel Giraud2022-09-191-1/+1
|
* ; Minor copyedits of *-frame-alist doc stringsEli Zaretskii2022-09-181-1/+1
| | | | | * src/frame.c (syms_of_frame) <default-frame-alist>: * lisp/frame.el (initial-frame-alist): Minor doc fixes.
* ; * src/intervals.c (get_local_map): Fix commentary.Eli Zaretskii2022-09-181-2/+2
|
* ; * src/window.c (syms_of_window) <window-point-insertion-type>: Doc fix.Eli Zaretskii2022-08-291-1/+2
|
* Improve the documentation of glyphless-character displayEli Zaretskii2022-08-281-0/+3
| | | | | | | | | * lisp/international/characters.el (glyphless-char-display-control): * src/xdisp.c (syms_of_xdisp) <glyphless-char-display>: Mention the 'glyphless-char' face in the doc string. * doc/lispref/display.texi (Glyphless Chars): Index 'glyphless-char' face.
* Fix documentation of 'glyphless-char-display'Eli Zaretskii2022-08-271-8/+9
| | | | | | * src/xdisp.c (syms_of_xdisp)<glyphless-char-display>: Doc fix. (gui_produce_glyphs, lookup_glyphless_char_display): Fix indentation.
* * src/window.c (select_window): Fix assert for buffer = non-active minibufferAlan Mackenzie2022-08-191-1/+3
|
* Fix wrong metrics for bitmap-only fonts with HarfBuzz 5YAMAMOTO Mitsuharu2022-08-111-1/+5
| | | | | | * src/ftcrfont.c (ftcrhbfont_begin_hb_font): Always use the standard position unit value on HarfBuzz 5 and later regardless of whether the font is bitmap-only or not. (Bug#57066)
* * src/lisp.h (CHECK_INTEGER): Fix the predicate. (Bug#56856)Eli Zaretskii2022-07-311-1/+1
|
* Improve documentation of column-related functionsEli Zaretskii2022-07-301-2/+7
| | | | | | * doc/lispref/text.texi (Primitive Indent, Columns): * src/indent.c (Fcurrent_indentation, Fmove_to_column): Document that column counting ignores invisible text. (Bug#56837)
* * src/macfont.m (macfont_open): Initialize font->space_width. (Bug#56808)YAMAMOTO Mitsuharu2022-07-301-0/+3
|
* Avoid infloop in 'recenter'Eli Zaretskii2022-07-251-1/+1
| | | | | * src/window.c (Frecenter): Avoid infinite loop in the minibuffer under 'fido-vertical-mode'. (Bug#56765)
* * src/terminal.c (Fframe_terminal): Use active voiceRobert Pluim2022-07-221-1/+1
|
* Improve 'terminal-live-p' docstring some moreRobert Pluim2022-07-221-5/+6
| | | | | * terminal.c (Fterminal_live_p): Improve description of arguments and return value.
* Improve terminal-live-p docstringRobert Pluim2022-07-221-1/+2
| | | | | * src/terminal.c (Fterminal_live_p): Explain what happens when the argument is nil.
* Prevent GC of window referenced from EmacsScrollerGerd Moellmann2022-07-193-0/+39
| | | | | | | | | * src/nsterm.m (EmacsScroller.mark, mark_nsterm): New functions. * src/nsterm.h (EmacsScroller.mark, mark_nsterm): Declare. * src/alloc.c (garbage_collect) [MAVE_NS]: Call mark_nsterm. (Bug#56095) (cherry picked from commit 5f1bd872478927ad4bc635502e74628d39885286)
* ; * src/buffer.c (syms_of_buffer) <mode-line-format>: Doc fix.Eli Zaretskii2022-07-181-1/+4
|
* ; Fix typos: prefer American spellingStefan Kangas2022-07-131-1/+1
|
* Doc fix; don't mention obsolete variableStefan Kangas2022-07-081-1/+1
| | | | | * src/window.c (Fset_window_hscroll): Doc fix; don't mention obsolete variable.
* ; * src/fns.c (Frequire): Fix a typo in the doc string. (Bug#56328)Brennan Vincent2022-07-011-1/+1
| | | | Copyright-paperwork-exempt: yes
* Support builds configured with a separate --bindirEli Zaretskii2022-06-201-14/+18
| | | | | | | | * src/emacs.c (load_pdump): Don't overwrite the leading directories of the Emacs executable just because the pdumper file was not found in the expected directory relative to the binary. This is needed to support builds with a separate --bindir configure-time option and native-compilation. (Bug#55741)
* ; * src/fileio.c (Fset_file_modes): Improve previous changeRobert Pluim2022-06-151-1/+1
|
* Describe 'set-file-modes' argument promptingRobert Pluim2022-06-151-2/+3
| | | | | * src/fileio.c (Fset_file_modes): Document that FILENAME is prompted for. (Bug#55984)
* Update error message to reflect variable renameJeff Walsh2022-06-091-1/+1
| | | | * src/comp.c (Fcomp_el_to_eln_filename): Update error message. (Bug#55861)
* Fix segfaults when starting on 80x26 TTY framesEli Zaretskii2022-06-021-1/+25
| | | | | | | | * src/dispnew.c (adjust_frame_glyphs_for_frame_redisplay): Make sure we have valid frame glyph matrices for the interactive session. (Bug#55760) (adjust_frame_glyphs): Add assertions for when we fail to allocate valid frame glyph matrices for a TTY frame.
* do_switch_frame: before leaving mini-window, check other (mru) window is liveAlan Mackenzie2022-05-281-1/+7
| | | | | | | | | | | | This fixes bug#55684. There, with a minibuffer-only frame at start up, Emacs tried to switch to this frame, whose selected window was the mini-window. There is no other active window in this frame, so the attempt to swith to another window failed. * src/frame.c (do_switch_frame): On switching to a frame whose selected window is as above, before selecting the most recently used window, check this ostensible window is an actual live window. Otherwise leave the mini-window selected.
* Restore the Fselect_window call in gui_consider_frame_title.Alan Mackenzie2022-05-204-10/+11
| | | | | | | | | | | | | | | | | | | | | This fixes bug #55412. The call to Fselect_window was removed on 2021-03-21 in the commit "Prevent open minibuffers getting lost when their frame gets deleted". This call is actually needed to determine current elements of the pertinent window and frame when these are used in the frame title. * src/frame.c (do_switch_frame): When the selected window in the target frame is the mini-window, switch away from this window unless there is a valid minibuffer there. * src/frame.h (struct frame): Add an incidental comment about the element selected_window. * src/minibuf.c (move_minibuffers_onto_frame): No longer set the selected window of the source frame. This action is now performed later, on returning to that frame, in do_switch_frame when needed (see above). * src/xdisp.c (gui_consider_frame_title): Replace the Fselect_window call and associated ancillary settings.
* ; Fix some typosStefan Kangas2022-05-151-1/+1
|
* 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). (cherry picked from commit 8364f058b821eba31f84dcded175cca403a965a5)
* ; * src/w32notify.c: Fix a typo in a comment.Eli Zaretskii2022-05-051-2/+2
|
* ; * src/window.c (Fset_window_start): Mention the effect on vscroll.Eli Zaretskii2022-05-051-1/+7
|
* Improve documentation of font- and face-related attribute functionsEli Zaretskii2022-04-282-25/+40
| | | | | | | | | | | | | * lisp/faces.el (face-attribute): * src/xfaces.c (Fx_family_fonts): * src/font.c (Ffont_get, Ffont_put): Improve and clarify the doc strings. * doc/lispref/display.texi (Low-Level Font): Document the :type attribute of a font. Improve documentation of 'font-get' and 'font-put'. (Attribute Functions): Add cross-reference to the description of face attributes.
* Improve documentation of 'set-fontset-font'Eli Zaretskii2022-04-241-46/+51
| | | | | | | * doc/lispref/display.texi (Fontsets): * src/fontset.c (Fset_fontset_font): Improve and clarify the documentation of 'set-fontset-font'. Rename the arguments to be more self-explanatory. (Bug#55086)
* Another fix for non-ASCII 'overlay-arrow-string'Eli Zaretskii2022-04-221-2/+2
| | | | | * src/xdisp.c (get_overlay_arrow_glyph_row): Fix yet another place that assumed each character is a single byte.
* ; * src/xdisp.c (get_overlay_arrow_glyph_row): Better var name.Eli Zaretskii2022-04-211-2/+2
|
* Avoid a redisplay loop when 'overlay-arrow-string' is non-ASCIIEli Zaretskii2022-04-211-2/+2
| | | | | | * src/xdisp.c (get_overlay_arrow_glyph_row): Don't assume every character in 'overlay-arrow-string' is one byte long. Reported by Yuri D'Elia <wavexx@thregr.org>.
* Revert "Don’t assume openat"Eli Zaretskii2022-04-171-18/+11
| | | | | | | | | | This reverts commit 3cccf0a9107d585173e527550bbc45253624ca2e. This is a change with far-reaching effects on MS-Windows at the least, where file-related APIs are shadowed to support transparent support for UTF-8 encoded file names. Making such changes on a stable branch for the benefit of a proprietary platform with a 13-year old OS is a tail wagging the dog. Please don't do that without discussing first.
* Don’t assume openatPaul Eggert2022-04-171-11/+18
| | | | | | | | | | | | | | Use openat only on platforms with O_PATH. This ports to OS X 10.9 and earlier. Problem reported by Keith David Bershatsky in: https://lists.gnu.org/r/emacs-devel/2022-04/msg00805.html * lib-src/emacsclient.c (local_sockname): Use open, not openat. * src/sysdep.c (sys_openat): New static function, which uses openat only if O_PATH is defined. (emacs_openat): Use it instead of openat. (emacs_openat_noquit): Remove. (emacs_open_noquit): Reimplement as per the old emacs_openat_noquit, but use plain 'open'.
* Fix GC bug in filelock.cPaul Eggert2022-04-171-25/+23
| | | | | | | | | | | | | | Fix a bug where if GC occurred at the wrong moment when locking a file, the lock file’s name was trashed so file locking did not work. This bug was introduced in Emacs 28.1. The bug sometimes caused filelock-tests-detect-external-change test failures on Fedora 35 x86-64 in an en_US.utf8 locale. * src/filelock.c (lock_file_1, current_lock_owner, lock_if_free) (lock_file, unlock_file, Ffile_locked_p): Use Lisp_Object, not char *, for string, so that GC doesn’t trash string contents. (make_lock_file_name): Return the encoded name, not the original. All callers changed.
* ; * src/sysdep.c: Fix mistake in previous commitMattias Engdegård2022-04-161-2/+2
|
* Fix builds on older versions of macOSMattias Engdegård2022-04-161-0/+24
| | | | | | | | | | This adds back macOS-specific code replaced earlier (bug#48548), specifically to fix build errors on macOS 10.7.5. See discussion at https://lists.gnu.org/archive/html/emacs-devel/2022-04/msg00779.html . * src/sysdep.c (HAVE_RUSAGE_INFO_CURRENT, HAVE_PROC_PIDINFO): New. (system_process_attributes): Use alternative code or exclude features when building on older macOS versions.
* Fix cursor motion under truncate-lines with Flymake fringe indicatorEli Zaretskii2022-04-151-1/+4
| | | | | | * src/indent.c (Fvertical_motion): Don't consider fringe bitmaps as "images" for the purpose of vertical-motion logic dealing with overshooting buffer positions. (Bug#54946)