aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2017-06-24 13:01:30 +0300
committerEli Zaretskii2017-06-24 13:01:30 +0300
commit9776d7bcf044722909c10c9395d18c81641f27d0 (patch)
tree5f22576caede80c0c04a911859d682a7975588e3 /src
parent5b648ac7a2b2e1b77eb59573db59019d5068476c (diff)
downloademacs-9776d7bcf044722909c10c9395d18c81641f27d0.tar.gz
emacs-9776d7bcf044722909c10c9395d18c81641f27d0.zip
Don't display line numbers in the minibuffer and in tooltip frames.
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c25
1 files changed, 20 insertions, 5 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 9b5762550d7..19e3efb2f3d 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -21002,13 +21002,23 @@ display_line (struct it *it, int cursor_vpos)
21002 min_bpos = BYTEPOS (this_line_min_pos); 21002 min_bpos = BYTEPOS (this_line_min_pos);
21003 21003
21004 /* Produce line number, if needed. */ 21004 /* Produce line number, if needed. */
21005 if (!NILP (Vdisplay_line_numbers)) 21005 if (!NILP (Vdisplay_line_numbers)
21006#ifdef HAVE_WINDOW_SYSTEM
21007 && !(FRAMEP (tip_frame)
21008 && EQ (WINDOW_FRAME (it->w), tip_frame))
21009#endif
21010 && (!MINI_WINDOW_P (it->w)))
21006 maybe_produce_line_number (it); 21011 maybe_produce_line_number (it);
21007 } 21012 }
21008 else if (it->area == TEXT_AREA) 21013 else if (it->area == TEXT_AREA)
21009 { 21014 {
21010 /* Line numbers should precede the line-prefix or wrap-prefix. */ 21015 /* Line numbers should precede the line-prefix or wrap-prefix. */
21011 if (!NILP (Vdisplay_line_numbers)) 21016 if (!NILP (Vdisplay_line_numbers)
21017#ifdef HAVE_WINDOW_SYSTEM
21018 && !(FRAMEP (tip_frame)
21019 && EQ (WINDOW_FRAME (it->w), tip_frame))
21020#endif
21021 && (!MINI_WINDOW_P (it->w)))
21012 maybe_produce_line_number (it); 21022 maybe_produce_line_number (it);
21013 21023
21014 /* We only do this when not calling move_it_in_display_line_to 21024 /* We only do this when not calling move_it_in_display_line_to
@@ -21091,8 +21101,7 @@ display_line (struct it *it, int cursor_vpos)
21091 row->displays_text_p = false; 21101 row->displays_text_p = false;
21092 21102
21093 if (!NILP (BVAR (XBUFFER (it->w->contents), indicate_empty_lines)) 21103 if (!NILP (BVAR (XBUFFER (it->w->contents), indicate_empty_lines))
21094 && (!MINI_WINDOW_P (it->w) 21104 && (!MINI_WINDOW_P (it->w)))
21095 || (minibuf_level && EQ (it->window, minibuf_window))))
21096 row->indicate_empty_line_p = true; 21105 row->indicate_empty_line_p = true;
21097 } 21106 }
21098 21107
@@ -21175,7 +21184,13 @@ display_line (struct it *it, int cursor_vpos)
21175 if (it->area == TEXT_AREA && pending_handle_line_prefix) 21184 if (it->area == TEXT_AREA && pending_handle_line_prefix)
21176 { 21185 {
21177 /* Line numbers should precede the line-prefix or wrap-prefix. */ 21186 /* Line numbers should precede the line-prefix or wrap-prefix. */
21178 if (!NILP (Vdisplay_line_numbers)) 21187 if (!NILP (Vdisplay_line_numbers)
21188#ifdef HAVE_WINDOW_SYSTEM
21189 && !(FRAMEP (tip_frame)
21190 && EQ (WINDOW_FRAME (it->w), tip_frame))
21191#endif
21192 && (!MINI_WINDOW_P (it->w)
21193 || (minibuf_level && EQ (it->window, minibuf_window))))
21179 maybe_produce_line_number (it); 21194 maybe_produce_line_number (it);
21180 21195
21181 pending_handle_line_prefix = false; 21196 pending_handle_line_prefix = false;