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

35898 commits

Author SHA1 Message Date
Michael Albinus
499a7f1cdb * callproc.c (encode_current_directory): Encode dir at the end. 2014-11-07 21:09:34 +01:00
Glenn Morris
2a1f6afdfe * src/callproc.c (encode_current_directory): Fix thinko in previous. 2014-11-07 09:04:10 -08:00
Michael Albinus
5282dec1ec * callproc.c (encode_current_directory): Support handling of file
names prepended by "/:".

Fixes: debbugs:18891
2014-11-07 15:45:34 +01:00
Alan Mackenzie
10c5eacef0 * src/syntax.c (back_comment): Fix off-by-one error.
Fixes: debbugs:18022
2014-11-06 09:05:58 -05:00
Dima Kogan
5b9c3a5767 * src/xgselect.c (xg_select): Use g_main_context_acquire.
Fixes: debbugs:18861
2014-11-05 22:02:11 -05:00
Michael Albinus
076582fde3 * dired.c (Ffile_attributes): Return Qnil, if Fexpand_file_name
raises an error.

Fixes: debbugs:18891
2014-11-05 12:23:10 +01:00
Eli Zaretskii
3247e0eae0 src/window.c (window_scroll_pixel_based): Fix a typo in a comment. 2014-11-03 20:22:07 +02:00
Eli Zaretskii
29a13e2afe Fix minor issues with functions that dump glyph matrices.
src/xdisp.c (Fdump_glyph_matrix, Fdump_frame_glyph_matrix): Doc fix.
 (Fdump_frame_glyph_matrix): Don't segfault if invoked on a GUI
 frame; instead, print an error message.
2014-11-03 19:14:50 +02:00
Jan Djärv
c33070f492 * nsfns.m (ns_set_doc_edited): Check for FRAME_NS.
Fixes: debbugs:18925
2014-11-03 08:15:11 +01:00
Jan Djärv
4e0cc3517b * macfont.m (macfont_glyph_extents): Turn off syntetic bold
if force_integral_p (i.e. no antialias).
(macfont_draw): Check ns_antialias_text, also turn off syntetic
bold if no antialias.

Fixes: debbugs:18876
2014-10-31 19:41:07 +01:00
Jan Djärv
08f558056d * emacs.c (main): Don't chdir to $HOME on Cocoa if --chdir was given.
Fixes: debbugs:18846
2014-10-31 16:18:36 +01:00
Jan Djärv
c465f1c27f * nsfns.m (ns_set_doc_edited): Do all logic (check frames) here
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).
2014-10-30 20:15:38 +01:00
Jan Djärv
b7bf631c80 * nsfns.m (x_icon): icon_top/left is int.
* 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🪟, dealloc): Use window instead of win.
(getMouseMotionPart🪟x:y:): Remove, unused.
(sendScrollEventAtLoc:fromEvent:): Make Lisp_Object win from window.

Fixes: debbugs:18889
2014-10-30 18:23:52 +01:00
Samuel Bronson
fda2bc46a8 * src/unexmacosx.c (copy_data_segment): Port to GCC 4.6+ (backport)
Fixes: debbugs:9927
2014-10-29 22:31:12 -07:00
Eli Zaretskii
205be0810a Fix bug #18873 with non-ASCII characters in user's HOME directory.
src/fileio.c (Fexpand_file_name): Use make_unibyte_string, not
 build_string, when importing a home directory.
2014-10-28 19:48:21 +02:00
Eli Zaretskii
475e766a94 Fix bug #18839 with incorrect image size returned by posn-at-point.
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.
2014-10-26 17:42:08 +02:00
YAMAMOTO Mitsuharu
1a7aa3ce7f * xdisp.c (erase_phys_cursor): Fix confusion between window-relative and text area-relative x-coordinates. [Backport] 2014-10-22 10:39:48 +09:00
YAMAMOTO Mitsuharu
2498362599 * xdisp.c (draw_glyphs): Set clipping to highlight boundaries. [Backport] 2014-10-22 10:31:37 +09:00
Glenn Morris
d9a72916e5 * src/minibuf.c (history-length): Increase default from 30 to 100.
* lisp/cus-start.el (history-length): Bump :version.  [Backport]
2014-10-20 18:02:40 -04:00
Stefan Monnier
290d4b570f * src/xdisp.c (redisplay_window): Re-run pre-redisplay-function after we
move point.
2014-10-20 17:48:58 -04:00
Glenn Morris
83bad90efe Add 24.4 release ChangeLog entries 2014-10-20 20:21:15 +01:00
Eli Zaretskii
cacd5c3580 Fix display on X of 1-pixel R2L characters.
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.
2014-10-17 09:43:36 +03:00
Glenn Morris
affeda3b11 Tabify recent ChangeLog change 2014-10-15 21:47:10 -04:00
Glenn Morris
55aa96681c Rewrite ChangeLog release notes to be less confusing 2014-10-15 00:22:14 -07:00
Jan Djärv
da373d7b88 Fix mailaddress 2014-10-11 10:24:56 +02:00
Paul Eggert
390c2f3bcc Fix port to Debian GNU/kFreeBSD 7 (wheezy).
* process.c (accept4) [!HAVE_ACCEPT4]: New macro.

