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

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

interactive argument not meeting condition


From: Heime
Subject: interactive argument not meeting condition
Date: Wed, 27 Nov 2024 12:37:21 +0000

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)) )





reply via email to

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