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

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

terminal command with output in current buff


From: lisa-asket
Subject: terminal command with output in current buff
Date: Sat, 17 Jul 2021 11:09:02 +0200 (CEST)

Thought the following could solve the problem, but was not so.



 (cmd-cnum (write-to-string (read-number "context: " 8)))



 (cmd-temp `("grep" "-hir" ,cmd-excl ,cmd-incl
              "-C" ,cmd-cnum ,cmd-ptrn))



From: Felix Dietrich <felix.dietrich@sperrhaken.name>
To: help-gnu-emacs@gnu.org
Subject: Re: terminal command with output in current buffer
Date: 16/07/2021 23:58:51 Europe/Paris

lisa-asket@perso.be writes:

> I am getting a small problem when using `(cmd-cnum (read-number "context: "))`
>
> Wrong type argument: sequencep, 8 

Could you provide more context? If you are trying to use ‘seq-empty-p’
with the result of ‘read-number’: that does not work because the result
of ‘read-number’ is a number not a sequence (which a string as returned
by ‘read-from-minibuffer’ is).

-- 
Felix Dietrich




reply via email to

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