Fixes: debbugs:18666
2014-10-10 11:02:09 -07:00
Paul Eggert
078c4dc635 Spelling fixes. 2014-10-09 08:59:41 -07:00
Stefan Monnier
d7a6097b57 * src/frame.c (Fmouse_pixel_position): Call Vmouse_position_function.
Fixes: debbugs:18638
2014-10-09 09:50:10 -04:00
Glenn Morris
01058f734a Doc tweaks
* doc/lispref/frames.texi (Multiple Terminals): Copyedits.

* lisp/frame.el (display-monitor-attributes-list): Doc tweaks.

* nt/README.W32, src/ChangeLog.10, src/w32term.c:
Standardize on "taskbar" rather than "task bar", since that is what
most references seem to use; e.g.
http://en.wikipedia.org/wiki/Taskbar
http://windows.microsoft.com/en-us/windows7/products/features/windows-taskbar
2014-10-08 20:47:30 -04:00
Kenichi Handa
a7044030f3 Fix bug #18610 with crashes when visiting files with ESC and 8-bit bytes.
src/coding.c (detect_coding_iso_2022): Set coding->rejected
 correctly when an invalid escape sequence is found.

 Backported from trunk.
2014-10-08 10:30:57 +03:00
Dmitry Antipov
e197284d47 * font.c (font_list_entities): Do not add empty vector to font cache.
(font_matching_entity): Likewise.  If matching entity is found, insert
1-item vector with this entity instead of an entity itself (Bug#17125).
2014-10-03 07:46:53 +04:00
Eli Zaretskii
3d900a84e4 Fix bug #18584 with assertion violations while scrolling.
src/xdisp.c (move_it_by_lines): Call reseat_1 after moving the
 iterator backwards, to resync the bidi iterator.
2014-10-02 17:57:05 +03:00
Glenn Morris
801e7c232c ChangeLog whitespace trivia 2014-10-01 17:26:16 -07:00
Jan Djärv
335e9627ca * xfaces.c (Finternal_set_lisp_face_attribute): Added FIXME comment. 2014-10-01 20:10:21 +02:00
Jan Djärv
e2e773b9e6 * xfaces.c (Finternal_set_lisp_face_attribute): Don't try to
make a font_object from a tty frame.

Fixes: debbugs:18573
2014-10-01 19:41:18 +02:00
Eli Zaretskii
572fe798cd Fix creation of frames on MS-Windows: don't cons Lisp objects in input thread.
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.
2014-09-30 16:53:24 +03:00
Paul Eggert
42d4302f24 Spelling fix. 2014-09-29 22:02:13 -07:00
Eli Zaretskii
5bb6d037f0 Fix bug #18545 with lack of scrolling a window when point goes out of view.
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.
2014-09-29 22:10:28 +03:00
Eli Zaretskii
a45a7f5d1a Fix bug #18528 with crashes at startup during frameset restoration.
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.
2014-09-24 10:31:11 +03:00
Dmitry Antipov
fc5ebc3f49 On OSX, do not free font-specific data more than once (Bug#18501).
* macfont.m (macfont_close): Release and free font-specific data
only if it wasn't previously freed.
2014-09-22 09:34:05 +04:00
David Caldwell
63126683db * configure.ac: Increase headerpad_extra to 1000, update the comment
about load commands.

* src/unexmacosx.c (dump_it): Improve error message.

Fixes: debbugs:18505
2014-09-21 22:35:22 +02:00
Juri Linkov
3a449b759c * src/image.c (imagemagick_load_image): Add delay to imagemagick metadata.
(Bug#10747, bug#18334)
2014-09-18 23:59:55 +03:00
Eli Zaretskii
41932b21a2 Clarify the doc strings of mouse-position and set-mouse-position.
src/frame.c (Fmouse_position, Fset_mouse_position): Clarify the
 units in which the position is measured.  (Bug#18493)
2014-09-18 20:20:57 +03:00
Eli Zaretskii
a810675374 Fix bug #18490 with redisplay of other windows showing a narrowed buffer.
src/xdisp.c (redisplay_internal): Force redisplay of all windows
 that show a buffer whose narrowing has changed.
2014-09-18 18:10:33 +03:00
Eli Zaretskii
534f1f7cb6 Fix display of hollow-box and hbar cursors on r2L lines.
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.
2014-09-16 18:53:36 +03:00
Eli Zaretskii
c20b4c2de5 Fix block cursor display in R2L lines.
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>.
2014-09-16 18:44:51 +03:00
Dmitry Antipov
005aff7092 Prefer ptrdiff_t to int and avoid integer overflows.
* 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.
2014-09-16 08:07:51 +04:00
Dmitry Antipov
ccb767d639 Always use matched specpdl entry to record call arguments (Bug#18473).
* 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.
2014-09-16 08:04:56 +04:00
Eli Zaretskii
2d83441cc0 src/dispextern.h: Commentary fix. 2014-09-15 18:29:40 +03:00
Eli Zaretskii
6b682d2b39 Fix display of R2L lines in partial-width windows.
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.
2014-09-15 18:25:54 +03:00