all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.