[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Basic emacs lisp question

From: Stefan Monnier
Subject: Re: Basic emacs lisp question
Date: Wed, 10 Sep 2014 10:26:57 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

>   (let ((a (thing-at-point 'word)))
>     (message a)))

And if the word at point includes % you'll get an error.
*Always* pass a format string to `message':

   (message "%s" (thing-at-point 'word))))

-- Stefan

reply via email to

[Prev in Thread] Current Thread [Next in Thread]