aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Monnier2013-11-05 17:45:44 -0500
committerStefan Monnier2013-11-05 17:45:44 -0500
commit9e6e98264c0c2684245463689614926bb22a8516 (patch)
tree1a7e18b60910fd9055ed3549b01831f92576eea1 /src
parent7544a9d393b426ffd99831ef93202b5bda444bfb (diff)
downloademacs-9e6e98264c0c2684245463689614926bb22a8516.tar.gz
emacs-9e6e98264c0c2684245463689614926bb22a8516.zip
* src/xdisp.c (prepare_menu_bars): Mark static.
* src/lisp.h (prepare_menu_bars): Don't declare. * src/xselect.c (x_handle_selection_clear): * src/callproc.c (call_process): Remove redundant call to prepare_menu_bars.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog7
-rw-r--r--src/callproc.c4
-rw-r--r--src/dispextern.h9
-rw-r--r--src/lisp.h1
-rw-r--r--src/xdisp.c28
-rw-r--r--src/xselect.c1
6 files changed, 26 insertions, 24 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 740a8f93505..00ac6f6e28c 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,10 @@
12013-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * xdisp.c (prepare_menu_bars): Mark static.
4 * lisp.h (prepare_menu_bars): Don't declare.
5 * xselect.c (x_handle_selection_clear):
6 * callproc.c (call_process): Remove redundant call to prepare_menu_bars.
7
12013-11-05 Paul Eggert <eggert@cs.ucla.edu> 82013-11-05 Paul Eggert <eggert@cs.ucla.edu>
2 9
3 * keyboard.c (Fcommand_error_default_function): Fix pointer signedness 10 * keyboard.c (Fcommand_error_default_function): Fix pointer signedness
diff --git a/src/callproc.c b/src/callproc.c
index 72b9c1dc370..3317c1203bc 100644
--- a/src/callproc.c
+++ b/src/callproc.c
@@ -777,7 +777,6 @@ call_process (ptrdiff_t nargs, Lisp_Object *args, int filefd,
777 char buf[CALLPROC_BUFFER_SIZE_MAX]; 777 char buf[CALLPROC_BUFFER_SIZE_MAX];
778 int bufsize = CALLPROC_BUFFER_SIZE_MIN; 778 int bufsize = CALLPROC_BUFFER_SIZE_MIN;
779 int nread; 779 int nread;
780 bool first = 1;
781 EMACS_INT total_read = 0; 780 EMACS_INT total_read = 0;
782 int carryover = 0; 781 int carryover = 0;
783 bool display_on_the_fly = display_p; 782 bool display_on_the_fly = display_p;
@@ -875,9 +874,6 @@ call_process (ptrdiff_t nargs, Lisp_Object *args, int filefd,
875 874
876 if (display_p) 875 if (display_p)
877 { 876 {
878 if (first)
879 prepare_menu_bars ();
880 first = 0;
881 redisplay_preserve_echo_area (1); 877 redisplay_preserve_echo_area (1);
882 /* This variable might have been set to 0 for code 878 /* This variable might have been set to 0 for code
883 detection. In that case, set it back to 1 because 879 detection. In that case, set it back to 1 because
diff --git a/src/dispextern.h b/src/dispextern.h
index 22357a01c84..32c6a63e62f 100644
--- a/src/dispextern.h
+++ b/src/dispextern.h
@@ -33,7 +33,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
33 33
34#else /* !HAVE_X_WINDOWS */ 34#else /* !HAVE_X_WINDOWS */
35 35
36/* X-related stuff used by non-X gui code. */ 36/* X-related stuff used by non-X gui code. */
37 37
38typedef struct { 38typedef struct {
39 unsigned long pixel; 39 unsigned long pixel;
@@ -2348,7 +2348,7 @@ struct it
2348 } stretch; 2348 } stretch;
2349 } u; 2349 } u;
2350 2350
2351 /* current text and display positions. */ 2351 /* Current text and display positions. */
2352 struct text_pos position; 2352 struct text_pos position;
2353 struct display_pos current; 2353 struct display_pos current;
2354 Lisp_Object from_overlay; 2354 Lisp_Object from_overlay;
@@ -2360,11 +2360,12 @@ struct it
2360 unsigned string_from_prefix_prop_p : 1; 2360 unsigned string_from_prefix_prop_p : 1;
2361 unsigned display_ellipsis_p : 1; 2361 unsigned display_ellipsis_p : 1;
2362 unsigned avoid_cursor_p : 1; 2362 unsigned avoid_cursor_p : 1;
2363 unsigned bidi_p:1; 2363 unsigned bidi_p : 1;
2364 unsigned from_disp_prop_p : 1; 2364 unsigned from_disp_prop_p : 1;
2365 enum line_wrap_method line_wrap; 2365 enum line_wrap_method line_wrap;
2366 2366
2367 /* properties from display property that are reset by another display property. */ 2367 /* Properties from display property that are reset by another display
2368 property. */
2368 short voffset; 2369 short voffset;
2369 Lisp_Object space_width; 2370 Lisp_Object space_width;
2370 Lisp_Object font_height; 2371 Lisp_Object font_height;
diff --git a/src/lisp.h b/src/lisp.h
index b70ca9e9f7c..2b197cd32b1 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -3526,7 +3526,6 @@ extern void update_echo_area (void);
3526extern void truncate_echo_area (ptrdiff_t); 3526extern void truncate_echo_area (ptrdiff_t);
3527extern void redisplay (void); 3527extern void redisplay (void);
3528extern void redisplay_preserve_echo_area (int); 3528extern void redisplay_preserve_echo_area (int);
3529extern void prepare_menu_bars (void);
3530 3529
3531void set_frame_cursor_types (struct frame *, Lisp_Object); 3530void set_frame_cursor_types (struct frame *, Lisp_Object);
3532extern void syms_of_xdisp (void); 3531extern void syms_of_xdisp (void);
diff --git a/src/xdisp.c b/src/xdisp.c
index a9dd387729e..296ab458946 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -737,7 +737,7 @@ ptrdiff_t help_echo_pos;
737 737
738Lisp_Object previous_help_echo_string; 738Lisp_Object previous_help_echo_string;
739 739
740/* Platform-independent portion of hourglass implementation. */ 740/* Platform-independent portion of hourglass implementation. */
741 741
742#ifdef HAVE_WINDOW_SYSTEM 742#ifdef HAVE_WINDOW_SYSTEM
743 743
@@ -6554,8 +6554,8 @@ lookup_glyphless_char_display (int c, struct it *it)
6554 if (c >= 0) 6554 if (c >= 0)
6555 { 6555 {
6556 glyphless_method = CHAR_TABLE_REF (Vglyphless_char_display, c); 6556 glyphless_method = CHAR_TABLE_REF (Vglyphless_char_display, c);
6557 if (CONSP (glyphless_method)) 6557 if (CONSP (glyphless_method))
6558 glyphless_method = FRAME_WINDOW_P (it->f) 6558 glyphless_method = FRAME_WINDOW_P (it->f)
6559 ? XCAR (glyphless_method) 6559 ? XCAR (glyphless_method)
6560 : XCDR (glyphless_method); 6560 : XCDR (glyphless_method);
6561 } 6561 }
@@ -6759,7 +6759,7 @@ get_next_display_element (struct it *it)
6759 6759
6760 Non-printable characters and raw-byte characters are also 6760 Non-printable characters and raw-byte characters are also
6761 translated to octal form. */ 6761 translated to octal form. */
6762 if (((c < ' ' || c == 127) /* ASCII control chars */ 6762 if (((c < ' ' || c == 127) /* ASCII control chars. */
6763 ? (it->area != TEXT_AREA 6763 ? (it->area != TEXT_AREA
6764 /* In mode line, treat \n, \t like other crl chars. */ 6764 /* In mode line, treat \n, \t like other crl chars. */
6765 || (c != '\t' 6765 || (c != '\t'
@@ -9272,7 +9272,7 @@ move_it_by_lines (struct it *it, ptrdiff_t dvpos)
9272 9272
9273 /* The commented-out optimization uses vmotion on terminals. This 9273 /* The commented-out optimization uses vmotion on terminals. This
9274 gives bad results, because elements like it->what, on which 9274 gives bad results, because elements like it->what, on which
9275 callers such as pos_visible_p rely, aren't updated. */ 9275 callers such as pos_visible_p rely, aren't updated. */
9276 /* struct position pos; 9276 /* struct position pos;
9277 if (!FRAME_WINDOW_P (it->f)) 9277 if (!FRAME_WINDOW_P (it->f))
9278 { 9278 {
@@ -9290,7 +9290,7 @@ move_it_by_lines (struct it *it, ptrdiff_t dvpos)
9290 { 9290 {
9291 /* DVPOS == 0 means move to the start of the screen line. */ 9291 /* DVPOS == 0 means move to the start of the screen line. */
9292 move_it_vertically_backward (it, 0); 9292 move_it_vertically_backward (it, 0);
9293 /* Let next call to line_bottom_y calculate real line height */ 9293 /* Let next call to line_bottom_y calculate real line height. */
9294 last_height = 0; 9294 last_height = 0;
9295 } 9295 }
9296 else if (dvpos > 0) 9296 else if (dvpos > 0)
@@ -11167,7 +11167,7 @@ x_consider_frame_title (Lisp_Object frame)
11167/* Prepare for redisplay by updating menu-bar item lists when 11167/* Prepare for redisplay by updating menu-bar item lists when
11168 appropriate. This can call eval. */ 11168 appropriate. This can call eval. */
11169 11169
11170void 11170static void
11171prepare_menu_bars (void) 11171prepare_menu_bars (void)
11172{ 11172{
11173 int all_windows; 11173 int all_windows;
@@ -18452,7 +18452,7 @@ append_space_for_newline (struct it *it, int default_face_p)
18452 it->len = 1; 18452 it->len = 1;
18453 18453
18454 /* If the default face was remapped, be sure to use the 18454 /* If the default face was remapped, be sure to use the
18455 remapped face for the appended newline. */ 18455 remapped face for the appended newline. */
18456 if (default_face_p) 18456 if (default_face_p)
18457 it->face_id = lookup_basic_face (it->f, DEFAULT_FACE_ID); 18457 it->face_id = lookup_basic_face (it->f, DEFAULT_FACE_ID);
18458 else if (it->face_before_selective_p) 18458 else if (it->face_before_selective_p)
@@ -25052,7 +25052,7 @@ produce_glyphless_glyph (struct it *it, int for_no_font, Lisp_Object acronym)
25052 lower_yoff = descent - 2 - metrics_lower.descent; 25052 lower_yoff = descent - 2 - metrics_lower.descent;
25053 upper_yoff = (lower_yoff - metrics_lower.ascent - 1 25053 upper_yoff = (lower_yoff - metrics_lower.ascent - 1
25054 - metrics_upper.descent); 25054 - metrics_upper.descent);
25055 /* Don't make the height shorter than the base height. */ 25055 /* Don't make the height shorter than the base height. */
25056 if (height > base_height) 25056 if (height > base_height)
25057 { 25057 {
25058 it->ascent = ascent; 25058 it->ascent = ascent;
@@ -25089,16 +25089,16 @@ x_produce_glyphs (struct it *it)
25089 struct face *face = FACE_FROM_ID (it->f, it->face_id); 25089 struct face *face = FACE_FROM_ID (it->f, it->face_id);
25090 struct font *font = face->font; 25090 struct font *font = face->font;
25091 struct font_metrics *pcm = NULL; 25091 struct font_metrics *pcm = NULL;
25092 int boff; /* baseline offset */ 25092 int boff; /* Baseline offset. */
25093 25093
25094 if (font == NULL) 25094 if (font == NULL)
25095 { 25095 {
25096 /* When no suitable font is found, display this character by 25096 /* When no suitable font is found, display this character by
25097 the method specified in the first extra slot of 25097 the method specified in the first extra slot of
25098 Vglyphless_char_display. */ 25098 Vglyphless_char_display. */
25099 Lisp_Object acronym = lookup_glyphless_char_display (-1, it); 25099 Lisp_Object acronym = lookup_glyphless_char_display (-1, it);
25100 25100
25101 eassert (it->what == IT_GLYPHLESS); 25101 eassert (it->what == IT_GLYPHLESS);
25102 produce_glyphless_glyph (it, 1, STRINGP (acronym) ? acronym : Qnil); 25102 produce_glyphless_glyph (it, 1, STRINGP (acronym) ? acronym : Qnil);
25103 goto done; 25103 goto done;
25104 } 25104 }
@@ -25236,7 +25236,7 @@ x_produce_glyphs (struct it *it)
25236 { 25236 {
25237 /* A newline has no width, but we need the height of the 25237 /* A newline has no width, but we need the height of the
25238 line. But if previous part of the line sets a height, 25238 line. But if previous part of the line sets a height,
25239 don't increase that height */ 25239 don't increase that height. */
25240 25240
25241 Lisp_Object height; 25241 Lisp_Object height;
25242 Lisp_Object total_height = Qnil; 25242 Lisp_Object total_height = Qnil;
@@ -25246,7 +25246,7 @@ x_produce_glyphs (struct it *it)
25246 it->nglyphs = 0; 25246 it->nglyphs = 0;
25247 25247
25248 height = get_it_property (it, Qline_height); 25248 height = get_it_property (it, Qline_height);
25249 /* Split (line-height total-height) list */ 25249 /* Split (line-height total-height) list. */
25250 if (CONSP (height) 25250 if (CONSP (height)
25251 && CONSP (XCDR (height)) 25251 && CONSP (XCDR (height))
25252 && NILP (XCDR (XCDR (height)))) 25252 && NILP (XCDR (XCDR (height))))
diff --git a/src/xselect.c b/src/xselect.c
index 34edc49feab..6dbeb539f77 100644
--- a/src/xselect.c
+++ b/src/xselect.c
@@ -972,7 +972,6 @@ x_handle_selection_clear (struct input_event *event)
972 Frun_hook_with_args (2, args); 972 Frun_hook_with_args (2, args);
973 } 973 }
974 974
975 prepare_menu_bars ();
976 redisplay_preserve_echo_area (20); 975 redisplay_preserve_echo_area (20);
977} 976}
978 977