aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGlenn Morris2020-06-26 07:50:38 -0700
committerGlenn Morris2020-06-26 07:50:38 -0700
commitffb89ed5f07491e33fc79d8b4be49d9deba2ad4a (patch)
treec2305304aca119da0e4d692aad5b964ef0ba2cf6 /src
parent89c744c380b2aed28ebf2bd8f991461d60cff934 (diff)
parent5280e118c07d738321f61b3f2bc3cd27a5ac8dbc (diff)
downloademacs-ffb89ed5f07491e33fc79d8b4be49d9deba2ad4a.tar.gz
emacs-ffb89ed5f07491e33fc79d8b4be49d9deba2ad4a.zip
Merge from origin/emacs-27
5280e118c0 (origin/emacs-27) ; * src/xdisp.c (pos_visible_p): Fix las... bb1a9481c9 Fix posn-at-point at beginning of a display string 0c4b033670 Improve documentation of Info node movement commands 632b0119e1 Add Jansson dependency to Windows Build dbfcdab837 Unbreak 'reverse-region' c37de84845 Fix typos and markup in fill column indicator docs f61bff3ee9 ; * CONTRIBUTE: Clarify the preferences for patch formatting. 368e140660 Avoid crashes in 'defconst' 11e3413cff Fix text about Lisp archives in the Emacs FQ 4c81724675 Don't use 'cl' functions in ELisp manual's examples
Diffstat (limited to 'src')
-rw-r--r--src/eval.c1
-rw-r--r--src/xdisp.c7
2 files changed, 5 insertions, 3 deletions
diff --git a/src/eval.c b/src/eval.c
index 959adea6467..9daae92e55a 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -831,6 +831,7 @@ usage: (defconst SYMBOL INITVALUE [DOCSTRING]) */)
831 Lisp_Object sym, tem; 831 Lisp_Object sym, tem;
832 832
833 sym = XCAR (args); 833 sym = XCAR (args);
834 CHECK_SYMBOL (sym);
834 Lisp_Object docstring = Qnil; 835 Lisp_Object docstring = Qnil;
835 if (!NILP (XCDR (XCDR (args)))) 836 if (!NILP (XCDR (XCDR (args))))
836 { 837 {
diff --git a/src/xdisp.c b/src/xdisp.c
index bd0711471a2..e454fd7b83f 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -1871,9 +1871,10 @@ pos_visible_p (struct window *w, ptrdiff_t charpos, int *x, int *y,
1871 top_x = it3.current_x - it3.pixel_width; 1871 top_x = it3.current_x - it3.pixel_width;
1872 /* Account for line-number display, if IT3 still 1872 /* Account for line-number display, if IT3 still
1873 didn't. This can happen if START - 1 is the 1873 didn't. This can happen if START - 1 is the
1874 first character on its display line. */ 1874 first or the last character on its display line. */
1875 if (!it3.line_number_produced_p 1875 if (it3.lnum_pixel_width > 0)
1876 && it.line_number_produced_p) 1876 top_x += it3.lnum_pixel_width;
1877 else if (it.line_number_produced_p)
1877 top_x += it.lnum_pixel_width; 1878 top_x += it.lnum_pixel_width;
1878 /* Normally, we would exit the above loop because we 1879 /* Normally, we would exit the above loop because we
1879 found the display element whose character 1880 found the display element whose character