Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
318d030e
Commit
318d030e
authored
Apr 05, 2005
by
David Ponce
Browse files
(widget-field-end): Temporarily remove field
narrowing before to call `get-char-property'.
parent
0e739597
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
lisp/wid-edit.el
lisp/wid-edit.el
+11
-3
No files found.
lisp/wid-edit.el
View file @
318d030e
...
...
@@ -1185,9 +1185,17 @@ When not inside a field, move to the previous button or field."
;; or if a special `boundary' field has been added after the widget
;; field.
(
if
(
overlayp
overlay
)
(
if
(
and
(
not
(
eq
(
get-char-property
(
overlay-end
overlay
)
'field
(
widget-field-buffer
widget
))
(
if
(
and
(
not
(
eq
(
with-current-buffer
(
widget-field-buffer
widget
)
(
save-restriction
;; `widget-narrow-to-field' can be
;; active when this function is called
;; from an change-functions hook. So
;; temporarily remove field narrowing
;; before to call `get-char-property'.
(
widen
)
(
get-char-property
(
overlay-end
overlay
)
'field
)))
'boundary
))
(
or
widget-field-add-space
(
null
(
widget-get
widget
:size
))))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment