help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: interactive argument not meeting condition


From: Joel Reicher
Subject: Re: interactive argument not meeting condition
Date: Sun, 22 Dec 2024 23:06:30 +1100
User-agent: Gnus/5.13 (Gnus v5.13)

Heime via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org> writes:

For the line column I test whether actm disables the value. What happens to line-column when the condition does not invoke read-number? Would I need some default for it?

(defun polaq (actm line-column)

  (interactive
    (let* ( (cseq '("extended" "disable" "tabtrail"))
(actm (completing-read "Dragovis: " cseq nil t "tabtrail"))
            (line-column (if (not (string= actm "disable"))
(read-number "Set line column: " 72))) )

      (list actm line-column)) )

It looks like line-column is being set to the result of the "if".

Regards,

       - Joel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]