|
From: | Emanuel Berg |
Subject: | Re: terminal command with output in current buffer |
Date: | Mon, 19 Jul 2021 03:10:44 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Felix Dietrich wrote: > (let ((read-result (read-from-minibuffer "Prompt: "))) > (if (seq-empty-p read-result) > (setq read-result "default-value"))) What? :P `setq' again... (let*((read-result (read-from-minibuffer "Prompt: ")) (value (if (string= "" read-result) "default-value" read-result) )) value) -- underground experts united https://dataswamp.org/~incal
[Prev in Thread] | Current Thread | [Next in Thread] |