From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?=C3=93scar_Fuentes?= Newsgroups: gmane.emacs.help Subject: Re: Why there is an additional NOSPAM in this Yasnippet? Date: Thu, 09 May 2013 20:48:17 +0200 Message-ID: <87txmcouq6.fsf@wanadoo.es> References: <87d2t06n6p.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1368125320 24531 80.91.229.3 (9 May 2013 18:48:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 May 2013 18:48:40 +0000 (UTC) Cc: help-gnu-emacs To: Hongxu Chen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 09 20:48:39 2013 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 1UaVtO-0002zF-NK for geh-help-gnu-emacs@m.gmane.org; Thu, 09 May 2013 20:48:38 +0200 Original-Received: from localhost ([::1]:60122 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UaVtO-0003Cz-9g for geh-help-gnu-emacs@m.gmane.org; Thu, 09 May 2013 14:48:38 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46168) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UaVtA-0003Cj-NY for help-gnu-emacs@gnu.org; Thu, 09 May 2013 14:48:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UaVt9-0006qG-Mg for help-gnu-emacs@gnu.org; Thu, 09 May 2013 14:48:24 -0400 Original-Received: from impaqm3.telefonica.net ([213.4.138.19]:41734 helo=telefonica.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UaVt9-0006nU-6d for help-gnu-emacs@gnu.org; Thu, 09 May 2013 14:48:23 -0400 Original-Received: from IMPmailhost1.adm.correo ([10.20.102.38]) by IMPaqm3.telefonica.net with bizsmtp id Zp1q1l01A0piX6q3PuoJrM; Thu, 09 May 2013 20:48:18 +0200 Original-Received: from qcore ([83.40.116.149]) by IMPmailhost1.adm.correo with BIZ IMP id ZuoG1l00S3DUQuj1huoHpE; Thu, 09 May 2013 20:48:18 +0200 X-CMAE-Analysis: v=1.1 cv=sDfKUcqay40UvJ6pPi+IdX48HtewD1FAFfU2qEAqVxk= c=1 sm=1 a=DQlLCnKHR5QA:10 a=2b98Wfce5LgA:10 a=sSE9TqpJnXXWdi4WNHITQg==:17 a=pGLkceISAAAA:8 a=t8Ppvcvbtc0WQ3B9JmgA:9 a=MSl-tDqOz04A:10 a=W6QOt3UeNnWxMCnQ:21 a=_wzNYfhPYCnznr2k:21 a=sSE9TqpJnXXWdi4WNHITQg==:117 X-original-sender: 981711563@telefonica.net In-Reply-To: <87d2t06n6p.fsf@gmail.com> (Hongxu Chen's message of "Fri, 10 May 2013 02:08:30 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 213.4.138.19 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:90602 Archived-At: Hongxu Chen writes: > I am using yasnippet but has some problems with it. > > There is a snippet file in the `snippets/text-mode' directory called > `email', with the full contents below: > > # name: (user's email) > # key: email > # -- > `(replace-regexp-in-string "@" "@NOSPAM." user-mail-address)` > > So why there is a need to replace the `@' with `@NOSPAM'? Putting @NOSPAM in the email address is a common way of trying to confuse spammers doing address harvesting. In this case, if you want to use your email address as-is, possibly there are methods provided by the email client you are using for quickly inserting it, without the need to use yasnippet. > BTW, is there any setting that looks up ONLY the directory I customized? > I am using this one but it STILL additionally uses the snippets insides > `yasnippets/snippets' directory(I am using elpa to manage el packages so > I do not like to remove or modify the snippets directory). > > (setq yas-snippet-dirs "~/emacs.d/snippets") Try moving the setq to a place before (require 'yasnippet).