Commit graph

35630 commits

Author SHA1 Message Date
Juanma Barranquero
35e951cd4b */ChangeLog: Trivial fixes. 2014-03-03 05:57:26 +01:00
Martin Rudalics
2907acd464 Consider Vother_window_scroll_buffer valid iff it's a live buffer.
* window.c (Fother_window_for_scrolling): Don't try to scroll a
killed Vother_window_scroll_buffer.
(Vother_window_scroll_buffer): Fix doc-string accordingly.
2014-03-01 20:15:29 +01:00
Eli Zaretskii
cb8b26b4ba Fix bug #16751 with crashes in expand-file-name on Windows.
src/fileio.c (Fexpand_file_name) [WINDOWSNT]: Don't treat file names
 that start with more than 2 slashes as UNCs.
2014-03-01 13:51:02 +02:00
Paul Eggert
8268febfe0 Fix a few crashes and leaks when cloning C strings.
* alloc.c, lisp.h (dupstring): New function.
* gtkutil.c (xg_get_font):
* term.c (tty_default_color_capabilities):
* xsettings.c (store_monospaced_changed)
(store_font_name_changed, parse_settings)
(read_and_apply_settings, init_gsettings, init_gconf): Use it.
This avoids some unlikely crashes due to accessing freed storage,
and avoids some minor memory leaks in the more-typical case.
2014-02-28 13:45:34 -08:00
Martin Rudalics
5c80919598 Don't show drag cursor when modeline can't be dragged (Bug#16647).
* xdisp.c (note_mode_line_or_margin_highlight): Don't show drag
cursor when modeline can't be dragged (Bug#16647).
2014-02-28 11:32:11 +01:00
Glenn Morris
2241d76e83 * src/doc.c (Fsnarf_documentation): Snarf not-yet-bound variables
from custom-delayed-init-variables.

Fixes: debbugs:11565
2014-02-27 21:00:17 -05:00
Martin Rudalics
653b6ea317 More fixes for mouse glyph calculations (Bug#16647).
More fixes for mouse glyph calculations (Bug#16647).
* window.c (coordinates_in_window): In intersection of
horizontal and vertical window dividers prefer the horizontal
one.  Add some extra parens to last fix.
(window_relative_x_coord): Return x-coordinate for header and
mode line too.
* xdisp.c (remember_mouse_glyph): In text area don't extend
glyph into mode line to show the vertical drag cursor there
immediately.  Subdivide mouse glyphs in right fringes to show a
horizontal drag cursor as soon as we enter the "grabbable width"
portion.  Handle vertical border case separately.  Do not
subdivide window divider areas.
(note_mouse_highlight): On bottom divider of bottommost windows
show vertical drag cursor only when the minibuffer window can be
resized.
2014-02-27 20:22:10 +01:00
Eli Zaretskii
11de63ede0 Fix bug #16870 with 'box' face in display strings.
src/xdisp.c (pop_it): Restore the it->face_box_p flag which could be
 reset by the face of the object just displayed.  See also bug#76.
 (get_next_display_element): If the string came from a display
 property, examine the box face attribute at it->position, not at
 it->current.pos, since the latter was not updated yet.
 (handle_face_prop): Improve commentary.
2014-02-27 19:42:00 +02:00
Michael Albinus
d8c25f59d6 * dbusbind.c (Fdbus__init_bus, Qdbus__init_bus, Sdbus__init_bus):
Rename from Fdbus_init_bus_1, Qdbus_init_bus_1, Sdbus_init_bus_1.
2014-02-27 16:36:14 +01:00
Martin Rudalics
aea124c47d Fixes around Bug#16647.
* xdisp.c (remember_mouse_glyph): Handle ON_RIGHT_DIVIDER and
ON_BOTTOM_DIVIDER cases.
* window.c (coordinates_in_window): Return ON_VERTICAL_BORDER
only if the window has no right divider.
(Fcoordinates_in_window_p): Fix doc-string.
2014-02-26 09:07:34 +01:00
Juanma Barranquero
0e46275b4d src/lread.c (Funintern): Fix doc to match advertised calling convention. 2014-02-25 23:51:34 +01:00
Glenn Morris
7231101775 Add some Authors: headers based on authors.el. 2014-02-25 13:32:52 -05:00
Daniel Colascione
7c56ecf5f5 Fix event race 2014-02-24 06:27:37 -08:00
Glenn Morris
ca58fa737d Misc small frame/window doc
* src/frame.c (frame-alpha-lower-limit, frame-resize-pixelwise):
* src/window.c (window-resize-pixelwise): Doc fixes.

* etc/NEWS: Related edits.
This including unmarking some items marked as ---, where it it not
clear to me that no doc updates are needed.
2014-02-22 13:49:10 -08:00
Glenn Morris
f33095ed6b Bit more doc for process filter and sentinel changes
* src/process.c (Finternal_default_process_filter)
(Finternal_default_process_sentinel): Doc tweaks.

* doc/lispref/processes.texi: Typo fixes.

* etc/NEWS: Related markup.
2014-02-22 13:08:22 -08:00
Glenn Morris
458e643be8 Some doc updates for default process sentinels and filters not being nil
* doc/lispref/internals.texi (Process Internals):
* doc/lispref/processes.texi (Deleting Processes, Output from Processes)
(Process Buffers, Filter Functions, Accepting Output, Sentinels)
(Network, Network Servers, Network Processes, Serial Ports):
Filters and sentinels can no longer be nil.

* doc/lispref/elisp.texi (Top): Menu update.

* doc/misc/flymake.texi (Starting the syntax check process): Grammar fix.

* doc/misc/tramp.texi (External packages): Grammar fix.
Reword for default sentinel not being nil any more.

* src/process.c (Fprocess_buffer, Faccept_process_output)
(Finternal_default_process_filter, Finternal_default_process_sentinel):
Doc fixes.
2014-02-21 00:04:15 -08:00
Martin Rudalics
8dd3e94fb6 Fix handling of window-min-height/-width (Bug#16738).
* window.el (window--dump-window, window--dump-frame): New
functions.
(window--min-size-1): Account for window dividers.  When
window-resize-pixelwise is nil, delay rounding till after the
sum of the window components has been calculated.
(window--min-delta-1, window--max-delta-1): When PIXELWISE is
nil make sure at least one text line and two text columns remain
fully visible.
(window-resize): Signal an error when window-resize-apply fails.
(window--resize-child-windows): Fix calculation of by how many
pixels a window can still be shrunk via window-new-normal.
(adjust-window-trailing-edge): Call window--resizable with
correct TRAIL argument.
2014-02-21 09:02:05 +01:00
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