aboutsummaryrefslogtreecommitdiffstats
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Signal error for symbol names with strange quotes (Bug#2967)"Noam Postavsky2018-01-281-18/+0
| | | | | | | | | | That commit did not make the corresponding change to printing, thus breaking the (eq (read (prin1-to-string SYM)) SYM) invariant for those symbols. It's too late in the release cycle to change printing behavior, therefore revert the reader change. Don't merge to master, the print function will be updated there (see "Fix round tripping of read->print for symbols with strange quotes").
* * src/indent.c (Findent_to): Doc fix. (Bug#30260)Eli Zaretskii2018-01-271-1/+1
|
* * src/syntax.c (char-syntax): Warn about ignoring text properties (Bug#22765).Noam Postavsky2018-01-261-1/+6
|
* ; * src/process.c (Fprocess_contact): Fix docstring typo.Noam Postavsky2018-01-261-1/+1
|
* Fix a few issues with latest GTK scaling changesRobert Pluim2018-01-242-2/+4
| | | | | | | * src/xfns.c (Fx_display_monitor_attributes_list): Call gdk_screen_get_monitor_scale_factor only for GTK versions 3.10..3.21. * src/xterm.c (x_set_offset): Call xg_get_scale for GTK only.
* Use scaled coordinates when calling into GTKRobert Pluim2018-01-242-7/+13
| | | | | | | | | | | This is part two of a two part fix for the GTK scaling problems. See the thread starting at http://lists.gnu.org/archive/html/emacs-devel/2018-01/msg00372.html for an explanation of why it has been added to Emacs 26. * src/gtkutil.c (xg_set_geometry): Scale down the coordinates that we pass to gtk_window_move and to gtk_window_parse_geometry. * src/xterm.c (x_set_offset): Likewise.
* Scale monitor dimensions obtained from GTKRobert Pluim2018-01-241-0/+11
| | | | | | | | | | | This is part one of a two part fix for the GTK scaling problems. See the thread starting at http://lists.gnu.org/archive/html/emacs-devel/2018-01/msg00372.html for an explanation of why it has been added to Emacs 26. * src/xfns.c (Fx_display_monitor_attributes_list): Take scaling factor into account when using GTK to query the monitor dimensions, which allows frameset-restore to position frames correctly.
* Don't unnecessarily use non-ASCII characters in C sourcesEli Zaretskii2018-01-194-5/+5
| | | | | | | | * src/xwidget.c (webkit_javascript_finished_cb): * src/gtkutil.c (xg_check_special_colors): * src/emacs-module.c (module_make_string): * src/alloc.c (SET_STACK_TOP_ADDRESS): Don't use non-ASCII quote characters.
* An overdue update of src/emacs-icon.hGlenn Morris2018-01-141-288/+289
| | | | | * src/emacs-icon.h: Update to the Emacs 25 icon. (Bug#30047) Converted from hicolor/scalable/apps/emacs.svg using Gimp.
* In nsterm.m use FRAME_NS_P instead of FRAME_X_P (Bug#30019)Martin Rudalics2018-01-131-1/+1
| | | | | * src/nsterm.m (x_set_parent_frame): Call FRAME_NS_P instead of FRAME_X_P (Bug#30019).
* Inherit query-on-exit flag to stderr process (Bug#30031)Philipp Stephani2018-01-101-2/+6
| | | | | | | * src/process.c (Fmake_process): Have the pipe process honor the parent's query-on-exit flag. * test/src/process-tests.el (make-process/noquery-stderr): New test.
* Fix child frame placement issues (bug#29953)Alan Third2018-01-062-19/+33
| | | | | | | | | | | * src/nsterm.h (NS_PARENT_WINDOW_LEFT_POS): (NS_PARENT_WINDOW_TOP_POS): Get the parent frame through the frame struct as invisible child windows are detached from their parents in NS. * src/nsterm.m (x_set_offset): Offscreen frames have `nil' screen value, so handle that gracefully. Child frames with negative left and top should be positioned relative to the bottom right of the parent frame.
* Fix valgrind report in call-interactivelyEli Zaretskii2018-01-061-4/+17
| | | | | * src/callint.c (Fcall_interactively): Don't try to access more bytes than are available in the interactive spec. (Bug#30004)
* * src/editfns.c (Fsave_excursion): Doc fix. (Bug#30001)Eli Zaretskii2018-01-061-1/+1
|
* Fix Dired display and operations on file names with raw bytesEli Zaretskii2018-01-061-3/+16
| | | | | | * src/coding.c (decode_coding): When flushing remaining raw bytes from multibyte text, copy 2-byte forms of eight-bit-* characters as single characters, not as 2 raw bytes. (Bug#29189)
* ; Comments related to src/termcap.cGlenn Morris2018-01-052-1/+4
|
* Fix menu keyboard shortcuts on macOS (Bug#29595)Alan Third2018-01-011-6/+15
| | | | | | * src/nsmenu.m (addItemWithWidgetValue)[NS_IMPL_COCOA]: It looks like macOS 10.13 no longer ignores long modifier strings, so explicitly use an empty string.
* 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.