summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* In x_set_window_size restore do_pending_window_change callsMartin Rudalics2016-04-222-0/+4
| | | | | | | * src/xterm.c (x_set_window_size): * src/w32term.c (x_set_window_size): Restore do_pending_window_change calls after their stupid removal on 2015-08-31.
* Fix Alt-modified keys on some European MS-Windows keyboardsIlya Zakharevich2016-04-211-1/+37
| | | | | | * src/w32fns.c (deliver_wm_chars): If the reported character is ASCII, AND Meta modifier is a candidate, behave as if Meta is present, i.e. fall back to the legacy code. (Bug#23251)
* Port to GCC 5.3.1 20160406 (Red Hat 5.3.1-6)Paul Eggert2016-04-161-1/+1
| | | | | * src/indent.c (Fvertical_motion): Pacify --enable-gcc-warnings when using the April 6 Fedora patch to GCC.
* Fix w32 memory-management problem when extending buffer textEli Zaretskii2016-04-151-4/+4
| | | | | | | | | | | | | | * src/w32heap.c (mmap_realloc): Only attempt extending a region if the following region has the same allocation base. Also, use the original allocation base and enlarged size to commit reserved memory, to ensure that the allocation base stays at its original value. This fixes several hard-to-debug problems whereby part of buffer text was overwritten with binary nulls, because mmap_realloc copied only part of buffer text when extending it. See http://lists.gnu.org/archive/html/emacs-devel/2016-04/msg00325.html and http://debbugs.gnu.org/cgi/bugreport.cgi?bug=23223#55 for two examples of the related problems.
* substitute-command-keys keeps quotes’ text propsPaul Eggert2016-04-141-3/+22
| | | | | | | | Problem reported by Clément Pit--Claudel (Bug#23254). * src/doc.c: Include intervals.h. (Fsubstitute_command_keys): If the only substitutions are for quotes, copy the source string’s text properties too, since no substring lengths have changed.
* * src/xwidget.c (x_draw_xwidget_glyph_string): More clipping fixes.YAMAMOTO Mitsuharu2016-04-141-16/+10
|
* Improve time zone documentationPaul Eggert2016-04-121-12/+15
| | | | | | | | | | | | | | | | * doc/lispref/os.texi (Time Zone Rules): New section, mostly with material moved here from other sections. * doc/emacs/cmdargs.texi (General Variables): * doc/lispref/os.texi (Time Conversion, Time Parsing): Xref new section. * etc/NEWS, etc/PROBLEMS: * lisp/org/org.el (org-timestamp-format): * src/editfns.c (Fformat_time_string, Fdecode_time) (Fencode_time, Fcurrent_time_string, Fcurrent_time_zone) (Fset_time_zone_rule): When documenting time zone rule strings, mention the TZ environment variable in preference to mentioning the sort-of-internal function set-time-zone-rule.
* Disable multicolor fonts on OS X since they are not supported on free systemsYAMAMOTO Mitsuharu2016-04-121-3/+3
| | | | * src/macfont.m (macfont_list): Don't use color bitmap fonts.
* ; Spelling fixesPaul Eggert2016-04-101-1/+1
|
* Remove undefined behavior in OS X dumper.Philipp Stephani2016-04-091-1/+20
| | | | | | | Found by Address Sanitizer. * src/unexmacosx.c (unexec_write): Use Mach virtual memory API to avoid undefined behavior when reading arbitrary memory.
* Fix clipping of xwidgetsJoakim Verona2016-04-091-18/+16
| | | | | | * src/xwidget.c (x_draw_xwidget_glyph_string): Use window_box instead of calculating the clipping borders manually. Suggested by YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>.
* * src/xsmfns.c (syms_of_xsmfns): Remove stray "s in doc strings.Paul Eggert2016-04-081-2/+2
|
* Set locale encoding to UTF-8 when run from OS X GUI.Alan Third2016-04-081-1/+8
| | | | * src/nsterm.m (ns_init_locale): Append .UTF-8 when setting LANG.
* ; * src/keyboard.c (read_char): Fix typos in a comment.Eli Zaretskii2016-04-031-1/+1
|
* make-xwidget unused arg cleanupPaul Eggert2016-04-021-7/+7
| | | | | * doc/lispref/display.texi (Xwidgets): Remove stray refs. * src/xwidget.c (syms_of_xwidget): Qwebkit, not Qwebkit_osr.
* Remove unused arguments from make-xwidgetJoakim Verona2016-04-021-10/+6
| | | | | | | | | The arguments BEG and END were unused, and are now removed. * display.texi (Xwidgets): Document the change * xwidget.el (make-xwidget, xwidget-insert) (xwidget-webkit-new-session): Reflect changed arguments * xwidget.c (Fmake_xwidget, syms_of_xwidget): Reflect changed arguments
* Avoid crashes due to insanely large columns in tabulated-list-formatEli Zaretskii2016-04-012-3/+9
| | | | | | | | | | | * src/xdisp.c (append_stretch_glyph, produce_xwidget_glyph) (produce_image_glyph): Limit the pixel width of the produced glyph to SHRT_MAX. (Bug#23178) (append_composite_glyph, append_glyph, append_glyphless_glyph): Add assertions to verify that the pixel width of the glyph will never overflow a 'short'. * src/term.c (append_composite_glyph): Add assertion to verify that the pixel width of the glyph will never overflow a 'short'.
* Fix rare problems with echo-area display and multiple framesEli Zaretskii2016-03-291-0/+9
| | | | | | * src/xdisp.c (redisplay_window): Bind inhibit-redisplay non-nil around the call to x_consider_frame_title, to prevent resize_mini_window from undoing echo-area display. (Bug#23124)
* * src/font.c (QCuser_spec): Add missing colon to :user-spec.Paul Eggert2016-03-271-1/+1
|
* * src/xwidget.c (Fxwidget_resize): Fix inappropriate use of XFASTINT.YAMAMOTO Mitsuharu2016-03-271-1/+1
|
* Ignore non-nil. non-cons values of unread-command-eventsEli Zaretskii2016-03-261-4/+4
| | | | | | * src/keyboard.c (requeued_events_pending_p, read_char) (Finput_pending_p): Use CONSP instead of !NILP to see if there are unread command events to be processed. (Bug#22976)
* Improve documentatuon of 'truncate-partial-width-windows'Eli Zaretskii2016-03-261-2/+5
| | | | | | | | | | | * src/xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Clarify in the doc string how the width of partial-width windows is computed for the purposes of truncation decision. (Bug#4338) * doc/emacs/windows.texi (Split Window): Clarify how the width of windows is calculated for the purposes of truncation decision. * doc/emacs/display.texi (Line Truncation): Remove a redundant index entry.
* * src/ftfont.c (ftfont_shape_by_flt): Parenthesize as per GNU style.Paul Eggert2016-03-251-2/+2
|
* Fix scrolling upwards with 'xwidget-webkit-browse-url'Eli Zaretskii2016-03-251-1/+1
| | | | | | * src/xwidget.c (Fxwidget_set_adjustment): Use CHECK_NUMBER instead of CHECK_NATNUM. Suggested by Shayan Pirani <shayanpirani@gmail.com>. (Bug#22918)
* Fix display of Indic scriptsK. Handa2016-03-251-1/+6
| | | | | | * ftfont.c (ftfont_shape_by_flt): For combining characters out of the range U+300...U+36F, use the "combining" FLT only with non-OTF fonts.
* Fix splash screen display at startupEli Zaretskii2016-03-251-1/+1
| | | | | | | | | | | | * src/frame.c (DEFAULT_ROWS): Enlarge to 36, so that the initial window displayed by "emacs -q" has enough space to show the whole text even if it includes 2 lines talking about recovering crashes sessions. (Bug#23074) * lisp/startup.el (use-fancy-splash-screens-p): Fix off-by-one error when computing the window-height from frame-height. * etc/NEWS: Mention the change.
* Avoid GTK 3 crash with icons and masksPaul Eggert2016-03-241-66/+34
| | | | | | | | | | | Problem reported by Mosè Giordano (Bug#18997). * src/gtkutil.c (xg_get_pixbuf_from_pixmap): Remove. (xg_get_pixbuf_from_pix_and_mask): Do not use xg_get_pixbuf_from_pixmap, as it is poorly documented. Instead, invoke XGetPixel directly. This is slow but speed is not important here. Also, fail for unusual situations (not TrueColor, or images that are not 8 bits per sample) instead of displaying junk or crashing.
* Define make_save_ptr_ptr unconditionallyEli Zaretskii2016-03-241-2/+0
| | | | | | * src/alloc.c (make_save_ptr_ptr): Remove the !(defined USE_X_TOOLKIT || defined USE_GTK) conditional. Reported by Philipp Stephani <phst@google.com>. (Bug#23101)
* Preserve current buffer when popping up TTY menusEli Zaretskii2016-03-241-1/+6
| | | | | * src/term.c (tty_menu_show): Be sure to save and restore the current buffer around TTY menu pop-ups. (Bug#23101)
* Improve font selection by family on MS-WindowsEli Zaretskii2016-03-241-1/+2
| | | | | | | | | | * src/w32font.c (w32font_list_internal): Allow 'ascii-0' charset, in addition to 'iso10646-1', 'unicode-bmp', and 'unicode-sip'. This avoids rejecting many font families whose members are shown by 'font-family-list', in particular 'courier' requested by info.el. Without this change, many values of ':family' attribute of a face have no effect on MS-Windows, because they are rejected due to bogus mismatch of the charset.
* Make `toggle-frame-maximized' respect the dock on OS X (bug#22988).Anders Lindgren2016-03-221-22/+120
| | | | | | | | * src/nsterm.m (ns_screen_margins): New function. (ns_screen_margins_ignoring_hidden_dock): New function. (ns_menu_bar_height): Reimplement in terms of `ns_screen_margins'. ([EmacsWindow zoom:]): Take all screen margins (except those originating from a hidden dock) into account.
* Fix bug in displaying header line with a box faceEli Zaretskii2016-03-221-14/+47
| | | | | | * src/xdisp.c (get_next_display_element): Handle the case when a display string acquires the box face from an underlying string, not from the buffer. (Bug#23091)
* ; Spelling fixesPaul Eggert2016-03-181-2/+1
|
* Port to strict C99 offsetofPaul Eggert2016-03-182-2/+3
| | | | | | | * src/bidi.c (bidi_copy_it): * src/lisp.h (CHAR_TABLE_EXTRA_SLOTS): Use only a single identifier as the second argument of offsetof. Found by using clang -pedantic.
* Port to GTK with strict C11 compilerPaul Eggert2016-03-181-8/+4
| | | | | | | | * src/gtkutil.c (xg_create_frame_widgets, xg_toggle_notify_cb): Cast from function type to void * where the C standard requires this. This works around a problem in the prototypes for g_signal_handler_find and g_signal_handlers_block_by_func, which use gpointer instead of GCallback. Found by using gcc -pedantic.
* Port to GTK with strict C99 compilerPaul Eggert2016-03-172-3/+1
| | | | | | | | * src/emacsgtkfixed.c: Use workaround for GNOME bug 683906 only in glib 2.35.6 and earlier, since the bug is fixed in 2.35.7. * src/emacsgtkfixed.c (EmacsFixedPrivate): * src/emacsgtkfixed.h (EmacsFixedClass): Remove duplicate typedef, which strict C99 does not allow (Bug#23003).
* Avoid screen artifacts with new OS X visible bell after scrollingAnders Lindgren2016-03-171-1/+29
| | | | | | | * src/nsterm.m (EmacsBell): Save NSView when displaying the visible bell and set `needsDisplay' when removed. (hide_bell): Trace. (ns_copy_bits): Trace.
* Avoid segfaults due to frame image cache being absentEli Zaretskii2016-03-161-0/+3
| | | | | * src/image.c (cache_image): If the frame doesn't have an image cache, create it. (Bug#23028)
* ; * src/xdisp.c (with_echo_area_buffer): Fix typos in comments.Eli Zaretskii2016-03-161-3/+3
|
* Port to clang 3.7.0 on x86-64Paul Eggert2016-03-152-3/+5
| | | | | | | | | | | | * configure.ac: Use AS_IF so that gl_WARN_ADD’s prerequisites are not done conditionally. This helps clang, which needs -Wunknown-warning-option later when configured with warnings. * src/editfns.c (invalid_time): Now _Noreturn, since clang isn’t smart enough to figure this out on its own if warnings are enabled. (lisp_time_struct): Redo for clarity, and to pacify clang. * src/xfns.c (x_real_pos_and_offsets) [USE_XCB]: Don’t use uninitialized locals. This avoids undefined behavior and pacifies clang.
* Fix startup of "emacs -nw" on systems that CANNOT_DUMPEli Zaretskii2016-03-151-1/+6
| | | | | | | | * src/xdisp.c (syms_of_xdisp) <resize-mini-windows>: Initialize to nil. * lisp/loadup.el <resize-mini-windows>: Set to 'grow-only' after loading window.el. (Bug#22975)
* * src/keyboard.c (echo_keystrokes_p): Don't test cursor_in_echo_areaStefan Monnier2016-03-141-5/+6
| | | | | (read_key_sequence): Test it here, as before. (bug#22825).
* Avoid crashes at startup on systems that CANNOT_DUMPEli Zaretskii2016-03-121-5/+11
| | | | | | | | | | | | | | | * src/xdisp.c (syms_of_xdisp) <redisplay--inhibit-bidi>: New boolean variable. (init_iterator, reseat_to_string) (Fcurrent_bidi_paragraph_direction) (Fbidi_find_overridden_directionality): Use redisplay--inhibit-bidi instead of purify-flag, to determine when it's safe to reorder bidirectional text. * lisp/loadup.el (redisplay--inhibit-bidi): Set to t at the beginning of the file. Reset to nil when charprop.el is successfully loaded, or when we are going to dump, whichever happens last. (Bug#22975)
* Don't use XRANDR 1.3 extensions if the server doesn't support them.Ken Raeburn2016-03-102-7/+26
| | | | | | | | | | | | | * src/xterm.h (struct x_display_info): Add fields to save XRANDR version number. * src/xfns.c (x_get_monitor_attributes): Save the version numbers after querying the X server. (x_get_monitor_attributes_xrandr): Don't use XRRGetOutputPrimary or XRRGetScreenResourcesCurrent if the server doesn't support at least RANDR version 1.3. Conditionalize the code blocks on compiling against library version 1.3 or better, rather than feature tests for each function. * configure.ac: Stop testing for those two functions.
* Rework C source files to avoid ^(Paul Eggert2016-03-10191-536/+533
| | | | | | | | Work around Bug#22884 by rewording comments and strings to avoid ‘(’ at the start of a line unless it starts a function. This change is a short-term hack; in the longer run we plan to fix cc-mode’s performance for C files that have ‘(’ at the start of a line in a comment or string.
* Properly handle lambda as read function (bug 22961)Andreas Schwab2016-03-091-2/+2
| | | | | | * src/lread.c (readchar): Be more strict about checking for string in cons for read_vector. (unreadchar): Likewise.
* Speed up redisplay of binary files with long series of nullsEli Zaretskii2016-03-061-6/+34
| | | | | | | | | | | | | | * src/bidi.c (bidi_resolve_weak): Avoid entering a loop searching for a character needed for resolving the type of a series of BN and ET characters, as required by rule W5 of UAX#9, if the results of the resolution are known in advance, because we are at level zero, and the previous strong character was L. (bidi_resolve_neutral): Partially resurrect the optimization for a long series of control characters in an otherwise strictly L2R text. (bidi_level_of_next_char): Don't enter the loop that searches for a paragraph separator if the current character is already at base embedding level. (Bug#22739)
* doc string file descriptor exhaustion fixPaul Eggert2016-03-041-3/+3
| | | | | * src/doc.c (get_doc_string): Move newly-added check to a better location (Bug#22814).
* Fix Bug#22814Michael Albinus2016-03-041-0/+3
| | | | | * src/doc.c (get_doc_string): Raise an error in case too many files are open. (Bug#22814)
* ; * src/w32proc.c: Update the commentary to sys_select.Eli Zaretskii2016-03-011-3/+4
|