From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: phillip.lord@newcastle.ac.uk (Phillip Lord) Newsgroups: gmane.emacs.help Subject: Re: Basic emacs lisp question Date: Thu, 11 Sep 2014 12:10:35 +0100 Message-ID: <87zje6ct04.fsf@newcastle.ac.uk> References: <87egvkvb6o.fsf@gmail.com> <87egvjliv2.fsf@newcastle.ac.uk> <87k35bjx7e.fsf@newcastle.ac.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1410433875 14839 80.91.229.3 (11 Sep 2014 11:11:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Sep 2014 11:11:15 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 11 13:11:09 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XS2HK-0000Kb-Bm for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Sep 2014 13:11:06 +0200 Original-Received: from localhost ([::1]:36116 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XS2HJ-0003kS-RM for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Sep 2014 07:11:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38148) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XS2Gx-0003cw-TM for help-gnu-emacs@gnu.org; Thu, 11 Sep 2014 07:10:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XS2Gq-0002My-FA for help-gnu-emacs@gnu.org; Thu, 11 Sep 2014 07:10:43 -0400 Original-Received: from cheviot22.ncl.ac.uk ([128.240.234.22]:49709) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XS2Gq-0002Mg-2I for help-gnu-emacs@gnu.org; Thu, 11 Sep 2014 07:10:36 -0400 Original-Received: from smtpauth-vm.ncl.ac.uk ([10.8.233.129] helo=smtpauth.ncl.ac.uk) by cheviot22.ncl.ac.uk with esmtp (Exim 4.63) (envelope-from ) id 1XS2Gp-00018j-ET; Thu, 11 Sep 2014 12:10:35 +0100 Original-Received: from jangai.ncl.ac.uk ([10.66.67.223] helo=localhost) by smtpauth.ncl.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1XS2Gp-0001KZ-DI; Thu, 11 Sep 2014 12:10:35 +0100 In-Reply-To: (Stefan Monnier's message of "Wed, 10 Sep 2014 12:59:45 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 128.240.234.22 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:99807 Archived-At: Stefan Monnier writes: >>>> (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)))) >> I *think* (thing-at-point 'word) doesn't normally return a %, at least >> not from .signature, so I'm in the clear! > > Might be the case, but why think when you can just use "%s" is move on? Can't argue with that. Spend too much of my life thinking, so less is welcome. Phil