unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Getting substring
@ 2023-08-16  9:26 Heime
  2023-08-16 13:18 ` Heime
  2023-08-19 22:31 ` Emanuel Berg
  0 siblings, 2 replies; 13+ messages in thread
From: Heime @ 2023-08-16  9:26 UTC (permalink / raw)
  To: Heime via Users list for the GNU Emacs text editor

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" 





^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2023-08-25  7:39 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-16  9:26 Getting substring Heime
2023-08-16 13:18 ` Heime
2023-08-17  2:23   ` Heime
2023-08-17  2:30     ` Pierre Rouleau
2023-08-17  2:33       ` Pierre Rouleau
2023-08-17  2:52         ` Heime
2023-08-17  3:01           ` Heime
2023-08-17  3:07             ` Pierre Rouleau
2023-08-17  3:16               ` Heime
2023-08-17 12:37                 ` Pierre Rouleau
2023-08-17  3:01           ` Pierre Rouleau
2023-08-19 22:31 ` Emanuel Berg
2023-08-25  7:39   ` Philip Kaludercic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).