Mercurial > emacs
comparison src/xdisp.c @ 6518:07ecb7a5c916
(x_consider_frame_title, decode_mode_spec): Use assignment, not initialization.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Fri, 25 Mar 1994 00:41:29 +0000 |
parents | 35917d3d0952 |
children | c87ae1f14148 |
comparison
equal
deleted
inserted
replaced
6517:8f5f79c3091a | 6518:07ecb7a5c916 |
---|---|
403 { | 403 { |
404 FRAME_PTR f = XFRAME (frame); | 404 FRAME_PTR f = XFRAME (frame); |
405 | 405 |
406 if (FRAME_X_P (f) && ! FRAME_MINIBUF_ONLY_P (f)) | 406 if (FRAME_X_P (f) && ! FRAME_MINIBUF_ONLY_P (f)) |
407 { | 407 { |
408 Lisp_Object title = Qnil; | 408 Lisp_Object title; |
409 | 409 |
410 title = Qnil; | |
410 if (! EQ (Fnext_frame (frame, Qnil), frame)) | 411 if (! EQ (Fnext_frame (frame, Qnil), frame)) |
411 title = XBUFFER (XWINDOW (f->selected_window)->buffer)->name; | 412 title = XBUFFER (XWINDOW (f->selected_window)->buffer)->name; |
412 | 413 |
413 x_implicitly_set_name (f, title, Qnil); | 414 x_implicitly_set_name (f, title, Qnil); |
414 } | 415 } |
2702 decode_mode_spec (w, c, maxwidth) | 2703 decode_mode_spec (w, c, maxwidth) |
2703 struct window *w; | 2704 struct window *w; |
2704 register char c; | 2705 register char c; |
2705 register int maxwidth; | 2706 register int maxwidth; |
2706 { | 2707 { |
2707 Lisp_Object obj = Qnil; | 2708 Lisp_Object obj; |
2708 FRAME_PTR f = XFRAME (WINDOW_FRAME (w)); | 2709 FRAME_PTR f = XFRAME (WINDOW_FRAME (w)); |
2709 char *decode_mode_spec_buf = (char *) FRAME_TEMP_GLYPHS (f)->total_contents; | 2710 char *decode_mode_spec_buf = (char *) FRAME_TEMP_GLYPHS (f)->total_contents; |
2710 | 2711 |
2712 obj = Qnil; | |
2711 if (maxwidth > FRAME_WIDTH (f)) | 2713 if (maxwidth > FRAME_WIDTH (f)) |
2712 maxwidth = FRAME_WIDTH (f); | 2714 maxwidth = FRAME_WIDTH (f); |
2713 | 2715 |
2714 switch (c) | 2716 switch (c) |
2715 { | 2717 { |