aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2013-12-11 19:06:29 +0200
committerEli Zaretskii2013-12-11 19:06:29 +0200
commita34a8cd1e46594c5776f187dd98583bcb82f9bc0 (patch)
tree92503ed7f7d3fb3c73c38d4689611b8202682970 /src
parent8b55eeeb70be4b4ff3dd4694013bdb1a9f668bc6 (diff)
parent1421be8445803bdb9c3fece8c658836b5f0f9c34 (diff)
downloademacs-a34a8cd1e46594c5776f187dd98583bcb82f9bc0.tar.gz
emacs-a34a8cd1e46594c5776f187dd98583bcb82f9bc0.zip
Merge from trunk.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog43
-rw-r--r--src/Makefile.in2
-rw-r--r--src/dispextern.h2
-rw-r--r--src/editfns.c3
-rw-r--r--src/keyboard.h2
-rw-r--r--src/nsterm.m4
-rw-r--r--src/term.c21
-rw-r--r--src/w32term.c6
-rw-r--r--src/window.c2
-rw-r--r--src/xfns.c9
-rw-r--r--src/xterm.c28
11 files changed, 69 insertions, 53 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 25271d6f6b8..89c640bd8c7 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,46 @@
12013-12-11 Ken Brown <kbrown@cornell.edu>
2
3 * dispextern.h (erase_phys_cursor):
4 * keyboard.h (make_ctrl_char): Declare prototypes if HAVE_NTGUI.
5
62013-12-11 Dmitry Antipov <dmantipov@yandex.ru>
7
8 * nsterm.m (x_free_frame_resources):
9 * term.c (tty_free_frame_resources):
10 * xterm.c (x_free_frame_resources): Do not check for non-NULL
11 face cache because it's implied by free_frame_faces anyway.
12 * w32term.c (x_free_frame_resources): Likewise. Do not call
13 free_frame_faces twice.
14
152013-12-11 RĂ¼diger Sonderfeld <ruediger@c-plusplus.de>
16
17 * editfns.c (Fformat_time_string): Mention %F in the doc.
18
192013-12-11 Martin Rudalics <rudalics@gmx.at>
20
21 * window.c (resize_frame_windows): Don't return immediately when
22 the root window's size doesn't change - the minibuffer window
23 may still have to be repositioned/resized.
24 * xfns.c (Fx_create_frame): Always change the frame size after
25 initializing the frame's faces.
26 * xterm.c (handle_one_xevent): Don't set pixel sizes here,
27 change_frame_size should already have done it.
28 (x_new_font): Assign new tool- and menu-bar heights.
29 (x_set_window_size_1): Account for tool- and menu-bar heights
30 (Bug#16013). Don't set pixel sizes since change_frame_size
31 should already have done it.
32
332013-12-11 Paul Eggert <eggert@cs.ucla.edu>
34
35 Remove the option of using libcrypto.
36 * Makefile.in (LIB_CRYPTO): Remove.
37 (LIBES): Don't use it.
38
392013-12-11 Juri Linkov <juri@jurta.org>
40
41 * term.c (term_get_fkeys_1): Remove non-standard IBM terminfo
42 as obsolete to avoid conflicts with <S-up>. (Bug#13471)
43
12013-12-10 Dmitry Antipov <dmantipov@yandex.ru> 442013-12-10 Dmitry Antipov <dmantipov@yandex.ru>
2 45
3 * xdisp.c (display_tool_bar_line): Don't extend on a previously 46 * xdisp.c (display_tool_bar_line): Don't extend on a previously
diff --git a/src/Makefile.in b/src/Makefile.in
index cef1ba5ed2e..7d91928acfe 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -139,7 +139,6 @@ M17N_FLT_LIBS = @M17N_FLT_LIBS@
139 139
140LIB_ACL=@LIB_ACL@ 140LIB_ACL=@LIB_ACL@
141LIB_CLOCK_GETTIME=@LIB_CLOCK_GETTIME@ 141LIB_CLOCK_GETTIME=@LIB_CLOCK_GETTIME@
142LIB_CRYPTO=@LIB_CRYPTO@
143LIB_EACCESS=@LIB_EACCESS@ 142LIB_EACCESS=@LIB_EACCESS@
144LIB_FDATASYNC=@LIB_FDATASYNC@ 143LIB_FDATASYNC=@LIB_FDATASYNC@
145LIB_TIMER_TIME=@LIB_TIMER_TIME@ 144LIB_TIMER_TIME=@LIB_TIMER_TIME@
@@ -404,7 +403,6 @@ ALLOBJS = $(FIRSTFILE_OBJ) $(VMLIMIT_OBJ) $(obj) $(otherobj)
404LIBES = $(LIBS) $(W32_LIBS) $(LIBS_GNUSTEP) $(LIBX_BASE) $(LIBIMAGE) \ 403LIBES = $(LIBS) $(W32_LIBS) $(LIBS_GNUSTEP) $(LIBX_BASE) $(LIBIMAGE) \
405 $(LIBX_OTHER) $(LIBSOUND) \ 404 $(LIBX_OTHER) $(LIBSOUND) \
406 $(RSVG_LIBS) $(IMAGEMAGICK_LIBS) $(LIB_ACL) $(LIB_CLOCK_GETTIME) \ 405 $(RSVG_LIBS) $(IMAGEMAGICK_LIBS) $(LIB_ACL) $(LIB_CLOCK_GETTIME) \
407 $(LIB_CRYPTO) \
408 $(LIB_EACCESS) $(LIB_FDATASYNC) $(LIB_TIMER_TIME) $(DBUS_LIBS) \ 406 $(LIB_EACCESS) $(LIB_FDATASYNC) $(LIB_TIMER_TIME) $(DBUS_LIBS) \
409 $(LIB_EXECINFO) $(XRANDR_LIBS) $(XINERAMA_LIBS) \ 407 $(LIB_EXECINFO) $(XRANDR_LIBS) $(XINERAMA_LIBS) \
410 $(LIBXML2_LIBS) $(LIBGPM) $(LIBRESOLV) $(LIBS_SYSTEM) \ 408 $(LIBXML2_LIBS) $(LIBGPM) $(LIBRESOLV) $(LIBS_SYSTEM) \
diff --git a/src/dispextern.h b/src/dispextern.h
index 7de4edf2196..5976d068a78 100644
--- a/src/dispextern.h
+++ b/src/dispextern.h
@@ -3251,7 +3251,7 @@ extern void draw_phys_cursor_glyph (struct window *,
3251 enum draw_glyphs_face); 3251 enum draw_glyphs_face);
3252extern void get_phys_cursor_geometry (struct window *, struct glyph_row *, 3252extern void get_phys_cursor_geometry (struct window *, struct glyph_row *,
3253 struct glyph *, int *, int *, int *); 3253 struct glyph *, int *, int *, int *);
3254#ifdef WINDOWSNT 3254#if HAVE_NTGUI
3255extern void erase_phys_cursor (struct window *); 3255extern void erase_phys_cursor (struct window *);
3256#endif 3256#endif
3257extern void display_and_set_cursor (struct window *, bool, int, int, int, int); 3257extern void display_and_set_cursor (struct window *, bool, int, int, int, int);
diff --git a/src/editfns.c b/src/editfns.c
index 8e47d1f82e4..f67b95a8e81 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -1723,6 +1723,7 @@ by text that describes the specified date and time in TIME:
1723%c is the locale's date and time format. 1723%c is the locale's date and time format.
1724%x is the locale's "preferred" date format. 1724%x is the locale's "preferred" date format.
1725%D is like "%m/%d/%y". 1725%D is like "%m/%d/%y".
1726%F is the ISO 8601 date format (like "%Y-%m-%d").
1726 1727
1727%R is like "%H:%M", %T is like "%H:%M:%S", %r is like "%I:%M:%S %p". 1728%R is like "%H:%M", %T is like "%H:%M:%S", %r is like "%I:%M:%S %p".
1728%X is the locale's "preferred" time format. 1729%X is the locale's "preferred" time format.
@@ -1741,7 +1742,7 @@ The modifiers are `E' and `O'. For certain characters X,
1741%EX is a locale's alternative version of %X; 1742%EX is a locale's alternative version of %X;
1742%OX is like %X, but uses the locale's number symbols. 1743%OX is like %X, but uses the locale's number symbols.
1743 1744
1744For example, to produce full ISO 8601 format, use "%Y-%m-%dT%T%z". 1745For example, to produce full ISO 8601 format, use "%FT%T%z".
1745 1746
1746usage: (format-time-string FORMAT-STRING &optional TIME UNIVERSAL) */) 1747usage: (format-time-string FORMAT-STRING &optional TIME UNIVERSAL) */)
1747 (Lisp_Object format_string, Lisp_Object timeval, Lisp_Object universal) 1748 (Lisp_Object format_string, Lisp_Object timeval, Lisp_Object universal)
diff --git a/src/keyboard.h b/src/keyboard.h
index a1aa59fe988..33a2d535cd6 100644
--- a/src/keyboard.h
+++ b/src/keyboard.h
@@ -518,7 +518,7 @@ extern bool input_polling_used (void);
518extern void clear_input_pending (void); 518extern void clear_input_pending (void);
519extern bool requeued_events_pending_p (void); 519extern bool requeued_events_pending_p (void);
520extern void bind_polling_period (int); 520extern void bind_polling_period (int);
521#ifdef WINDOWSNT 521#if HAVE_NTGUI
522extern int make_ctrl_char (int) ATTRIBUTE_CONST; 522extern int make_ctrl_char (int) ATTRIBUTE_CONST;
523#endif 523#endif
524extern void stuff_buffered_input (Lisp_Object); 524extern void stuff_buffered_input (Lisp_Object);
diff --git a/src/nsterm.m b/src/nsterm.m
index 9c87923f32e..733c05ae53a 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -1155,9 +1155,7 @@ x_free_frame_resources (struct frame *f)
1155 block_input (); 1155 block_input ();
1156 1156
1157 free_frame_menubar (f); 1157 free_frame_menubar (f);
1158 1158 free_frame_faces (f);
1159 if (FRAME_FACE_CACHE (f))
1160 free_frame_faces (f);
1161 1159
1162 if (f == dpyinfo->x_focus_frame) 1160 if (f == dpyinfo->x_focus_frame)
1163 dpyinfo->x_focus_frame = 0; 1161 dpyinfo->x_focus_frame = 0;
diff --git a/src/term.c b/src/term.c
index 4d900020ce6..7b6cb41e23d 100644
--- a/src/term.c
+++ b/src/term.c
@@ -1422,18 +1422,6 @@ term_get_fkeys_1 (void)
1422 CONDITIONAL_REASSIGN ("kD", "kI", "insert"); 1422 CONDITIONAL_REASSIGN ("kD", "kI", "insert");
1423 /* if there's no key_end keycap, map key_ll to 'end' keysym */ 1423 /* if there's no key_end keycap, map key_ll to 'end' keysym */
1424 CONDITIONAL_REASSIGN ("@7", "kH", "end"); 1424 CONDITIONAL_REASSIGN ("@7", "kH", "end");
1425
1426 /* IBM has their own non-standard dialect of terminfo.
1427 If the standard name isn't found, try the IBM name. */
1428 CONDITIONAL_REASSIGN ("kB", "KO", "backtab");
1429 CONDITIONAL_REASSIGN ("@4", "kJ", "execute"); /* actually "action" */
1430 CONDITIONAL_REASSIGN ("@4", "kc", "execute"); /* actually "command" */
1431 CONDITIONAL_REASSIGN ("%7", "ki", "menu");
1432 CONDITIONAL_REASSIGN ("@7", "kw", "end");
1433 CONDITIONAL_REASSIGN ("F1", "k<", "f11");
1434 CONDITIONAL_REASSIGN ("F2", "k>", "f12");
1435 CONDITIONAL_REASSIGN ("%1", "kq", "help");
1436 CONDITIONAL_REASSIGN ("*6", "kU", "select");
1437#undef CONDITIONAL_REASSIGN 1425#undef CONDITIONAL_REASSIGN
1438 } 1426 }
1439 1427
@@ -3845,10 +3833,7 @@ static void
3845tty_free_frame_resources (struct frame *f) 3833tty_free_frame_resources (struct frame *f)
3846{ 3834{
3847 eassert (FRAME_TERMCAP_P (f)); 3835 eassert (FRAME_TERMCAP_P (f));
3848 3836 free_frame_faces (f);
3849 if (FRAME_FACE_CACHE (f))
3850 free_frame_faces (f);
3851
3852 xfree (f->output_data.tty); 3837 xfree (f->output_data.tty);
3853} 3838}
3854 3839
@@ -3860,9 +3845,7 @@ static void
3860tty_free_frame_resources (struct frame *f) 3845tty_free_frame_resources (struct frame *f)
3861{ 3846{
3862 eassert (FRAME_TERMCAP_P (f) || FRAME_MSDOS_P (f)); 3847 eassert (FRAME_TERMCAP_P (f) || FRAME_MSDOS_P (f));
3863 3848 free_frame_faces (f);
3864 if (FRAME_FACE_CACHE (f))
3865 free_frame_faces (f);
3866} 3849}
3867#endif /* MSDOS */ 3850#endif /* MSDOS */
3868 3851
diff --git a/src/w32term.c b/src/w32term.c
index 64febea6a1a..3d6b653157b 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -6101,17 +6101,13 @@ x_free_frame_resources (struct frame *f)
6101 /* We must free faces before destroying windows because some 6101 /* We must free faces before destroying windows because some
6102 font-driver (e.g. xft) access a window while finishing a 6102 font-driver (e.g. xft) access a window while finishing a
6103 face. */ 6103 face. */
6104 if (FRAME_FACE_CACHE (f)) 6104 free_frame_faces (f);
6105 free_frame_faces (f);
6106 6105
6107 if (FRAME_W32_WINDOW (f)) 6106 if (FRAME_W32_WINDOW (f))
6108 my_destroy_window (f, FRAME_W32_WINDOW (f)); 6107 my_destroy_window (f, FRAME_W32_WINDOW (f));
6109 6108
6110 free_frame_menubar (f); 6109 free_frame_menubar (f);
6111 6110
6112 if (FRAME_FACE_CACHE (f))
6113 free_frame_faces (f);
6114
6115 xfree (f->output_data.w32); 6111 xfree (f->output_data.w32);
6116 f->output_data.w32 = NULL; 6112 f->output_data.w32 = NULL;
6117 6113
diff --git a/src/window.c b/src/window.c
index 426edc6099c..9bf6ad4b8f3 100644
--- a/src/window.c
+++ b/src/window.c
@@ -4057,7 +4057,7 @@ resize_frame_windows (struct frame *f, int size, bool horflag, bool pixelwise)
4057 r->pixel_top = FRAME_TOP_MARGIN_HEIGHT (f); 4057 r->pixel_top = FRAME_TOP_MARGIN_HEIGHT (f);
4058 4058
4059 if (new_pixel_size == old_pixel_size) 4059 if (new_pixel_size == old_pixel_size)
4060 return; 4060 ;
4061 else if (WINDOW_LEAF_P (r)) 4061 else if (WINDOW_LEAF_P (r))
4062 /* For a leaf root window just set the size. */ 4062 /* For a leaf root window just set the size. */
4063 if (horflag) 4063 if (horflag)
diff --git a/src/xfns.c b/src/xfns.c
index 3c8df12f8c5..7200c5fb2e7 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -3069,7 +3069,6 @@ This function is an internal primitive--use `make-frame' instead. */)
3069 happen. */ 3069 happen. */
3070 init_frame_faces (f); 3070 init_frame_faces (f);
3071 3071
3072#ifdef USE_GTK
3073 /* PXW: This is a duplicate from below. We have to do it here since 3072 /* PXW: This is a duplicate from below. We have to do it here since
3074 otherwise x_set_tool_bar_lines will work with the character sizes 3073 otherwise x_set_tool_bar_lines will work with the character sizes
3075 installed by init_frame_faces while the frame's pixel size is still 3074 installed by init_frame_faces while the frame's pixel size is still
@@ -3078,12 +3077,8 @@ This function is an internal primitive--use `make-frame' instead. */)
3078 non-pixelwise code apparently worked around this because it had one 3077 non-pixelwise code apparently worked around this because it had one
3079 frame line vs one toolbar line which left us with a zero root 3078 frame line vs one toolbar line which left us with a zero root
3080 window height which was obviously wrong as well ... */ 3079 window height which was obviously wrong as well ... */
3081 width = FRAME_TEXT_WIDTH (f); 3080 change_frame_size (f, FRAME_COLS (f) * FRAME_COLUMN_WIDTH (f),
3082 height = FRAME_TEXT_HEIGHT (f); 3081 FRAME_LINES (f) * FRAME_LINE_HEIGHT (f), 1, 0, 0, 1);
3083 FRAME_TEXT_HEIGHT (f) = 0;
3084 SET_FRAME_WIDTH (f, 0);
3085 change_frame_size (f, width, height, 1, 0, 0, 1);
3086#endif /* USE_GTK */
3087 3082
3088 /* Set the menu-bar-lines and tool-bar-lines parameters. We don't 3083 /* Set the menu-bar-lines and tool-bar-lines parameters. We don't
3089 look up the X resources controlling the menu-bar and tool-bar 3084 look up the X resources controlling the menu-bar and tool-bar
diff --git a/src/xterm.c b/src/xterm.c
index 90c7c36c44f..2c5c01baa84 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -6622,8 +6622,8 @@ handle_one_xevent (struct x_display_info *dpyinfo,
6622 cancel_mouse_face (f); 6622 cancel_mouse_face (f);
6623 } 6623 }
6624 6624
6625 FRAME_PIXEL_WIDTH (f) = event->xconfigure.width; 6625/** FRAME_PIXEL_WIDTH (f) = event->xconfigure.width; **/
6626 FRAME_PIXEL_HEIGHT (f) = event->xconfigure.height; 6626/** FRAME_PIXEL_HEIGHT (f) = event->xconfigure.height; **/
6627#endif /* not USE_GTK */ 6627#endif /* not USE_GTK */
6628#endif 6628#endif
6629 6629
@@ -7689,6 +7689,9 @@ x_new_font (struct frame *f, Lisp_Object font_object, int fontset)
7689 FRAME_COLUMN_WIDTH (f) = font->average_width; 7689 FRAME_COLUMN_WIDTH (f) = font->average_width;
7690 FRAME_LINE_HEIGHT (f) = FONT_HEIGHT (font); 7690 FRAME_LINE_HEIGHT (f) = FONT_HEIGHT (font);
7691 7691
7692 FRAME_TOOL_BAR_HEIGHT (f) = FRAME_TOOL_BAR_LINES (f) * FRAME_LINE_HEIGHT (f);
7693 FRAME_MENU_BAR_HEIGHT (f) = FRAME_MENU_BAR_LINES (f) * FRAME_LINE_HEIGHT (f);
7694
7692 compute_fringe_widths (f, 1); 7695 compute_fringe_widths (f, 1);
7693 7696
7694 /* Compute the scroll bar width in character columns. */ 7697 /* Compute the scroll bar width in character columns. */
@@ -8541,13 +8544,15 @@ x_set_window_size_1 (struct frame *f, int change_gravity, int width, int height,
8541 8544
8542 compute_fringe_widths (f, 0); 8545 compute_fringe_widths (f, 0);
8543 8546
8544 pixelwidth = 8547 pixelwidth = ((pixelwise
8545 (pixelwise ? width : FRAME_TEXT_COLS_TO_PIXEL_WIDTH (f, width)) 8548 ? FRAME_TEXT_TO_PIXEL_WIDTH (f, width)
8546 + FRAME_TOOLBAR_WIDTH (f); 8549 : FRAME_TEXT_COLS_TO_PIXEL_WIDTH (f, width))
8547 pixelheight = 8550 + FRAME_TOOLBAR_WIDTH (f));
8548 (pixelwise ? height : FRAME_TEXT_LINES_TO_PIXEL_HEIGHT (f, height)) 8551 pixelheight = ((pixelwise
8549 + FRAME_MENUBAR_HEIGHT (f) + FRAME_TOOLBAR_HEIGHT (f); 8552 ? FRAME_TEXT_TO_PIXEL_HEIGHT (f, height)
8550 8553 : FRAME_TEXT_LINES_TO_PIXEL_HEIGHT (f, height))
8554 + FRAME_MENUBAR_HEIGHT (f)
8555 + FRAME_TOOLBAR_HEIGHT (f));
8551 if (change_gravity) f->win_gravity = NorthWestGravity; 8556 if (change_gravity) f->win_gravity = NorthWestGravity;
8552 x_wm_set_size_hint (f, (long) 0, 0); 8557 x_wm_set_size_hint (f, (long) 0, 0);
8553 XResizeWindow (FRAME_X_DISPLAY (f), FRAME_OUTER_WINDOW (f), 8558 XResizeWindow (FRAME_X_DISPLAY (f), FRAME_OUTER_WINDOW (f),
@@ -8582,8 +8587,6 @@ x_set_window_size_1 (struct frame *f, int change_gravity, int width, int height,
8582 else 8587 else
8583 { 8588 {
8584 change_frame_size (f, width, height, 0, 1, 0, 1); 8589 change_frame_size (f, width, height, 0, 1, 0, 1);
8585 FRAME_PIXEL_WIDTH (f) = pixelwidth;
8586 FRAME_PIXEL_HEIGHT (f) = pixelheight;
8587 x_sync (f); 8590 x_sync (f);
8588 } 8591 }
8589} 8592}
@@ -9126,8 +9129,7 @@ x_free_frame_resources (struct frame *f)
9126 /* We must free faces before destroying windows because some 9129 /* We must free faces before destroying windows because some
9127 font-driver (e.g. xft) access a window while finishing a 9130 font-driver (e.g. xft) access a window while finishing a
9128 face. */ 9131 face. */
9129 if (FRAME_FACE_CACHE (f)) 9132 free_frame_faces (f);
9130 free_frame_faces (f);
9131 9133
9132 if (f->output_data.x->icon_desc) 9134 if (f->output_data.x->icon_desc)
9133 XDestroyWindow (FRAME_X_DISPLAY (f), f->output_data.x->icon_desc); 9135 XDestroyWindow (FRAME_X_DISPLAY (f), f->output_data.x->icon_desc);