Reputation: 595
(message %s)
> "foo bar"
How can I only print "bar"?
Upvotes: 0
Views: 369
Reputation: 20024
First split the string, then grab the element you want from the resulting list:
(message "%s" (nth 1 (split-string "foo bar")))
Upvotes: 2