[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Defaults for optional arguments for use with interactive
From: |
Heime |
Subject: |
Defaults for optional arguments for use with interactive |
Date: |
Sat, 07 Sep 2024 14:44:23 +0000 |
With the following function, how can I default actm to be 'list
so that the "(interactive (list" part guts executed rather than
the "(interactive string" part ?
(defun xiakos-context (search-text &optional n actm)
(setq n (or n 8))
(setq actm (or actm 'list))
(interactive
(cond
((eq actm 'list)
(list
(read-string "Search Text: ")
(read-number "Number of Context Lines: ")
('list)))
(t
"s - Search Text: \n\
n - Number of Context Lines: ") ))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Defaults for optional arguments for use with interactive,
Heime <=