aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2018-06-18 12:14:26 -0700
committerGlenn Morris2018-06-18 12:14:26 -0700
commit1d9d35a4e8d6339e064bfe5b1655544e851128ff (patch)
treef0417fde3e7eb025bfb523ec5504b0e0b07ea9f1
parent96dd452be5b4accbd72864573f479d8b66d5e0e5 (diff)
parent36737705b451ad4c765baa5789e3ceb752ee07a3 (diff)
downloademacs-1d9d35a4e8d6339e064bfe5b1655544e851128ff.tar.gz
emacs-1d9d35a4e8d6339e064bfe5b1655544e851128ff.zip
Merge from origin/emacs-26
3673770 (origin/emacs-26) Fix vertical-motion with 'visual' line-numb... d8bff53 ; CONTRIBUTE: Add a couple of nits.
-rw-r--r--CONTRIBUTE7
-rw-r--r--src/indent.c3
2 files changed, 8 insertions, 2 deletions
diff --git a/CONTRIBUTE b/CONTRIBUTE
index c324375bb07..c4f424ce560 100644
--- a/CONTRIBUTE
+++ b/CONTRIBUTE
@@ -78,9 +78,16 @@ admin/notes/bug-triage.
78** Documenting your changes 78** Documenting your changes
79 79
80Any change that matters to end-users should have an entry in etc/NEWS. 80Any change that matters to end-users should have an entry in etc/NEWS.
81Try to start each NEWS entry with a sentence that summarizes the entry
82and takes just one line -- this will allow to read NEWS in Outline
83mode after hiding the body of each entry.
81 84
82Doc-strings should be updated together with the code. 85Doc-strings should be updated together with the code.
83 86
87New defcustom's should always have a ':version' tag stating the first
88Emacs version in which they will appear. Likewise with defcustom's
89whose value is changed -- update their ':version' tag.
90
84Think about whether your change requires updating the manuals. If you 91Think about whether your change requires updating the manuals. If you
85know it does not, mark the NEWS entry with "---". If you know 92know it does not, mark the NEWS entry with "---". If you know
86that *all* the necessary documentation updates have been made as part 93that *all* the necessary documentation updates have been made as part
diff --git a/src/indent.c b/src/indent.c
index bcffa0d11e5..9c751bc30b5 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -2147,8 +2147,7 @@ whether or not it is currently displayed in some window. */)
2147 will sometimes err by one column. */ 2147 will sometimes err by one column. */
2148 int lnum_width = 0; 2148 int lnum_width = 0;
2149 int lnum_pixel_width = 0; 2149 int lnum_pixel_width = 0;
2150 if (!NILP (Vdisplay_line_numbers) 2150 if (!NILP (Vdisplay_line_numbers))
2151 && !EQ (Vdisplay_line_numbers, Qvisual))
2152 line_number_display_width (w, &lnum_width, &lnum_pixel_width); 2151 line_number_display_width (w, &lnum_width, &lnum_pixel_width);
2153 SET_TEXT_POS (pt, PT, PT_BYTE); 2152 SET_TEXT_POS (pt, PT, PT_BYTE);
2154 itdata = bidi_shelve_cache (); 2153 itdata = bidi_shelve_cache ();