aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorXue Fuqiao2013-06-12 20:12:47 +0800
committerXue Fuqiao2013-06-12 20:12:47 +0800
commit6186a2767fcae48a43675dabc457ed2b2177b884 (patch)
tree8eb823df7cbd64d9bf9201c03cadd89fe1e441ac /src
parent8d0b26f65d9d4cf52a11a273073cd52fb1feaf13 (diff)
parent5f9dbd7a1241239b5376435e96fbd9dbfa65e0f5 (diff)
downloademacs-6186a2767fcae48a43675dabc457ed2b2177b884.tar.gz
emacs-6186a2767fcae48a43675dabc457ed2b2177b884.zip
Merge from mainline.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog54
-rw-r--r--src/ChangeLog.32
-rw-r--r--src/fileio.c5
-rw-r--r--src/keyboard.c11
-rw-r--r--src/process.c5
-rw-r--r--src/xdisp.c21
6 files changed, 68 insertions, 30 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index cf5a8c0ee1e..38eb460359c 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,34 @@
12013-06-12 Xue Fuqiao <xfq.free@gmail.com>
2
3 * fileio.c (expand_file_name): Doc fix.
4
52013-06-11 Paul Eggert <eggert@cs.ucla.edu>
6
7 Tickle glib by waiting for Emacs itself, not for process 0 (Bug#14569).
8 * process.c (init_process_emacs) [HAVE_GLIB && !WINDOWSNT]:
9 Wait for self, not for 0. This can't hurt on GNU or similar
10 system, and may help with Cygwin.
11
12 * keyboard.c: Don't use PROP (...) as an lvalue.
13 (parse_tool_bar_item) [!USE_GTK && !HAVE_NS]:
14 Use set_prop (A, B), not PROP (A) = B.
15
162013-06-10 Eli Zaretskii <eliz@gnu.org>
17
18 * xdisp.c (get_it_property): Use it->window instead of generating
19 a Lisp object from it->w.
20
212013-06-09 Eli Zaretskii <eliz@gnu.org>
22
23 * xdisp.c (get_it_property): If it->object is a buffer, pass to
24 get-char-property the window that is being rendered, instead of
25 the buffer, to support window-specific overlays. (Bug#14575)
26 (compute_display_string_pos): When W is NULL, use the current
27 buffer as the object to pass to get-char-property.
28 (Fcurrent_bidi_paragraph_direction): Assign NULL to the window
29 pointer member of the bidi iterator, since no window is pertinent
30 to this function.
31
12013-06-08 Eli Zaretskii <eliz@gnu.org> 322013-06-08 Eli Zaretskii <eliz@gnu.org>
2 33
3 * bidi.c (bidi_fetch_char): Accept additional argument, the window 34 * bidi.c (bidi_fetch_char): Accept additional argument, the window
@@ -8,8 +39,8 @@
8 * xdisp.c (init_from_display_pos, init_iterator) 39 * xdisp.c (init_from_display_pos, init_iterator)
9 (handle_single_display_spec, next_overlay_string) 40 (handle_single_display_spec, next_overlay_string)
10 (get_overlay_strings_1, reseat_1, reseat_to_string) 41 (get_overlay_strings_1, reseat_1, reseat_to_string)
11 (push_prefix_prop, Fcurrent_bidi_paragraph_direction): Set 42 (push_prefix_prop, Fcurrent_bidi_paragraph_direction):
12 bidi_it.w member from it->w. 43 Set bidi_it.w member from it->w.
13 (compute_display_string_pos): Accept additional argument, the 44 (compute_display_string_pos): Accept additional argument, the
14 window being displayed, and pass it to Fget_char_property. 45 window being displayed, and pass it to Fget_char_property.
15 (Bug#14575) 46 (Bug#14575)
@@ -20,7 +51,7 @@
20 51
212013-06-08 Jan Djärv <jan.h.d@swipnet.se> 522013-06-08 Jan Djärv <jan.h.d@swipnet.se>
22 53
23 * xgselect.c: Remove unneeded include xterm.h 54 * xgselect.c: Remove unneeded include xterm.h.
24 55
25 * process.c (wait_reading_process_output): Check for NS before GLIB. 56 * process.c (wait_reading_process_output): Check for NS before GLIB.
26 GLIB may be linked in due to rsvg, but ns_select must be called. 57 GLIB may be linked in due to rsvg, but ns_select must be called.
@@ -322,8 +353,8 @@
322 (update_frame_tool_bar): Update code for GNUStep. 353 (update_frame_tool_bar): Update code for GNUStep.
323 (clearAll): New method. 354 (clearAll): New method.
324 (addDisplayItemWithImage:idx:tag:helpText:enabled:): Handle new tag 355 (addDisplayItemWithImage:idx:tag:helpText:enabled:): Handle new tag
325 argument. Call insertItemWithItemIdentifier when NS_IMPL_GNUSTEP. Move 356 argument. Call insertItemWithItemIdentifier when NS_IMPL_GNUSTEP.
326 identifierToItem setObject and activeIdentifiers addObject before 357 Move identifierToItem setObject and activeIdentifiers addObject before
327 call to insertItemWithItemIdentifier. 358 call to insertItemWithItemIdentifier.
328 (validateVisibleItems): Fix indentation. 359 (validateVisibleItems): Fix indentation.
329 (toolbarAllowedItemIdentifiers:): Return activeIdentifiers. 360 (toolbarAllowedItemIdentifiers:): Return activeIdentifiers.
@@ -337,7 +368,7 @@
337 Use F suffix on floats. 368 Use F suffix on floats.
338 (ns_char_width): Returns CGFloat. 369 (ns_char_width): Returns CGFloat.
339 (ns_ascii_average_width): w is CGFloat instead of float. 370 (ns_ascii_average_width): w is CGFloat instead of float.
340 (nsfont_draw): cbuf and c are unsigned. Cast to char* in call to 371 (nsfont_draw): cbuf and c are unsigned. Cast to char* in call to
341 DPSxshow. 372 DPSxshow.
342 (ns_glyph_metrics): CGFloat instead of float. 373 (ns_glyph_metrics): CGFloat instead of float.
343 374
@@ -632,7 +663,7 @@
632 663
6332013-05-07 Paul Eggert <eggert@cs.ucla.edu> 6642013-05-07 Paul Eggert <eggert@cs.ucla.edu>
634 665
635 Use Gnulib ACL implementation, for benefit of Solaris etc. (Bug#14295) 666 Use Gnulib ACL implementation, for benefit of Solaris etc. (Bug#14295)
636 * Makefile.in (LIB_ACL): New macro. 667 * Makefile.in (LIB_ACL): New macro.
637 (LIBACL_LIBS): Remove. 668 (LIBACL_LIBS): Remove.
638 (LIBES): Use LIB_ACL, not LIBACL_LIBS. 669 (LIBES): Use LIB_ACL, not LIBACL_LIBS.
@@ -3065,11 +3096,10 @@
30652012-12-31 Adam Sjøgren <asjo@koldfront.dk> (tiny change) 30962012-12-31 Adam Sjøgren <asjo@koldfront.dk> (tiny change)
3066 3097
3067 * xterm.c (scroll-bar-adjust-thumb-portion): New variable to 3098 * xterm.c (scroll-bar-adjust-thumb-portion): New variable to
3068 determine whether scroll bar thumb size should be adjusted or 3099 determine whether scroll bar thumb size should be adjusted or not.
3069 not. Use variable for MOTIF. 3100 Use variable for MOTIF.
3070 3101
3071 * gtkutil.c (scroll-bar-adjust-thumb-portion): Use variable for 3102 * gtkutil.c (scroll-bar-adjust-thumb-portion): Use variable for GTK.
3072 GTK.
3073 3103
30742013-01-13 Jan Djärv <jan.h.d@swipnet.se> 31042013-01-13 Jan Djärv <jan.h.d@swipnet.se>
3075 3105
@@ -3614,7 +3644,7 @@
3614 3644
36152012-12-14 Paul Eggert <eggert@cs.ucla.edu> 36452012-12-14 Paul Eggert <eggert@cs.ucla.edu>
3616 3646
3617 Fix permissions bugs with setgid directories etc. (Bug#13125) 3647 Fix permissions bugs with setgid directories etc. (Bug#13125)
3618 * dired.c (Ffile_attributes): Return t as the 9th attribute, 3648 * dired.c (Ffile_attributes): Return t as the 9th attribute,
3619 to mark it as a placeholder. The old value was often wrong. 3649 to mark it as a placeholder. The old value was often wrong.
3620 The only user of this attribute has been changed to use 3650 The only user of this attribute has been changed to use
diff --git a/src/ChangeLog.3 b/src/ChangeLog.3
index 2f798e1f0bc..fb1b96f738c 100644
--- a/src/ChangeLog.3
+++ b/src/ChangeLog.3
@@ -15447,7 +15447,7 @@
15447 * xterm.c (XTread_socket_hook): For X11, on map and unmap events 15447 * xterm.c (XTread_socket_hook): For X11, on map and unmap events
15448 check the window manager hints for iconification status. 15448 check the window manager hints for iconification status.
15449 15449
15450 * xterm.c (x_make_widow_icon): For X11, just request 15450 * xterm.c (x_make_window_icon): For X11, just request
15451 iconification of the window manager. 15451 iconification of the window manager.
15452 15452
154531989-05-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu) 154531989-05-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
diff --git a/src/fileio.c b/src/fileio.c
index 75e1f13a09b..ce5d4854fee 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -776,8 +776,9 @@ probably use `make-temp-file' instead, except in three circumstances:
776DEFUN ("expand-file-name", Fexpand_file_name, Sexpand_file_name, 1, 2, 0, 776DEFUN ("expand-file-name", Fexpand_file_name, Sexpand_file_name, 1, 2, 0,
777 doc: /* Convert filename NAME to absolute, and canonicalize it. 777 doc: /* Convert filename NAME to absolute, and canonicalize it.
778Second arg DEFAULT-DIRECTORY is directory to start with if NAME is relative 778Second arg DEFAULT-DIRECTORY is directory to start with if NAME is relative
779\(does not start with slash or tilde); if DEFAULT-DIRECTORY is nil or missing, 779\(does not start with slash or tilde); both the directory name and
780the current buffer's value of `default-directory' is used. 780a directory's file name are accepted. If DEFAULT-DIRECTORY is nil or
781missing, the current buffer's value of `default-directory' is used.
781NAME should be a string that is a valid file name for the underlying 782NAME should be a string that is a valid file name for the underlying
782filesystem. 783filesystem.
783File name components that are `.' are removed, and 784File name components that are `.' are removed, and
diff --git a/src/keyboard.c b/src/keyboard.c
index d01ecb9432b..7cb4c4b91e3 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -8150,11 +8150,12 @@ parse_tool_bar_item (Lisp_Object key, Lisp_Object item)
8150#if !defined (USE_GTK) && !defined (HAVE_NS) 8150#if !defined (USE_GTK) && !defined (HAVE_NS)
8151 /* If we use build_desired_tool_bar_string to render the 8151 /* If we use build_desired_tool_bar_string to render the
8152 tool bar, the separator is rendered as an image. */ 8152 tool bar, the separator is rendered as an image. */
8153 PROP (TOOL_BAR_ITEM_IMAGES) 8153 set_prop (TOOL_BAR_ITEM_IMAGES,
8154 = menu_item_eval_property (Vtool_bar_separator_image_expression); 8154 (menu_item_eval_property
8155 PROP (TOOL_BAR_ITEM_ENABLED_P) = Qnil; 8155 (Vtool_bar_separator_image_expression)));
8156 PROP (TOOL_BAR_ITEM_SELECTED_P) = Qnil; 8156 set_prop (TOOL_BAR_ITEM_ENABLED_P, Qnil);
8157 PROP (TOOL_BAR_ITEM_CAPTION) = Qnil; 8157 set_prop (TOOL_BAR_ITEM_SELECTED_P, Qnil);
8158 set_prop (TOOL_BAR_ITEM_CAPTION, Qnil);
8158#endif 8159#endif
8159 return 1; 8160 return 1;
8160 } 8161 }
diff --git a/src/process.c b/src/process.c
index e51b45bd64f..a873dd0cdb2 100644
--- a/src/process.c
+++ b/src/process.c
@@ -7068,9 +7068,10 @@ init_process_emacs (void)
7068#endif 7068#endif
7069 { 7069 {
7070#if defined HAVE_GLIB && !defined WINDOWSNT 7070#if defined HAVE_GLIB && !defined WINDOWSNT
7071 /* Tickle glib's child-handling code so that it initializes its 7071 /* Tickle glib's child-handling code. Ask glib to wait for Emacs itself;
7072 this should always fail, but is enough to initialize glib's
7072 private SIGCHLD handler. */ 7073 private SIGCHLD handler. */
7073 g_source_unref (g_child_watch_source_new (0)); 7074 g_source_unref (g_child_watch_source_new (getpid ()));
7074#endif 7075#endif
7075 catch_child_signal (); 7076 catch_child_signal ();
7076 } 7077 }
diff --git a/src/xdisp.c b/src/xdisp.c
index 5ec72407191..e1d6b0c9a27 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -3509,9 +3509,8 @@ compute_display_string_pos (struct text_pos *position,
3509 3509
3510 if (string && STRINGP (string->lstring)) 3510 if (string && STRINGP (string->lstring))
3511 object1 = object = string->lstring; 3511 object1 = object = string->lstring;
3512 else if (!string_p) 3512 else if (w && !string_p)
3513 { 3513 {
3514 eassert (w != NULL);
3515 XSETWINDOW (object, w); 3514 XSETWINDOW (object, w);
3516 object1 = Qnil; 3515 object1 = Qnil;
3517 } 3516 }
@@ -18971,16 +18970,19 @@ push_prefix_prop (struct it *it, Lisp_Object prop)
18971static Lisp_Object 18970static Lisp_Object
18972get_it_property (struct it *it, Lisp_Object prop) 18971get_it_property (struct it *it, Lisp_Object prop)
18973{ 18972{
18974 Lisp_Object position; 18973 Lisp_Object position, object = it->object;
18975 18974
18976 if (STRINGP (it->object)) 18975 if (STRINGP (object))
18977 position = make_number (IT_STRING_CHARPOS (*it)); 18976 position = make_number (IT_STRING_CHARPOS (*it));
18978 else if (BUFFERP (it->object)) 18977 else if (BUFFERP (object))
18979 position = make_number (IT_CHARPOS (*it)); 18978 {
18979 position = make_number (IT_CHARPOS (*it));
18980 object = it->window;
18981 }
18980 else 18982 else
18981 return Qnil; 18983 return Qnil;
18982 18984
18983 return Fget_char_property (position, prop, it->object); 18985 return Fget_char_property (position, prop, object);
18984} 18986}
18985 18987
18986/* See if there's a line- or wrap-prefix, and if so, push it on IT. */ 18988/* See if there's a line- or wrap-prefix, and if so, push it on IT. */
@@ -20010,7 +20012,10 @@ See also `bidi-paragraph-direction'. */)
20010 itb.string.lstring = Qnil; 20012 itb.string.lstring = Qnil;
20011 itb.string.bufpos = 0; 20013 itb.string.bufpos = 0;
20012 itb.string.unibyte = 0; 20014 itb.string.unibyte = 0;
20013 itb.w = XWINDOW (selected_window); 20015 /* We have no window to use here for ignoring window-specific
20016 overlays. Using NULL for window pointer will cause
20017 compute_display_string_pos to use the current buffer. */
20018 itb.w = NULL;
20014 bidi_paragraph_init (NEUTRAL_DIR, &itb, 1); 20019 bidi_paragraph_init (NEUTRAL_DIR, &itb, 1);
20015 bidi_unshelve_cache (itb_data, 0); 20020 bidi_unshelve_cache (itb_data, 0);
20016 set_buffer_temp (old); 20021 set_buffer_temp (old);