1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-04 19:10:37 -08:00
Commit graph

35971 commits

Author SHA1 Message Date
Jan D
4d2e7e1754 Fixes: debbugs:19175
* gtkutil.c (xg_display_open):
* xterm.c (x_display_ok, x_term_init): Block SIGIO when opening
a display.
2015-03-29 21:16:23 +02:00
Eli Zaretskii
22ece83a65 src/w32proc.c: Describe in a comment w32 subprocess implementation. 2015-03-28 20:37:47 +03:00
Nicolas Petton
8478885dfa Bump version to 24.5 for the release-candidate 2015-03-27 09:52:01 +01:00
Martin Rudalics
13cf575c1d Don't round up scroll bar width with GTK3 (Bug#20182).
* gtkutil.c (update_theme_scrollbar_width): Don't round up
scroll bar width with GTK3 (Bug#20182).
2015-03-25 11:17:30 +01:00
Glenn Morris
a4ff05a217 ChangeLog fix
No need to merge to trunk, since it corrects a backported entry that
should not appear in trunk.
2015-03-22 11:11:27 -07:00
Jan D
ae3d733360 Backport 20156 fix (stack corruption)
Fixes: debbugs:20156

* src/fontset.c (fontset_pattern_regexp): Backport: Replace + 1 with
+ 3 in alloca (tiny change)
2015-03-22 10:21:45 +01:00
Glenn Morris
cc11321582 Fix --no-bitmap-icon
* src/frame.h (x_set_bitmap_icon): Don't set the icon if icon-type is
nil/not present in the parameter alist.

Fixes: debbugs:19680
2015-03-12 08:59:56 -07:00
Eli Zaretskii
f1601063f2 Avoid assertion violations in Rmail due to newline cache
src/search.c (find_newline): Avoid assertion violations in
 CHAR_TO_BYTE when a portion of the buffer was deleted and we look
 for newlines near the end of the buffer.  This happens in Rmail
 hen JIT font-lock fontifies a newly displayed portion of the
 buffer.
2015-02-28 12:33:32 +02:00
Eli Zaretskii
18178922a8 Avoid erratic behavior of menu-bar tooltips on w32 (Bug#19925)
src/w32fns.c (Fw32__menu_bar_in_use): New internal function.

 lisp/frame.el (blink-cursor-timer-function): Don't increment
 blink-cursor-blinks-done counter when a menu is active on a w32
 frame.
2015-02-23 19:46:44 +02:00
Glenn Morris
35f047c066 * src/fileio.c (Fmake_temp_name): Doc tweaks.
Fixes: debbugs:19858
2015-02-19 21:42:22 -08:00
Eli Zaretskii
432b00e659 Fix assertions in popping up menus on TTY (Bug#19862)
Do not merge this commit to trunk!

 src/menu.c (Fx_popup_menu) [HAVE_X_WINDOWS]: Call
 mouse_position_for_popup only for X frames.
2015-02-14 15:03:20 +02:00
Eli Zaretskii
8b3ba7ae65 Improve docs of transient-mark-mode (Bug#19841)
src/buffer.c (syms_of_buffer): Doc fix.

 lisp/simple.el (transient-mark-mode): Doc fix.
2015-02-13 11:09:21 +02:00
Eli Zaretskii
20c817d365 Fix handling of frame color parameters in TTY sessions (Bug#19802)
src/xfaces.c (map_tty_color): Use assoc_no_quit instead of
 assq_no_quit to fetch color definition by its string name.

 lisp/frame.el (frame-notice-user-settings): Refresh the value of
 frame parameters after calling tty-handle-reverse-video.  Call
 face-set-after-frame-default with the actual parameters, to avoid
 resetting colors back to unspecified.
 (set-background-color, set-foreground-color): Pass the selected
 color to face-set-after-frame-default.
2015-02-08 18:17:40 +02:00
Eli Zaretskii
c0ba5908b1 Fix vertical-motion and posn-at-point when word-wrap is on (Bug#19769)
src/xdisp.c (move_it_in_display_line_to): Handle the case where the
 last character of a screen line is whitespace, and we are under
 word-wrap with overflow-newline-into-fringe turned on.
2015-02-05 19:07:15 +02:00
Eli Zaretskii
e589765b88 A more thorough fix for bug#19307
src/xdisp.c (handle_stop, handle_single_display_spec)
 (next-element_from_image): Don't reset the
 ignore_overlay_strings_at_pos_p flag here.
 (next_element_from_buffer): Reset ignore_overlay_strings_at_pos_p
 here.
 (next_overlay_string): Set ignore_overlay_strings_at_pos_p here,
 after we've exhausted all the overlay strings at the current
 position.
2015-02-03 20:52:18 +02:00
Eli Zaretskii
27e11c0185 Fix display of overlay strings with faces after ellipsis (Bug#19307)
src/xdisp.c (set_iterator_to_next): Set value of stop_charpos
 according to the object we are about to resume iterating.
2015-02-02 18:23:32 +02:00
Eli Zaretskii
e9a7e10b18 Fix redrawing of mode lines when exposed (Bug#19721)
src/dispnew.c (adjust_glyph_matrix): Set the update_mode_line flag
 of the window whose current glyph matrix was resized, which
 disables the mode-line row as side effect.
 src/xdisp.c (redisplay_window): Don't avoid redisplay of a window
 whose update_mode_line flag is set.
2015-02-02 18:15:13 +02:00
Eli Zaretskii
be7fb822b8 src/dispextern.h (FACE_FOR_CHAR): Fix the commentary. 2015-01-30 13:47:47 +02:00
Hans Wennborg
868df45153 Avoid compiler warnings in decode_env_path.
src/emacs.c (decode_env_path): Add parentheses around ternary
 operator to increase readability and pacify compiler warnings.
2015-01-29 21:31:14 +02:00
Eli Zaretskii
989fb32064 Improve solution of bug #19701
src/w32.c (sys_readdir): Map ERROR_NOT_READY (as in "device not ready")
 to ENOENT.
2015-01-29 20:43:08 +02:00
Eli Zaretskii
ad588afdaa Improve the fix for bug #19701
src/dired.c (directory_files_internal, file_name_completion)
 [WINDOWSNT]: Signal an error when errno is set non-zero by
 'readdir', regardless of its value.
 src/w32.c (sys_readdir): Set errno to ENOENT when the directory
 doesn't exist and to EACCES when it's not accessible to the
 current user.  Set errno to zero when FindNextFile exhausts the
 directory, so that callers don't interpret that as an error and
 don't signal a file-error.
 (open_unc_volume): Set errno to ENOENT if WNetOpenEnum fails.
2015-01-28 19:42:28 +02:00
Eli Zaretskii
9664defd26 Signal a file-error from directory-files on MS-Windows (Bug#19701)
src/dired.c (directory_files_internal) [WINDOWSNT]: If readdir
 returns NULL and errno is ENOTDIR, behave as if opendir failed to
 open the directory.
 src/w32.c (sys_readdir): If FindFirstFile fails because the
 directory doesn't exist, set errno to ENOTDIR.
2015-01-27 21:02:13 +02:00
Jan D
b4f40757ef Fixes: debbugs:19660
* nsterm.m (drawRect:): Add block/unblock_input.
2015-01-24 10:57:21 +01:00
Paul Eggert
88ba49fe35 Fix coding.c subscript error
* coding.c (CODING_ISO_INVOKED_CHARSET):
Avoid undefined behavior if CODING_ISO_INVOCATION returns negative.
2015-01-21 00:29:32 -08:00
Paul Eggert
4c09e3aef9 Backport: correct old fix for GTK font selection
* gtkutil.c (xg_get_font): Fix off-by-2 typo.
Fixes: bug#3228
2015-01-20 22:05:58 -08:00
Jan D
87309740ca Backport from trunk of bug 19531.
Fixes: debbugs:19531

* nsterm.m (EV_TRAILER2): Set Vinhibit_quit to Qt.
2015-01-21 06:18:59 +01:00
Eli Zaretskii
e6518fc8f5 Fix display of images in R2L screen lines
src/xdisp.c (produce_image_glyph): Fix display of images in R2L
 screen lines: prepend the new glyph to the ones already there
 instead of appending it.
2015-01-17 20:32:16 +02:00
Eli Zaretskii
61cc7bf8c4 Fix support of non-ASCII frame titles on MS-Windows (Bug#19590)
src/w32fns.c (w32_set_title_bar_text): New function, including
 support for titles with non-ASCII characters outside of the
 current system codepage.
 (x_set_name, x_set_title): Use it.
2015-01-14 20:14:02 +02:00
Eli Zaretskii
b544ab561f Fix return value of vertical-motion at ZV (Bug#19553)
src/indent.c (Fvertical_motion): Return zero if we started from ZV
 and there's an overlay after-string there.
2015-01-10 15:03:51 +02:00
Eli Zaretskii
70f298f88e Fix the description of -nl in --help text. (Bug#19542)
src/emacs.c (usage_message): Fix the description of the -nl switch.
2015-01-09 11:13:33 +02:00
Eli Zaretskii
7c0bfa1d08 Fix line-move-visual's following of column in R2L lines (backport from trunk).
src/simple.el (line-move-visual): When converting X pixel coordinate
 to temporary-goal-column, adjust the value for right-to-left
 screen lines.  This fixes vertical-motion, next/prev-line, etc.

 src/dispnew.c (buffer_posn_from_coords): Fix the value of the column
 returned for right-to-left screen lines.  (Before the change on
 2014-12-30, the incorrectly-computed X pixel coordinate concealed
 this bug.)

(cherry picked from commit 5fbd17e369)

Conflicts:
	lisp/simple.el
2015-01-09 11:06:18 +02:00
Eli Zaretskii
d279e66808 Fix assertion violations in try_window_id (Bug#19511)
src/xdisp.c (move_it_to, try_cursor_movement): Don't use the window
 end information if the window_end_valid flag is unset.
 (try_window_id): If the call to display_line invalidated the
 window end information, give up the try_window_id optimization.
2015-01-05 17:42:55 +02:00
Eli Zaretskii
5981b4b1c0 More doc fixes for bug#19502 -- make documentation less X-specific.
doc/lispref/frames.texi (Display Feature Testing): Make the description of
 x-server-version and x-server-vendor less X-specific.

 Make doc strings on X and w32 identical.
 src/w32fns.c (Fx_server_version, Fx_server_vendor): Doc fix.
 src/xfns.c (Fx_server_version, Fx_server_vendor): Doc fix.
2015-01-04 20:30:16 +02:00
Eli Zaretskii
143516c73d src/emacs.c (syms_of_emacs) <system-configuration>: Doc fix. (Bug#19502) 2015-01-04 17:51:35 +02:00
Paul Eggert
732fd4c7e1 Update copyright year to 2015
Run admin/update-copyright.
2015-01-01 09:18:06 -08:00
Eli Zaretskii
9758516441 Fix a typo in a comment in the previous commit. 2014-12-30 21:51:34 +02:00
Eli Zaretskii
aa472a3771 Fix the pixel coordinates returned by pos-visible-in-window-p. (Bug#19473)
src/xdisp.c (pos_visible_p): Fix up the X coordinate for
 right-to-left screen lines.
2014-12-30 19:29:24 +02:00
Paul Eggert
b5c9c131ca Spelling fixes 2014-12-28 15:06:16 -08:00
Eli Zaretskii
c5504d1005 src/w32proc.c (Fw32_get_codepage_charset): Doc fix. (Bug#19458) 2014-12-28 20:32:53 +02:00
Paul Eggert
b54f5721bf Port memory-full checking to GnuTLS 3.3
Instead of using gnutls_global_set_mem_functions, check every call
to a GnuTLS function that might return an indication of memory
exhaustion.  Suggested by Dmitry Antipov in:
http://lists.gnu.org/archive/html/emacs-devel/2014-12/msg02056.html
* src/gnutls.c (gnutls_global_set_mem_functions) [WINDOWSNT]: Remove.
(init_gnutls_functions): Do not load gnutls_global_set_mem_functions.
(fn_gnutls_global_set_mem_functions) [!WINDOWSNT]: Remove.
All uses removed.
(check_memory_full): New function.
(emacs_gnutls_handshake, emacs_gnutls_handle_error)
(gnutls_make_error, Fgnutls_boot): Use it.
(emacs_gnutls_global_init): Avoid gnutls_global_set_mem_functions.
2014-12-27 23:45:46 -08:00
Eli Zaretskii
a41d07b329 Fix rendering of composed caharacters on the mode line. (Bug#19435)
src/xdisp.c (set_iterator_to_next) <GET_FROM_STRING>: Limit search in
 composition_compute_stop_pos to the number of characters in the
 string.
 <GET_FROM_BUFFER, GET_FROM_STRING>: Simplify code.
 src/composite.c (composition_compute_stop_pos): If no composition
 was found in a string before ENDPOS, and ENDPOS is the string end,
 no need to back up to a safe point.
 src/dispextern.h (struct it) <end_charpos>: Improve commentary.
2014-12-25 17:38:15 +02:00
Jan D
0d48826fd3 Avoid compiler warning.
* nsimage.m (setPixmapData): Rename local variable bmRep to avoid
compiler warning.
2014-12-24 12:26:25 +01:00
Jan D
5fc82109ba Backport: Memory leak fix and 19133 fix.
Fixes: debbugs:19133

* nsimage.m (allocInitFromFile:): Initialize bmRep.
(dealloc): Release bmRep.
(setPixmapData): Make bmRep local so class member is not
set.
2014-12-24 12:24:14 +01:00
Jan D
bef46ba222 Fix bad bug number reference, shall be 19427. 2014-12-24 12:12:19 +01:00
Jan D
2566f386bf Backport: Don't cache images in nsimage.m (Bug#18918).
Fixes: Bug#18918

* nsterm.h (EmacsImage): Remove imageListNext, refCount, reference,
imageListSetNext, imageListNext.

* nsimage.m (ImageList, imageListNext, imageListSetNext:)
(reference): Remove.
(allocInitFromFile:): Remove searching ImageList and calling
reference (Bug#18918).
(dealloc): Remove handling if ImageList.
2014-12-24 12:10:01 +01:00
Jan D
8e818d17d2 Keep maximized when going fullscreen.
Author:
Fixes: Bug#19427

* xterm.c (do_ewmh_fullscreen): Don't remove maximized_horz/vert
when going to fullscreen (Bug#19427).
2014-12-22 11:04:24 +01:00
Eli Zaretskii
811aceeaef src/window.c (Fwindow_body_width): Doc fix. (Bug#19395) 2014-12-18 19:15:01 +02:00
Stefan Monnier
fb420e7789 * lisp/subr.el (sit-for): Tweak docstring.
Fixes: debbugs:19381

* src/buffer.c (syms_of_buffer) <Vafter_change_functions>: fix docstring.
* build-aux/git-hooks/commit-msg (at_sign): Bump up line-length limit
to 78.
2014-12-15 15:09:04 -05:00
Eli Zaretskii
d9005dd52d src/gnutls.c (gnutls_init): Fix deprecation warning from GCC. 2014-12-13 18:58:08 +02:00
Eli Zaretskii
16d4c1cdc8 A better fix for bug#19346
src/gnutls.c (Fgnutls_available_p, syms_of_gnutls): Move
 gnutls-available-p out of the HAVE_GNUTLS conditional, and define
 them only once.
2014-12-12 11:19:59 +02:00