aboutsummaryrefslogtreecommitdiffstats
path: root/src/keymap.c
diff options
context:
space:
mode:
authorEli Zaretskii2013-11-18 18:45:48 +0200
committerEli Zaretskii2013-11-18 18:45:48 +0200
commit18b35e2c7a3ff95fb4a07e58c3f57c70c65c0701 (patch)
tree7a837a755a7c22d3258408cb384d01479ad88232 /src/keymap.c
parentdf87c56cdf6c8c13e8760bdc409e2eb0fda55b0b (diff)
parent37c790b38599cc80a16c6a76152abbf8160fe2a1 (diff)
downloademacs-18b35e2c7a3ff95fb4a07e58c3f57c70c65c0701.tar.gz
emacs-18b35e2c7a3ff95fb4a07e58c3f57c70c65c0701.zip
Merge from mainline.
Diffstat (limited to 'src/keymap.c')
-rw-r--r--src/keymap.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/keymap.c b/src/keymap.c
index 7a18cd5d983..562787ee8a5 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -3383,9 +3383,12 @@ describe_map (Lisp_Object map, Lisp_Object prefix,
3383 3383
3384 if (vect[i].shadowed) 3384 if (vect[i].shadowed)
3385 { 3385 {
3386 SET_PT (PT - 1); 3386 ptrdiff_t pt = max (PT - 1, BEG);
3387
3388 SET_PT (pt);
3387 insert_string ("\n (that binding is currently shadowed by another mode)"); 3389 insert_string ("\n (that binding is currently shadowed by another mode)");
3388 SET_PT (PT + 1); 3390 pt = min (PT + 1, Z);
3391 SET_PT (pt);
3389 } 3392 }
3390 } 3393 }
3391 3394