1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-09 05:01:02 -08:00
Commit graph

35613 commits

Author SHA1 Message Date
Paul Eggert
9901fa1abc Pacify GCC when configuring with --enable-gcc-warnings.
* xdisp.c (move_it_in_display_line_to) [lint]:
Initialize recently-added local.
2014-02-20 23:42:42 -08:00
Daniel Colascione
4819842050 Improve dbus error handling; detect bus failure 2014-02-20 20:32:31 -08:00
Eli Zaretskii
679f782755 Fix excessive calls to bidi_shelve_cache reported in bug #15555.
src/xdisp.c (move_it_in_display_line_to): Save the iterator state in ppos_it
 only once per call.  Reimplement the method used to return to the
 best candidate position if all the positions found in display line
 are beyond TO_CHARPOS.  This cuts down the number of calls to
 bidi_shelve_cache, which moves a lot of stuff when lines are long
 and include bidirectional text.
2014-02-20 19:40:56 +02:00
Eli Zaretskii
dba8296c00 Fix assertion violation in redisplay.
src/xdisp.c (try_cursor_movement): Don't use cursor position if
 set_cursor_from_row failed to compute it.  This avoids assertion
 violations in MATRIX_ROW.
2014-02-20 19:17:54 +02:00
Eli Zaretskii
44a2be2d66 Fix bug #16819 with dereferencing invalid face pointer.
src/xdisp.c (init_iterator): Don't dereference a bogus face
 pointer.
2014-02-20 19:13:55 +02:00
Glenn Morris
189e70077d Some doc for defalias-fset-function
* doc/lispref/functions.texi (Defining Functions):
Mention defalias-fset-function.

* src/data.c (Fdefalias): Doc fix.

* etc/NEWS: Related edit.
2014-02-19 23:38:47 -08:00
Eli Zaretskii
d34f67dae3 Fix bug #16806 with horizontal scrolling of images when fringes are disabled.
src/xdisp.c (display_line): Fix horizontal scrolling of large images
 when fringes are turned off.  This comes at a price of not
 displaying the truncation/continuation glyphs in this case.
2014-02-19 19:32:29 +02:00
Eli Zaretskii
c021382022 Avoid crashes on MS-Windows when JPEG images are too large.
src/image.c (x_create_x_image_and_pixmap) [HAVE_NTGUI]: If
 CreateDIBSection returns an error indication, zero out *ximg after
 destroying the image.  This avoids crashes in memory allocations
 due to the fact that some of the callers also call
 x_destroy_x_image, which will attempt to free an already free'd
 block of memory.
