[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Getting substring
From: |
Heime |
Subject: |
Re: Getting substring |
Date: |
Thu, 17 Aug 2023 02:23:14 +0000 |
Sent with Proton Mail secure email.
------- Original Message -------
On Thursday, August 17th, 2023 at 1:18 AM, Heime <heimeborgia@protonmail.com>
wrote:
> ------- Original Message -------
> On Wednesday, August 16th, 2023 at 9:26 PM, Heime heimeborgia@protonmail.com
> wrote:
>
>
>
> > I have a variable named 'multistr' which may consist of multiple parts
> > separated by spaces.
> > How can I get the string before the first space in elisp ?
> >
> > (setq multistr "this that")
> > (message "%s" str) giving "this"
>
>
> Have used
>
> (setq str "bigoplus ⨁︁")
> (message "%s TEST: " (car (split-string str)))
> (setq str "bigoplus︁")
> (message "%s TEST: " (car (split-string str)))
>
> But there is something very wrong with it.
Why does the following not print the first word?
(message "%s TEST: " (car (split-string grafm)))
- Getting substring, Heime, 2023/08/16
- Re: Getting substring, Heime, 2023/08/16
- Re: Getting substring,
Heime <=
- Re: Getting substring, Pierre Rouleau, 2023/08/16
- Re: Getting substring, Pierre Rouleau, 2023/08/16
- Re: Getting substring, Heime, 2023/08/16
- Re: Getting substring, Heime, 2023/08/16
- Re: Getting substring, Pierre Rouleau, 2023/08/16
- Re: Getting substring, Heime, 2023/08/16
- Re: Getting substring, Pierre Rouleau, 2023/08/17
- Re: Getting substring, Pierre Rouleau, 2023/08/16
Re: Getting substring, Emanuel Berg, 2023/08/22