[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Handling defaults values for both interactive and non-interactive use
From: |
Heime |
Subject: |
Handling defaults values for both interactive and non-interactive use |
Date: |
Tue, 10 Sep 2024 03:37:50 +0000 |
How is one to handle setting defaults for both interactive
and non-interactive use, properly ?
(defun xiakos-context (search-text &optional n bfrn)
(setq n (or n 8))
(setq bfrn (or bfrn "Context"))
(interactive
(list
(read-string " Search Text: ")
(read-number " Number of Context Lines: ")
(read-string " Buffer Name: ")))
(if (string-match-p "^\\s-*$" bfrn) "Context")
- Handling defaults values for both interactive and non-interactive use,
Heime <=