2014-02-19 19:26:14 +02:00
Martin Rudalics
5185f8ed16 Don't set FRAME_PIXEL_HEIGHT and FRAME_PIXEL_WIDTH in update_various_frame_slots (Bug#16736).
* widget.c (update_various_frame_slots): Don't set
FRAME_PIXEL_HEIGHT and FRAME_PIXEL_WIDTH here (Bug#16736).
2014-02-18 11:52:00 +01:00
Michael Albinus
1825653e3d * dbusbind.c (xd_close_bus): Apply proper check on busobj. 2014-02-18 08:46:38 +01:00
Paul Eggert
3cb98721e2 temacs --daemon fix
* emacs.c (main): Initialize daemon_pipe[1] here ...
(syms_of_emacs): ... instead of here.

Fixes: debbugs:16599
2014-02-17 13:20:44 -08:00
Anders Lindgren
62901354fd * nsterm.m (keyDown:): Check for normal key even if NSNumericPadKeyMask
is set.

Fixes: debbugs:16505
2014-02-16 10:51:41 +01:00
Daniel Colascione
fa8ac13cba Make closing dbus buses actually work 2014-02-15 21:46:05 -08:00
Paul Eggert
e0cece6439 * character.h: Fix misspelling of file name in comment. 2014-02-14 08:11:11 -08:00
Eli Zaretskii
e2607667a1 Fix crashes in itimers on Windows 9X.
src/w32proc.c (start_timer_thread): Pass a non-NULL pointer as last
 argument to CreateThread.  This avoids segfaults on Windows 9X.
 Reported by oslsachem <oslsachem@gmail.com>.
2014-02-13 22:54:07 +02:00
Paul Eggert
d51c175a53 Fix subspace record bug on HP-UX 10.20.
* unexhp9k800.c (unexec_error): New function, to simplify the code.
(check_lseek): New function, to report lseek errors.
(save_data_space, update_file_ptrs, read_header, write_header)
(copy_file, copy_rest, unexec): Use these news functions.
(update_file_ptrs): Don't assume wraparound behavior when
converting a large size_t value to off_t.

Fixes: debbugs:16717
2014-02-13 09:23:08 -08:00
Dmitry Antipov
ccd5d23b0a Fix ChangeLog entry. 2014-02-13 16:23:28 +04:00
Dmitry Antipov
28c16c4070 * composite.c (fill_gstring_header): Pass positions as C integers
and move parameters checking to...
* composite.c (Fcomposition_get_gstring): ...this function.  Handle
case when buffer positions are in reversed order and avoid crash
(Bug#16739).  Adjust docstring.
* buffer.c (validate_region): Mention current buffer in error message.
2014-02-13 16:16:42 +04:00
Juanma Barranquero
c295fc18e3 Fix typos in Changelogs. 2014-02-13 03:19:48 +01:00
Jan Djärv
a9a61c77b3 * image.c (pbm_load): Set to NO_PIXMAP on error.
Fixes: debbugs:16683
2014-02-12 08:50:24 +01:00
Lars Ingebrigtsen
81bf542040 * buffer.c (syms_of_buffer): Doc clarification.
Fixes: debbugs:9981
2014-02-11 17:07:06 -08:00
Glenn Morris
20c7a2b4e2 Fix typo in previous 2014-02-11 13:05:01 -05:00
Glenn Morris
9a84bfd681 * src/nsfns.m (ns_display_info_for_name, Fx_open_connection): Doc fixes.
Replace refs to "OpenStep" in messages.
2014-02-11 13:02:19 -05:00
Paul Eggert
e41fe0d346 Avoid "." at end of error diagnostics.
* cmds.c (Fself_insert_command): Reword and avoid "." at end.
* font.c (Ffont_at):
* nsfns.m (ns_display_info_for_name):
* nsselect.m (Fx_own_selection_internal):
* nsterm.m (performDragOperation:):
Remove "." from end of diagnostic.
2014-02-10 14:15:54 -08:00
Dmitry Antipov
575593db50 * eval.c (call_debugger): When exiting the debugger, do not allow
max_specpdl_size less than actual binding depth (Bug#16603).
(syms_of_eval): Adjust docstring.
2014-02-10 13:48:17 +04:00
Lars Ingebrigtsen
8cd86d0434 (Fyes_or_no_p): Doc fix
Fixes: debbugs:15456
2014-02-09 22:04:39 -08:00
Lars Ingebrigtsen
a3a8a7da5b * fns.c (Fmaphash): Say what `maphash' returns, since it may be unintuitive.
Fixes: debbugs:15824
2014-02-09 21:55:53 -08:00
Dmitry Antipov
c67955902e * cmds.c (Fself_insert_command): Respect the width of EMACS_INT
and avoid warning.
2014-02-10 09:41:42 +04:00
Lars Ingebrigtsen
c838bca91d * cmds.c (Fself_insert_command): Output a clearer error message on negative repetitions.
Fixes: debbugs:9476
2014-02-08 22:32:30 -08:00
Lars Ingebrigtsen
fe46122024 * macros.c (Fexecute_kbd_macro): Doc fix. 2014-02-08 17:48:47 -08:00
Lars Ingebrigtsen
8acaaad7bd * syntax.c (Fskip_syntax_backward): Doc clarification.
Fixes: debbugs:15115
2014-02-07 21:12:47 -08:00
Lars Ingebrigtsen
aa60235ad4 * minibuf.c (Fread_string): Doc clarification.
Fixes: debbugs:15422
2014-02-07 20:23:25 -08:00
Lars Ingebrigtsen
af3e68a091 * buffer.c (Fmake_overlay): Doc clarification.
Fixes: debbugs:15489
2014-02-07 20:11:52 -08:00
Juanma Barranquero
85ade7eee6 * src/keyboard.c (Frecursive_edit): Fix typo in docstring. 2014-02-08 05:02:16 +01:00
Lars Ingebrigtsen
fff711eeb1 * doc/lispref/keymaps.texi (Menu Bar): Minor clarification.
* src/xdisp.c (syms_of_xdisp): Doc clarification (bug#15657).
2014-02-07 19:46:53 -08:00
Lars Ingebrigtsen
bb01d7bbc7 * keyboard.c (Frecursive_edit): Say more precicely how throwing `exit' works.
Fixes: debbugs:15865
2014-02-07 19:29:47 -08:00
Martin Rudalics
9be95071f4 In window_resize_apply adjust margin width, if necessary (Bug#16649).
* window.c (window_resize_apply): Adjust margin width, if necessary.
2014-02-07 11:55:28 +01:00
Martin Rudalics
dc0e4c4851 Constrain window body sizes.
* window.c (window_body_height, window_body_width): Don't return
negative value.
2014-02-07 11:03:10 +01:00
Martin Rudalics
99f10a5dae Constrain window box sizes (Bug#16649).
* xdisp.c (window_box_width): Don't return less than zero.
(window_box_left_offset, window_box_right_offset): Don't return
more than the window's pixel width.
2014-02-07 10:32:15 +01:00
Glenn Morris
a0baf35f68 * src/nsterm.m (syms_of_nsterm): Doc fix.
It is not necessary to say "default is..." since there are standard
mechanisms for displaying that information.
2014-02-06 19:25:52 -08:00
Paul Eggert
9d37482ce3 Spelling fix. 2014-02-06 10:29:57 -08:00
Eli Zaretskii
829f4f2256 Another fix for handling of file names on Windows 9X.
src/w32.c (pMultiByteToWideChar, pWideCharToMultiByte): New
 variables: pointers through which to call the respective APIs.
 (filename_to_utf16, filename_from_utf16, filename_to_ansi)
 (filename_from_ansi, sys_link, check_windows_init_file): Call
 MultiByteToWideChar and WideCharToMultiByte through pointers.
 This is required on Windows 9X, where we dynamically load
 UNICOWS.DLL which has their non-stub implementations.
 (maybe_load_unicows_dll): Assign addresses to these 2 function
 pointers after loading UNICOWS.DLL.
 src/w32fns.c (Fx_file_dialog, Fw32_shell_execute) [!CYGWIN]: Call
 MultiByteToWideChar and WideCharToMultiByte through function
 pointers.
 src/w32.h (pMultiByteToWideChar, pWideCharToMultiByte): New
 declarations.
2014-02-06 17:27:46 +02:00
Jan Djärv
029788c7e2 * nsterm.m (toggleFullScreen:): Hide menubar on secondary monitor
for OSX >= 10.9 if separate spaces are used.
(toggleFullScreen:): Use screen of w instead of fw.

Fixes: debbugs:16659
2014-02-06 08:57:53 +01:00
Glenn Morris
314ffdb1d7 Doc changes for cache-long-scans
Ref: http://debbugs.gnu.org/15797#65

* doc/lispref/display.texi (Truncation):
* doc/lispref/positions.texi (Screen Lines): Do not mention cache-long-scans.

* src/buffer.c (cache-long-scans): Doc fix.

* etc/NEWS: Related edit.
2014-02-05 20:27:26 -08:00
Martin Rudalics
81f9a6edde Fix last fix of note_mouse_highlight 2014-02-05 19:37:36 +01:00
Paul Eggert
658272052d Spelling fix. 2014-02-05 10:27:11 -08:00
Eli Zaretskii
a3c3a662ea src/w32.c: Fix typos in commentary. 2014-02-05 19:33:43 +02:00
Eli Zaretskii
6d48053b21 src/w32fns.c (Fw32_shell_execute): Doc fix. 2014-02-05 18:50:53 +02:00
Martin Rudalics
415e381049 In draw_fringe_bitmap_1 don't draw fringe if it's outside the window (Bug#16649).
* fringe.c (draw_fringe_bitmap_1): Don't draw a fringe if it's
outside the window (Bug#16649).
2014-02-05 11:46:44 +01:00
Bastien Guerry
bfdd79d309 Fix bug #16453.
* syntax.c (Fforward_word): Call Fconstrain_to_field with
ESCAPE-FROM-EDGE set to `nil' (Bug#16453).
2014-02-05 11:31:09 +01:00