diff options
| author | Joakim Verona | 2013-07-02 22:46:17 +0200 |
|---|---|---|
| committer | Joakim Verona | 2013-07-02 22:46:17 +0200 |
| commit | 3718127221fbbc31f8ebd027ab7c95403dbe9118 (patch) | |
| tree | ef422898f3344c8f94f6ecf63eb583122bbf2bd8 /src/intervals.c | |
| parent | 1ce45b902c67b8a0dda8d71bd2812de29a9988a6 (diff) | |
| parent | a3b49114c186d84404226af75ae7905bd1cd018f (diff) | |
| download | emacs-3718127221fbbc31f8ebd027ab7c95403dbe9118.tar.gz emacs-3718127221fbbc31f8ebd027ab7c95403dbe9118.zip | |
Merge branch 'trunk' into xwidget
Conflicts:
src/window.c
Diffstat (limited to 'src/intervals.c')
| -rw-r--r-- | src/intervals.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/intervals.c b/src/intervals.c index f65ce0ecc77..f2ddcd01507 100644 --- a/src/intervals.c +++ b/src/intervals.c | |||
| @@ -2196,20 +2196,15 @@ get_property_and_range (ptrdiff_t pos, Lisp_Object prop, Lisp_Object *val, | |||
| 2196 | /* Return the proper local keymap TYPE for position POSITION in | 2196 | /* Return the proper local keymap TYPE for position POSITION in |
| 2197 | BUFFER; TYPE should be one of `keymap' or `local-map'. Use the map | 2197 | BUFFER; TYPE should be one of `keymap' or `local-map'. Use the map |
| 2198 | specified by the PROP property, if any. Otherwise, if TYPE is | 2198 | specified by the PROP property, if any. Otherwise, if TYPE is |
| 2199 | `local-map' use BUFFER's local map. | 2199 | `local-map' use BUFFER's local map. */ |
| 2200 | |||
| 2201 | POSITION must be in the accessible part of BUFFER. */ | ||
| 2202 | 2200 | ||
| 2203 | Lisp_Object | 2201 | Lisp_Object |
| 2204 | get_local_map (register ptrdiff_t position, register struct buffer *buffer, | 2202 | get_local_map (ptrdiff_t position, struct buffer *buffer, Lisp_Object type) |
| 2205 | Lisp_Object type) | ||
| 2206 | { | 2203 | { |
| 2207 | Lisp_Object prop, lispy_position, lispy_buffer; | 2204 | Lisp_Object prop, lispy_position, lispy_buffer; |
| 2208 | ptrdiff_t old_begv, old_zv, old_begv_byte, old_zv_byte; | 2205 | ptrdiff_t old_begv, old_zv, old_begv_byte, old_zv_byte; |
| 2209 | 2206 | ||
| 2210 | /* Perhaps we should just change `position' to the limit. */ | 2207 | position = clip_to_bounds (BUF_BEGV (buffer), position, BUF_ZV (buffer)); |
| 2211 | if (position > BUF_ZV (buffer) || position < BUF_BEGV (buffer)) | ||
| 2212 | emacs_abort (); | ||
| 2213 | 2208 | ||
| 2214 | /* Ignore narrowing, so that a local map continues to be valid even if | 2209 | /* Ignore narrowing, so that a local map continues to be valid even if |
| 2215 | the visible region contains no characters and hence no properties. */ | 2210 | the visible region contains no characters and hence no properties. */ |