summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright year to 2018Paul Eggert2018-01-01215-215/+215
| | | | Run admin/update-copyright.
* Fix subtle problem with scroll-down when scroll-margin is nonzeroEli Zaretskii2017-12-291-2/+3
| | | | | | | | * src/window.c (window_scroll_pixel_based): Account for scroll-margin when scrolling down, i.e. moving window-start towards the beginning of the buffer. Reported by zhang cc <ccsmile2008@outlook.com> in http://lists.gnu.org/archive/html/emacs-devel/2017-12/msg00894.html.
* * src/buffer.c (Frestore_buffer_modified_p): Fix bug#29846Stefan Monnier2017-12-281-9/+11
| | | | | Don't mess with the lock file when inhibit_modification_hooks is set, just like we do in prepare_to_modify_buffer_1.
* Improve documentation of 'inhibit-modification-hooks' and friendsEli Zaretskii2017-12-282-3/+14
| | | | | | | | * src/buffer.c (Fset_buffer_modified_p) (Frestore_buffer_modified_p): Doc fixes. * src/insdel.c (syms_of_insdel) <inhibit-modification-hooks>: Document in the doc string that this variable also inhibits file locks and active region handling. (Bug#29846)
* Fix doc string of 'enable-recursive-minibuffers'David Pathakjee2017-12-281-1/+1
| | | | | | | * src/minibuf.c (syms_of_minibuf) <enable-recursive-minibuffers>: Doc fix. (Bug#29873) Copyright-paperwork-exempt: yes
* Avoid crashes when ':eval' deletes our frameEli Zaretskii2017-12-231-0/+8
| | | | | | * src/xdisp.c (display_mode_element): Signal an error if ':eval' somehow deletes the frame whose window we are redisplaying. (Bug#29726)
* ; * src/xdisp.c (extend_face_to_end_of_line): Fix last change.Eli Zaretskii2017-12-211-4/+6
|
* Prevent infloop in redisplay on TTY framesEli Zaretskii2017-12-211-0/+2
| | | | | | * src/xdisp.c (extend_face_to_end_of_line): Avoid infloop when filling up display margins with the default face's background. (Bug#29789)
* Special-case %DUMBFW for GnuTLS between 3.2.5 and 3.5.1Ted Zlatanov2017-12-201-0/+8
| | | | | * src/gnutls.c: Introduce HAVE_GNUTLS_EXT__DUMBFW for GnuTLS >= 3.2.5. (Fgnutls_available_p): Use it.
* Work around GnuTLS version issues with %DUMBFW (tiny change)Andy Moreton2017-12-201-11/+30
| | | | | | * src/gnutls.c: Introduce HAVE_GNUTLS_EXT_GET_NAME and use it. (init_gnutls_functions): Use it. (Fgnutls_available_p): Use it (Bug#25061). Fix Vlibrary_cache bug.
* Fix updating scrollbar sizes when scaling is in effectRobert Pluim2017-12-201-1/+7
| | | | | | | * src/gtkutil.c (xg_update_scrollbar_pos): Update width of scrollbar when scaling is in effect. (xg_update_horizontal_scrollbar_pos): Update scrollbar size when scaling is in effect.
* Collect GnuTLS extensions and use them to set %DUMBFW if supportedTed Zlatanov2017-12-191-1/+13
| | | | | | | | | * lisp/net/gnutls.el (gnutls-boot-parameters): Use it to set %DUMBFW only when it's supported as "ClientHello Padding" (Bug#25061). * src/gnutls.c (Fgnutls_available_p): Get extension names and put them in the GnuTLS capabilities, using a hard-coded limit of 100 since GnuTLS MAX_EXT_TYPES is not exported.
* Improve documentation of 'invisible-p'Eli Zaretskii2017-12-161-11/+17
| | | | | | | | * doc/lispref/display.texi (Invisible Text): Document the return value of 'invisible-p'. * src/xdisp.c (Finvisible_p): Rename the argument POS. Doc fix. (Bug#29721)
* Remove one more check that Vframe_list is non-nilMartin Rudalics2017-12-161-3/+2
| | | | | | * src/dispnew.c (check_glyph_memory): Remove no-longer-needed check that Vframe_list is non-nil, as FOR_EACH_FRAME no longer assumes that.
* FOR_EACH_FRAME no longer assumes frame-listPaul Eggert2017-12-152-8/+10
| | | | | | | | | | | | This cleans up a recent fix related to Bug#29661. Suggested by Stefan Monnier in: https://lists.gnu.org/r/emacs-devel/2017-12/msg00544.html * src/frame.c (next_frame, prev_frame, delete_frame): Restore debugging checks that Vframe_list is non-nil, as FOR_EACH_FRAME no longer has these checks. (delete_frame): Remove no-longer-needed checks that Vframe_list is non-nil, as FOR_EACH_FRAME no longer assumes that. * src/frame.h (FOR_EACH_FRAME): Do not assume Vframe_list is non-nil.
* * src/font.c (Ffont_info): Doc fix. (Bug#29682)Eli Zaretskii2017-12-151-5/+5
|
* Don't run FOR_EACH_FRAME when there's no frame left (Bug#29961)Martin Rudalics2017-12-152-5/+8
| | | | | | | | | This does not fix Bug#29961 but avoids that Emacs segfaults when trying to shut down because it lost connection to the X server. * src/dispnew.c (check_glyph_memory): * src/frame.c (delete_frame): Don't run FOR_EACH_FRAME when there's no frame left (Bug#29961).
* * src/data.c (Fadd_variable_watcher): Doc fix.Charles A. Roelli2017-12-141-1/+1
|
* Fix doc-string of Fbuffer_listMartin Rudalics2017-12-141-3/+3
| | | | * src/buffer.c (Fbuffer_list): Fix doc-string.
* Remove ObjC blocks (Bug#23753)Alan Third2017-12-121-73/+55
| | | | | | | * src/macfont.m (macfont_get_glyph_for_character): (mac_font_get_glyphs_for_variants): Inline Objective-C blocks. (cherry picked from commit 4590f1d768adbb2120a2b02c614f7ed3b21a4a3e)
* Import the latest IVD_Sequences.txtEli Zaretskii2017-12-121-880/+883
| | | | | | | | * admin/unidata/IVD_Sequences.txt: New version from http://www.unicode.org/ivd/, the 2017-12-12 version of the Unicode Ideographic Variation Database. * src/macuvs.h: Regenerated.
* Avoid crashes in 'font-at' after 'set-fontset-font'Eli Zaretskii2017-12-101-0/+4
| | | | | | | * src/fontset.c (free_realized_fontsets): Call recompute_basic_faces, so that the basic faces are available to any Lisp that calls this function, e.g. via set-fontset-font. (Bug#29632)
* Fix tool-tip display when display margins are non-zero by defaultEli Zaretskii2017-12-094-3/+26
| | | | | | | | | * src/buffer.h (bset_left_margin_cols, bset_right_margin_cols): New inline functions. * src/xfns.c (Fx_show_tip): * src/w32fns.c (Fx_show_tip): Force display margins of the tip buffer to zero, as it will be displayed in a pseudo-window, which doesn't support display margins. (Bug#29627)
* Improve interactive debugging commands in xdisp.cEli Zaretskii2017-12-091-12/+33
| | | | | * src/xdisp.c (Fdump_glyph_row, Fdump_tool_bar_row): Allow to specify ROW via prefix argument. Fix the doc strings.
* Fix calculation of continuation_pixel_width in display engineEli Zaretskii2017-12-091-1/+0
| | | | | * src/xdisp.c (display_line): Remove incorrect increment of it->continuation_pixel_width when word-wrap is used. (Bug#29594)
* Avoid compilation warning in xterm.cEli Zaretskii2017-12-041-2/+2
| | | | | | * src/xterm.c (x_draw_underwave): Move the declaration of 'thickness' to the non-USE_CAIRO branch, to avoid compiler warning. (Bug#29567)
* Fix bug in i18n/l10n optimizationPaul Eggert2017-12-021-2/+2
| | | | | | | | This fixes a off-by-one buffer overrun bug introduced in 2017-06-04T15:39:37Z!eggert@cs.ucla.edu. Problem uncovered by an experimental version of Emacs built with -fcheck-pointer-bounds and running on Intel MPX hardware. * src/editfns.c (styled_format): Avoid overrunning internal buffers.
* Fix buffer overflow in fontname conversion (Bug#29523)Yuuki Harano2017-12-021-2/+2
| | | | | | * src/nsterm.m (ns_xlfd_to_fontname): Fix sscanf format. Copyright-paperwork-exempt: yes
* Avoid assertions in find-compositionEli Zaretskii2017-11-301-8/+15
| | | | | | | | * src/font.c (font_range): If called with STRING non-nil and FACE a NULL pointer, compute face by calling face_at_string_position. (Bug#29506) * lisp/composite.el (find-composition): Doc fix.
* * src/w32heap.c (DUMPED_HEAP_SIZE) [_WIN64]: Bump to 22 MiB.Noam Postavsky2017-11-271-1/+1
|
* * src/lread.c (syms_of_lread): Fix thinko in commit b1573a97e17b5Stefan Monnier2017-11-271-1/+1
|
* Harden exec_byte_code against redefining 'error'Paul Eggert2017-11-261-4/+2
| | | | | | | | Problem discovered by configuring with --enable-gcc-warnings on Ubuntu 17.10 x86-64 with gcc (Ubuntu 7.2.0-8ubuntu3). * src/bytecode.c (exec_byte_code): Call the C error function instead of the Lisp one, so that the Emacs interpreter does not go haywire if the user redefines the Lisp error function.
* Improve documentation of "constant" symbolsEli Zaretskii2017-11-263-5/+12
| | | | | | | | | | | | | | | | * src/font.c (syms_of_font) <font-weight-table, font-slant-table> <font-width-table>: * src/data.c (syms_of_data) <most-positive-fixnum> <most-negative-fixnum>: * src/buffer.c (syms_of_buffer) <enable-multibyte-characters>: Mention in the doc strings that these variables are read-only. * doc/lispref/variables.texi (Creating Buffer-Local): Document that making a constant variable buffer-local signals an error. * doc/lispref/variables.texi (Constant Variables): * doc/lispref/errors.texi (Standard Errors): More accurate and up-to-date documentation of which symbols cannot be assigned values.
* maint: shorten https://lists.gnu.org/archive/html/... linksPaul Eggert2017-11-2518-159/+159
|
* Work around GCC bug 80776 on Fedora 27 x86Paul Eggert2017-11-251-1/+5
| | | | | | | * src/buffer.c (Fgenerate_new_buffer_name): Pacify GCC 7.2.1 20170915 (Red Hat 7.2.1-2) on i686 with -Wformat-overflow -O2 by using XINT rather than XFASTINT and by adding an eassume. This works around GCC bug 80776.
* Tweak copy-file, rename-file docPaul Eggert2017-11-251-8/+4
| | | | | | | | * src/fileio.c (Fcopy_file, Frename_file): Tweak the recent change slightly, as NEWNAME is treated as a directory name depending only on the contents of the NEWNAME string, and independently of whether NEWNAME names a directory (i.e., whether the directory exists) (Bug#29362).
* A better solution for bug#29347Eli Zaretskii2017-11-241-8/+10
| | | | | * src/thread.c (really_call_select): Don't try to take the global lock if the same thread is already holding it. (Bug#29347)
* ; * src/thread.c (acquire_global_lock): Fix thinko in last change.Eli Zaretskii2017-11-241-1/+1
|
* Avoid a hang after C-g while sit-for on a Unix TTYEli Zaretskii2017-11-241-1/+6
| | | | | * src/thread.c (acquire_global_lock): Don't try to take the global lock if the same thread is already holding it. (Bug#29347)
* Reflect changes in copy-file and rename-file in doc stringsEli Zaretskii2017-11-241-0/+6
| | | | | * src/fileio.c (Fcopy_file, Frename_file): Mention in the doc strings that directory names must end in a slash. (Bug#29362)
* Fix backward scrolling in buffers with header-lineEli Zaretskii2017-11-231-3/+9
| | | | | | * src/window.c (window_scroll_pixel_based): Account for the header-line when comparing Y coordinate with the last_visible_y. (Bug#29325)
* ; Fix some doc typosGlenn Morris2017-11-221-1/+1
|
* * lisp/bindings.el (buffer-file-coding-system):Glenn Morris2017-11-221-0/+2
| | | | | | Add explicit permanent-local mark. ; * src/buffer.c (init_buffer_once): Comment.
* * src/fns.c (syms_of_fns) <overriding-plist-environment>: Doc fix.Glenn Morris2017-11-221-1/+1
|
* Fix incorrect interaction of drag/drop and double click (bug#29121)Alan Third2017-11-221-2/+0
| | | | | * src/nsterm.m (EmacsView::performDragOperation): Drag and drop doesn't use ns-input-file.
* Add window divider faces to NS (bug#29353)Alan Third2017-11-201-7/+43
| | | | | * src/nsterm.m (ns_draw_window_divider): Use window-divider-first-pixel and window-divider-last-pixel faces.
* * src/keyboard.c: Undo last change, meant for master onlyStefan Monnier2017-11-201-1/+1
|
* Fix misbehavior when drawing three-pixel high horizontal dividers (Bug#29353)Martin Rudalics2017-11-202-8/+16
| | | | | | | | | * src/xterm.c (x_draw_window_divider): * src/w32term.c (w32_draw_window_divider): Fix misbehavior when drawing three-pixel high horizontal dividers (Bug#29353). The misbehavior was noted by Keith David Bershatsky and analyzed by Alan Third.
* Fix divider frame params on NS (bug#29352)Alan Third2017-11-191-0/+4
| | | | | * src/nsfns.m (Fx_create_frame): Set right-divider-width and bottom-divider-width parameters.
* * src/keyboard.c: Make xterm-mouse clicks on mode-line workOlaf Rogalsky2017-11-181-1/+1
| | | | | (read_key_sequence): Recompute first_event after replay_sequence, since it might have changed (bug#29104).