aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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