[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Embedded list selection with ido-completing-read.
From: |
Emanuel Berg |
Subject: |
Re: Embedded list selection with ido-completing-read. |
Date: |
Tue, 26 Oct 2021 16:04:55 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Hongyi Zhao wrote:
> I tried for some time and got the following code snippet,
> but it doesn't seem to be able to complete the work
> discussed here by the original code snippet:
>
> (defun atomic-position (prog flag1 flag2)
> (interactive
> (list
> (completing-read "prog: " '("neb" "pw" "cp") nil t)
> (completing-read "flag1: " '("alat" "angstrom" "bohr" "crystal"
> "crystal_sg") nil t)
> (completing-read "flag2: " '("alat" "angstrom" "bohr" "crystal") nil t)
> )
> )
>
> (cond ((or (equal prog "neb")
> (equal prog "pw"))
> (insert (format "Atomic position: %s\n" flag1)))
> ((equal prog "cp")
> (insert (format "Atomic position: %s\n" flag2)))
> ))
Ha, so what's up with all this?
You fooled me, I admit it ... good one :)
--
underground experts united
https://dataswamp.org/~incal
- Re: Embedded list selection with ido-completing-read., (continued)
- Re: Embedded list selection with ido-completing-read., Hongyi Zhao, 2021/10/24
- Re: Embedded list selection with ido-completing-read., Emanuel Berg, 2021/10/24
- Re: Embedded list selection with ido-completing-read., Hongyi Zhao, 2021/10/25
- Re: Embedded list selection with ido-completing-read., Emanuel Berg, 2021/10/26
- Re: Embedded list selection with ido-completing-read., Hongyi Zhao, 2021/10/26
- Re: Embedded list selection with ido-completing-read., Emanuel Berg, 2021/10/26
- Re: Embedded list selection with ido-completing-read., Hongyi Zhao, 2021/10/26
- Re: Embedded list selection with ido-completing-read., Emanuel Berg, 2021/10/26
- Re: Embedded list selection with ido-completing-read., Hongyi Zhao, 2021/10/26
- Re: Embedded list selection with ido-completing-read., Emanuel Berg, 2021/10/26
- Re: Embedded list selection with ido-completing-read.,
Emanuel Berg <=
- Re: Embedded list selection with ido-completing-read., Hongyi Zhao, 2021/10/26
- Re: Embedded list selection with ido-completing-read., Emanuel Berg, 2021/10/26