Function: Custom-newline

Custom-newline is an interactive and byte-compiled function defined in cus-edit.el.gz.

Signature

(Custom-newline POS &optional EVENT)

Documentation

Invoke button at POS, or refuse to allow editing of Custom buffer.

To see what function the widget will call, use the widget-describe command.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/cus-edit.el.gz
(defun Custom-newline (pos &optional event)
  "Invoke button at POS, or refuse to allow editing of Custom buffer.

To see what function the widget will call, use the
`widget-describe' command."
  (interactive "@d")
  (let ((button (or (get-char-property pos 'button)
                    ;; Maybe we are just past a button, and it's quite handy
                    ;; to action it as well.  (Bug#72341)
                    (get-char-property (1- pos) 'button))))
    (or button
        ;; If there is no button at point, then use the one at the start
        ;; of the line, if it is a custom-group-link (bug#2298).
	(if (setq button (get-char-property (line-beginning-position) 'button))
	    (or (eq (widget-type button) 'custom-group-link)
		(setq button nil))))
    (if button
	(widget-apply-action button event)
      (error "You can't edit this part of the Custom buffer"))))