| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
| |
instead of in xdisp.c, function now takes void.
* nsterm.h (ns_set_doc_edited): Declare taking no args.
* xdisp.c (prepare_menu_bars): Remove HAVE_NS code.
(redisplay_internal): Call ns_set_doc_edited if HAVE_NS (Bug#18884).
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* nsterm.h (EmacsScroller): Replace Lisp_Object win with
struct window*.
Remove getMouseMotionPart.
(ns_output): Make icon_top/left int.
* nsterm.m (ns_mouse_position): Remove unused code.
(initFrame:window:, dealloc): Use window instead of win.
(getMouseMotionPart:window:x:y:): Remove, unused.
(sendScrollEventAtLoc:fromEvent:): Make Lisp_Object win from window.
Fixes: debbugs:18889
|
| |
|
|
| |
Fixes: debbugs:9927
|
| |
|
|
|
| |
src/fileio.c (Fexpand_file_name): Use make_unibyte_string, not
build_string, when importing a home directory.
|
| |
|
|
|
|
| |
src/dispnew.c (buffer_posn_from_coords): Use
WINDOW_WANTS_HEADER_LINE_P, not WINDOW_WANTS_MODELINE_P, to
account for the header-line height.
|
| |
|
|
| |
text area-relative x-coordinates. [Backport]
|
| | |
|
| |
|
|
| |
* lisp/cus-start.el (history-length): Bump :version. [Backport]
|
| |
|
|
| |
move point.
|
| | |
|
| |
|
|
|
|
|
| |
src/xterm.c (x_draw_hollow_cursor): Fix display of hollow cursor on
1-pixel R2L characters.
Reported by Dmitry Antipov <dmantipov@yandex.ru>, see
http://lists.gnu.org/archive/html/emacs-devel/2014-10/msg00518.html.
|
| |
|
|
|
|
| |
* process.c (accept4) [!HAVE_ACCEPT4]: New macro.
Fixes: debbugs:18666
|
| |
|
|
| |
Fixes: debbugs:18638
|
| |
|
|
|
|
|
| |
src/coding.c (detect_coding_iso_2022): Set coding->rejected
correctly when an invalid escape sequence is found.
Backported from trunk.
|
| |
|
|
|
| |
(font_matching_entity): Likewise. If matching entity is found, insert
1-item vector with this entity instead of an entity itself (Bug#17125).
|
| |
|
|
|
| |
src/xdisp.c (move_it_by_lines): Call reseat_1 after moving the
iterator backwards, to resync the bidi iterator.
|
| | |
|
| | |
|
| |
|
|
|
|
| |
make a font_object from a tty frame.
Fixes: debbugs:18573
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
src/w32fns.c (w32_createwindow): Accept an additional argument, an
array of 2 values specifying the coordinates of the frame's
top-left corner. Use these values instead of calling x_get_arg,
which can cons Lisp objects, and therefore cannot be called except
from the main thread. Remove redundant tests for the default
values.
(my_create_window): Move the calculation of the coordinates of the
frame's top-left edge here. Pass them to the input thread via the
second parameter of the WM_EMACS_CREATEWINDOW message. See
http://lists.gnu.org/archive/html/emacs-devel/2014-09/msg00892.html
for the details.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
src/xdisp.c (cursor_row_fully_visible_p): Update commentary.
(redisplay_window): Treat the frame's frozen_window_starts flag
the same way as the optional_new_start flag for the window: only
obey it if the glyph row showing point will be fully visible.
Likewise when the window start is in a continuation line. If,
after trying everything under the 'force_start' label, point is
still not fully visible, give up and scroll the window. Add
debugging traces.
src/window.c (Frecenter): Set the window's redisplay flag.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
src/w32term.c (w32_read_socket): Don't use frame dimensions for
resizing if GetClientRect returned an empty (0, 0, 0, 0)
rectangle. Check the return value of GetClientRect, and don't use
the results if it didn't succeed.
src/dispnew.c (change_frame_size_1): Recompute the frame dimensions
in columns and lines after correcting the pixel dimensions in
check_frame_size.
(adjust_decode_mode_spec_buffer): Add assertion to avoid passing
negative values to xrealloc.
|
| |
|
|
|
| |
* macfont.m (macfont_close): Release and free font-specific data
only if it wasn't previously freed.
|
| |
|
|
|
|
|
|
| |
about load commands.
* src/unexmacosx.c (dump_it): Improve error message.
Fixes: debbugs:18505
|
| |
|
|
| |
(Bug#10747, bug#18334)
|
| |
|
|
|
| |
src/frame.c (Fmouse_position, Fset_mouse_position): Clarify the
units in which the position is measured. (Bug#18493)
|
| |
|
|
|
| |
src/xdisp.c (redisplay_internal): Force redisplay of all windows
that show a buffer whose narrowing has changed.
|
| |
|
|
|
|
|
|
| |
src/xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor):
src/w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor): In R2L
lines, draw the hollow-box and hbar cursors on the right side of
cursor-glyph. Thanks to Martin Rudalics <rudalics@gmx.at> for
testing on X.
|
| |
|
|
|
|
|
|
| |
src/xterm.c (x_draw_stretch_glyph_string):
src/w32term.c (x_draw_stretch_glyph_string): Fix a thinko that
caused the block cursor to disappear on a TAB in R2L lines in
every window except the leftmost one. Reported by Martin Rudalics
<rudalics@gmx.at>.
|
| |
|
|
|
|
|
| |
* fileio.c (make_temp_name):
* font.c (font_parse_family_registry): Avoid integer
overflow on string size calculation.
* data.c (Faset): Likewise for byte index.
|
| |
|
|
|
|
|
|
|
|
| |
* lisp.h (record_in_backtrace): Adjust prototype.
* eval.c (record_in_backtrace): Return current specpdl level.
(set_backtrace_args, set_backtrace_nargs): Merge. Adjust all users.
(eval_sub, Ffuncall): Record call arguments in matched specpdl
entry and use that entry in call to backtrace_debug_on_exit.
(apply_lambda): Likewise. Get current specpdl level as 3rd arg.
(do_debug_on_call): Get current specpdl level as 2nd arg.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
src/xdisp.c (init_iterator): Don't use it->bidi_p before it is
assigned the correct value.
(extend_face_to_end_of_line): Account for truncation and
continuation glyphs in R2L rows when one of the fringes is not
displayed.
(display_line): Don't assign negative X offset to a row if we are
going to produce a truncation glyph for it. When handling
truncated R2L rows, consider the width of the left fringe instead
of the right one.
(produce_special_glyphs): Fix bogus assignments.
|
| |
|
|
|
|
|
|
|
| |
src/w32.c (fcntl): Support O_NONBLOCK fcntl on the write side of
pipes.
(sys_write): When a write to a non-blocking pipe returns ENOSPC,
set errno to EAGAIN instead, to allow the caller to retry the
write after some waiting. Fixes deadlocks when Emacs exchanges a
lot of data through the pipe.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
src/sound.c (Fplay_sound_internal): Encode the sound file name in
the ANSI codepage. Expand it against data-directory, as per docs,
not against the current directory. No need to make a local copy
of the file name; pass the encoded file name directly to
do_play_sound. (Bug#18463)
src/w32.c (ansi_encode_filename): If w32_get_short_filename returns
NULL, and the file name is not encodable in ANSI codepage, return
the string with "?" replacement characters, which will fail the
caller. This avoids returning a random value in that case.
|
| |
|
|
|
|
|
| |
(Bug#18422).
* window.c (Fresize_mini_window_internal): Set w->total_lines
from w->pixel_height (Bug#18422).
|
| |
|
|
|
|
|
| |
(toggleFullScreen:): Take frame_resize_pixelwise into account when
setting resize increments.
Fixes: debbugs:18435
|
| |
|
|
|
|
|
| |
src/xdisp.c (pos_visible_p): Properly save and restore the iterator
state around the call to line_bottom, since it can move the
iterator to another screen line. This fixes off-by-one errors in
the reported row in some rare cases.
|
| |
|
|
|
|
| |
src/dispnew.c (prepare_desired_row): When MODE_LINE_P is zero,
always make sure the marginal areas of the row are in sync with
what the window wants.
|
| |
|
|
|
|
| |
src/data.c (set_internal): Use assq_no_quit, not Fassq, to find an
existing binding of a variable, to avoid silently aborting
commands that use specbind.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
lisp/subr.el (posn-col-row): Revert the change from commit
2010-11-13T21:07:58Z!eliz@gnu.org, which
was inadvertently merged from emacs-23 release branch in
2010-11-18T03:54:14Z!monnier@iro.umontreal.ca, and
introduced an off-by-one error in the reported row when there is a
header line.
src/dispnew.c (buffer_posn_from_coords): Fix an off-by-one error in
the reported row in the case of a window with a header line, by
improving on the fix committed in 2011-10-08T10:58:50Z!eliz@gnu.org
eliz@gnu.org-20111008105850-ht4tvsayohvr1kjc.
|
| |
|
|
| |
when configured --with-wide-int on typical 32-bit platforms.
|
| |
|
|
|
|
| |
src/xdisp.c (display_and_set_cursor): Call erase_phys_cursor also
when HPOS is negative, for the benefit of R2L glyph rows whose
newline overflows into the fringe.
|
| | |
|
| |
|
|
|
|
| |
Back-ported from trunk revision-id: 2014-08-27T19:40:54Z!eliz@gnu.org
src/syntax.c (scan_lists): Don't examine positions before BEGV.
|
| |
|
|
|
|
|
| |
msdos/sedlibmk.inp (gl_LIBOBJS): Add execinfo.o. Reported by Juan
Manuel Guerrero <juan.guerrero@gmx.de>.
src/conf_post.h (_GL_EXECINFO_INLINE) [MSDOS]: Don't define.
|
| | |
|
| |
|
|
|
| |
src/indent.c (Fvertical_motion): Fix vertical motion up through a
display property after a newline.
|
| |
|
|
|
|
|
|
|
| |
src/xdisp.c (display_line): Don't assume that the call to
reseat_at_next_visible_line_start ends up at a character
immediately following the newline on the previous line. Avoids
setting the ends_at_zv_p flag on screen lines that are not at or
beyond ZV, which causes infloop in redisplay. For the details, see
http://lists.gnu.org/archive/html/emacs-devel/2014-08/msg00368.html.
|
| |
|
|
|
| |
src/dispnew.c (buffer_posn_from_coords): Fix mirroring of X
coordinate for hscrolled R2L screen lines.
|
| |
|
|
| |
ERRORCHECK mutexes. (Bug#18222)
|