Function: widget-end-of-line

widget-end-of-line is an interactive and byte-compiled function defined in wid-edit.el.gz.

Signature

(widget-end-of-line)

Documentation

Go to end of field or end of line, whichever is first.

Trailing spaces at the end of padded fields are not considered part of the field.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/wid-edit.el.gz
(defun widget-end-of-line ()
  "Go to end of field or end of line, whichever is first.
Trailing spaces at the end of padded fields are not considered part of
the field."
  (interactive)
  ;; Ordinary end-of-line does the right thing, because we're inside
  ;; text with a `field' property.
  (end-of-line)
  (unless (eolp)
    ;; ... except that we want to ignore trailing spaces in fields that
    ;; aren't terminated by a newline, because they are used as padding,
    ;; and ignored when extracting the entered value of the field.
    (skip-chars-backward " " (field-beginning (1- (point))))))