aboutsummaryrefslogtreecommitdiffstats
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Attempt to avoid rare segfaults in show_mouse_faceEli Zaretskii2020-03-061-0/+4
| | | | | | * src/xdisp.c (show_mouse_face): Don't display the active region if called on a frame different from the one recorded in HLINFO. (Bug#37671)
* Avoid crashes when a fontset has strange entriesEli Zaretskii2020-03-051-2/+10
| | | | | | | | | * src/fontset.c (reorder_font_vector): Skip nil entries in the loop that assigns scores to rfont_def's. (fontset_compare_rfontdef): Cope with nil. This has the effect of moving any nil entries to the end of the font-group, and avoids crashing if an element other than the last in the font-group is nil. (Bug#39892)
* Fix implicit declaration of getenv and atolAndreas Schwab2020-03-031-0/+1
| | | | * src/gtkutil.c: Include <stdlib.h>.
* Fix handling MS-Windows keyboard input above the BMPEli Zaretskii2020-03-031-1/+41
| | | | | | | * src/w32term.c (w32_read_socket): If we get a WM_UNICHAR message with a surrogate codepoint, assemble the corresponding character code above the BMP from its UTF-16 encoding, communicated in two consecutive WM_UNICHAR messages.
* Don't attempt to cache glyph metrics for FONT_INVALID_CODERobert Pluim2020-03-023-8/+16
| | | | | | | | | | | | | | | | This was causing massive slowdown in redisplay when eg #xfe0f (VARIATION SELECTOR-16) was present, as the cache ended up very large, unused, and being recreated on every call to font_fill_lglyph_metrics (Bug#39133). * src/composite.c (fill_gstring_body): Hoist FONT_OBJECT_P check out of loop. Calculate glyph code and check for FONT_INVALID_CODE before calling font_fill_lglyph_metrics. Pass glyph code to it. * src/font.c (font_fill_lglyph_metrics): Add code parameter, move glyph code calculation up the call stack into fill_gstring_body. * src/font.h: Adjust font_fill_lglyph_metrics prototype.
* * src/timefns.c (time_arith): Omit incorrect comment.Paul Eggert2020-02-281-3/+1
|
* Range-check width passed to define-fringe-bitmapRobert Pluim2020-02-261-2/+5
| | | | | | | This prevents a crash when attempting to create a zero-width bitmap. * src/fringe.c (Fdefine_fringe_bitmap): Check value of width, signal an error if outside documented range (Bug#39662).
* Define libgnutls-version properlyNoam Postavsky2020-02-251-7/+12
| | | | | | * src/gnutls.c (syms_of_gnutls) <libgnutls-version>: Define with DEFVAR_LISP and add docstring, so that this variable will accessible by help facilities.
* Fix bug when visiting euc-jp-encoded directoriesPaul Eggert2020-02-191-1/+1
| | | | | | | | Problem reported by Ken Sasaki (Bug#39672). * src/fileio.c (Ffile_directory_p): Encode filename before giving it to file_directory_p. This fixes a typo introduced in 2019-09-18T02:18:14Z!eggert@cs.ucla.edu.
* Fix unexec failure on macOS 10.15.4YAMAMOTO Mitsuharu2020-02-161-23/+24
| | | | | * src/unexmacosx.c (unexec_regions_merge): Align region start addresses to page boundaries and then merge regions.
* ; * src/editfns.c (Fbuffer_size): Tiny clarification.Philipp Stephani2020-02-131-1/+1
|
* Make after-change-functions called from call-process get the correct BEGAlan Mackenzie2020-02-131-2/+3
| | | | | | | This fixes bug #39585. * src/callproc.c (call_process): Supply the correct CHARPOS to signal_after_change (twice).
* Revert "Fix display of working text on NS (Bug#23412, Bug#1453)"Alan Third2020-02-111-4/+4
| | | | | | This reverts commit ba042176d8931cdf9441b3b4919ec74b75019494. Do not merge to master (bug#38851)
* Fix set-fontset-font with ADD arg non-nilEli Zaretskii2020-02-091-1/+1
| | | | | * src/fontset.c (fontset_add): Fix off-by-one error at TO. (Bug#39482)
* Correct "different than" to "different from" where appropriateAlan Mackenzie2020-02-095-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | (doc/emacs/screen.texi) (doc/lispintro/emacs-lisp-intro.texi) (doc/misc/calc.texi) (doc/misc/gnus.texi) (doc/misc/sc.texi) (lisp/align.el) (lisp/allout-widgets.el) (lisp/allout.el) (lisp/emacs-lisp/gv.el) (lisp/font-lock.el) (lisp/gnus/mm-util.el) (lisp/mail/feedmail.el) (lisp/mail/sendmail.el) (lisp/mail/supercite.el) (lisp/org/org-attach.el) (lisp/progmodes/cc-langs.el) (lisp/progmodes/idlw-shell.el) (lisp/ps-print.el) (lisp/simple.el) (src/cmds.c) (src/editfns.c) (src/frame.h) (src/regex-emacs.c) (src/xfaces.c): Replace "different than" by "different from".
* Cater for 3-argument version of pthread_setname_npRobert Pluim2020-02-031-3/+5
| | | | | | | | | | Fixes Bug#39363. * configure.ac: Add check for 3-argument version of pthread_setname_np. * src/systhread.c (sys_thread_set_name) [HAVE_PTHREAD_SETNAME_NP_3ARG]: Call pthread_setname_np with 3 arguments.
* Ensure minibuffer input is added to history in read_minibufFederico Tedin2020-01-311-4/+4
| | | | | | * src/minibuf.c (read_minibuf): Parse input string after saving the string to the history list instead of before, in case parsing signals an error or is interrupted by C-g. (Bug#39291)
* ; Spelling and URL fixesPaul Eggert2020-01-271-1/+1
|
* Correct regexp for flags in `format' doc stringMattias Engdegård2020-01-261-1/+1
| | | | | * src/editfns.c (Fformat): Use the correct regexp for describing the flags in a %-sequence (place the hyphen last).
* Remove EmacsOpenPanel and EmacsSavePanel (bug#38031)Alan Third2020-01-242-40/+1
|
* Make call_process call signal_after_change. This fixes bug #38691.Alan Mackenzie2020-01-221-3/+34
| | | | | | | | | | | Now, functions such as call-proess-region invoke after-change-functions correctly. * src/callproc.c (call_process): Call prepare_to_modify_buffer in a single place, no longer delegating the task to insert_1_both, etc. Call signal_after_change in each of two code branches, such that before-change-functions and after-change-functions are always called in balanced pairs.
* Fix a few typosEli Zaretskii2020-01-222-3/+3
| | | | | | | * etc/NEWS: Fix a typo. * src/xdisp.c (try_window_reusing_current_matrix, try_window_id): * src/dispnew.c (scrolling_window): Fix typos in comments.
* Avoid leaving artifacts when the system caret is used on w32Eli Zaretskii2020-01-213-5/+31
| | | | | | | | | | | | | | | | * src/xdisp.c (try_window_reusing_current_matrix, try_window_id): * src/dispnew.c (scrolling_window) [HAVE_NTGUI]: If w32-use-visible-system-caret is non-nil, disallow scrolling the display are in scroll_run_hook. This avoids copying traces of the caret, about which Emacs knows nothing, and thus considers those pixels show the default background. (Bug#39188) (gui_update_window_end): Block input only around part of the code, as we did before this code was extracted from backend-specific implementations. * src/w32term.c (w32_update_window_begin, w32_update_window_end): Only hide/show the caret when redisplaying the window where the caret is shown.
* Clear output data pointer on NSPip Cet2020-01-201-0/+1
| | | | | * src/nsterm.m (ns_free_frame_resources): Clear the output data pointer to prevent attempting to reuse freed resources (Bug#38748).
* ; * src/lread.c (force_new_style_backquotes): Fix reference.Simen Heggestøyl2020-01-171-1/+1
|
* Fix build failure with --with-cairo --without-pngYAMAMOTO Mitsuharu2020-01-151-4/+4
| | | | * src/image.c: Don't enable PNG section only by USE_CAIRO.
* Handle tab-bar clicks on a GPM-capable console.Juri Linkov2020-01-132-0/+12
| | | | | | | | | | * src/term.c (handle_one_term_event): Call tty_handle_tab_bar_click. * src/xdisp.c (tty_handle_tab_bar_click): Force reset of up_modifier bit from the event modifiers. * lisp/tab-line.el (tab-line-tab-current): No need to use inverse-video on console/xterm because the selected tab already uses inverse-video.
* Use NSNumber instead of BOOL (bug#39047)Väinö Järvelä2020-01-091-2/+2
| | | | | | * src/nsfns.m (ns_set_represented_filename): Use correct type. Copyright-paperwork-exempt: yes
* Fix another compilation problem in a build without threadsEli Zaretskii2020-01-081-0/+4
| | | | | * src/systhread.c (sys_thread_set_name) [!THREADS_ENABLED]: Add a trivial implementation.
* Fix build without threadsEli Zaretskii2020-01-081-2/+1
| | | | | | * src/systhread.c (sys_thread_create) [!THREADS_ENABLED]: Update the function's signature to match prototype. Reported by Glenn Morris <rgm@gnu.org>. (Bug#38632)
* Fix BSD and macOS builds w.r.t. pthread_setname_np (bug#38632)Mattias Engdegård2020-01-074-33/+38
| | | | | | | | | | | | | | | pthread_setname_np takes only a single argument on BSD and macOS, and affects the current thread only. * configure.ac: Add check for single-argument pthread_setname_np * src/systhread.c (sys_thread_set_name): New (w32 and pthread versions). (sys_thread_create): Remove name argument and name-setting. (w32_beginthread_wrapper): Remove name-setting. * src/systhread.h (sys_thread_create, sys_thread_set_name): Update prototypes. * src/thread.c (run_thread): Call sys_thread_set_name. (Fmake_thread): Adapt call to sys_thread_create. * src/thread.h (struct thread_state): Adjust comment.
* Scale top-left coordinates in display-monitor-attributes-listRobert Pluim2020-01-071-0/+2
| | | | | | | | | When using multiple monitors, and HiDPI, the top-left coordinates of the monitors need to be adjusted, not just the width and height (Bug#31223). * xfns.c (Fx_display_monitor_attributes_list): Scale top-left coordinates.
* Fix rendering bug due to unsynchronized cairo surface size (Bug#38497)YAMAMOTO Mitsuharu2020-01-071-0/+4
| | | | | * src/xterm.c (handle_one_xevent) <ConfigureNotify> [USE_CAIRO && !USE_GTK]: Call x_cr_update_surface_desired_size for a related frame as a fallback.
* Avoid crash by access to cleared img->pixmap->data/img->mask->data (Bug#38774)YAMAMOTO Mitsuharu2020-01-071-0/+4
| | | | | * src/image.c (prepare_image_for_display) [USE_CAIRO]: Call IMAGE_BACKGROUND and IMAGE_BACKGROUND_TRANSPARENT.
* Avoid assertion violations in very small-height windowsEli Zaretskii2020-01-061-8/+20
| | | | | | | | * src/xdisp.c (try_cursor_movement, redisplay_window) (row_containing_pos): Skip tab-line glyph rows in addition to header-line rows, when working on the top-most glyph row of a window. This avoids assertion violations in set_cursor_from_row. (Bug#38966)
* Use pthread_setname_np to set thread nameRobert Pluim2020-01-062-7/+12
| | | | | | | | | | | | * configure.ac: Remove check for sys/prctl.h and prctl, check for pthread_setname_np instead. * systhread.c: Remove sys/prctl.h include. (sys_thread_create) [HAVE_PTHREAD_SETNAME_NP]: Use pthread_setname_np to set the name of the newly created thread (Bug#38632). * thread.c (Fmake_thread): Use ENCODE_SYSTEM instead of ENCODE_UTF_8 on the thread name.
* Fix typo in 'window_box_height'Martin Rudalics2020-01-041-10/+11
| | | | * src/xdisp.c (window_box_height): Add missing 'else'.
* ; * src/dispnew.c (adjust_glyph_matrix): Fix last change.Eli Zaretskii2020-01-031-0/+1
|
* Fix redisplay when mode-line-format changes mode-line's heightEli Zaretskii2020-01-032-25/+47
| | | | | | | | | | | | | | | | | | | * lisp/frame.el (top-level): Add mode-line-format, tab-line-format, and header-line-format to the list of variables that should trigger an immediate redisplay of the buffer's window. This fixes redisplay of windows when the mode line changes its height. * src/xdisp.c (window_box_height): Use the window's mode_line_height, tab_line_height, and header_line_height fields in preference to CURRENT_MODE_LINE_HEIGHT, CURRENT_TAB_LINE_HEIGHT, and CURRENT_HEADER_LINE_HEIGHT, respectively. This fixes display of vertical scroll bar when the height of the window's mode line changes. * src/dispnew.c (adjust_glyph_matrix): When resizing a window's matrix, reset the mode_line_p flag of the previous mode-line row, so that the window_box_height, CURRENT_MODE_LINE_HEIGHT, and their ilk won't use stale info. (Bug#38828)
* * src/fileio.c (Fwrite_region): Improve the doc string.Eli Zaretskii2020-01-021-0/+1
|
* Fix removal of frame decorations on Windows (Bug#38705)Martin Rudalics2020-01-022-0/+7
| | | | | | | | * src/w32fns.c (w32_set_undecorated): Actualize f->output_data.w32->dwStyle for subsequent calls of AdjustWindowRect (Bug#38705). * src/w32term.h (struct w32_output): Add comment for dwstyle slot.
* Fix compilation with GTK versions older than 3Eli Zaretskii2020-01-011-1/+1
| | | | | | | | * src/xfns.c (x_get_net_workarea): Change a recently moved #ifndef so that GTK builds which need this function will compile it. Reported by John <jpff@codemist.co.uk>. (cherry picked from commit d36adb544d984b91c70f6194da01344e4b2b6fc9)
* Revert "Raise default max-specpdl-size value"Mattias Engdegård2020-01-011-1/+1
| | | | This reverts commit bb9402e6e9c12938aee31b81e25511eb1f6335d2.
* Raise default max-specpdl-size valueMattias Engdegård2020-01-011-1/+1
| | | | | | | | | Occasionally, loading cl-generic.el from source requires max_specpdl_size > 1600 when bootstrapping, and thus fails. In any case we are very close to the limit. * src/eval.c (init_eval_once): Raise max_specpdl_size to 1800. * doc/lispref/variables.texi (Local Variables): Update docs.
* Pacify gcc -Wunused-function on Ubuntu 18.04.3Paul Eggert2020-01-011-2/+2
| | | | | | | This improves on 2019-12-25T20:01:07Z!eggert@cs.ucla.edu, by fixing a GCC warning on Ubuntu 18.04.3 “‘x_get_net_workarea’ defined but not used”. * src/xfns.c (x_get_net_workarea) [!USE_GTK]: Do not define.
* Update copyright year to 2020Paul Eggert2020-01-01226-227/+228
| | | | Run "TZ=UTC0 admin/update-copyright $(git ls-files)".
* Ensure mini-window is resized to show active minibuffer contentsEli Zaretskii2019-12-301-0/+15
| | | | | | * src/keyboard.c (read_char, command_loop_1): Resize the mini-window after clearing the echo area while minibuffer is active. (Bug#38645)
* Fix mini-window resizing under resize-mini-windows = tEli Zaretskii2019-12-301-1/+6
| | | | | | * src/window.c (grow_mini_window): Fix resizing of mini-window when the echo area is cleared, and the caller asks for the mini-window to have zero lines. (Bug#38791)
* Fix crash under -nw on macOS properly this timeRobert Pluim2019-12-291-1/+3
| | | | | | * src/dispextern.h (FACE_COLOR_TO_PIXEL): Only use ns_color_index_to_rgba when we're running under the NS gui (Bug#38564).
* Revert "Check for GUI frame in ns_color_index_to_rgba"Robert Pluim2019-12-291-12/+7
| | | | This reverts commit ea84a95bd8d43612b4a424fb93de25a68ac31d05.