From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Luca Ferrari Newsgroups: gmane.emacs.help Subject: Re: creating a function that works for active region or whole buffer Date: Wed, 23 Jan 2013 08:41:36 +0100 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1358926904 7915 80.91.229.3 (23 Jan 2013 07:41:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Jan 2013 07:41:44 +0000 (UTC) To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 23 08:42:03 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 1Txuy9-0005DR-K6 for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Jan 2013 08:42:01 +0100 Original-Received: from localhost ([::1]:48352 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Txuxs-0003sS-Bi for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Jan 2013 02:41:44 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:48653) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Txuxm-0003s9-A7 for help-gnu-emacs@gnu.org; Wed, 23 Jan 2013 02:41:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Txuxl-00071Y-7r for help-gnu-emacs@gnu.org; Wed, 23 Jan 2013 02:41:38 -0500 Original-Received: from mail-wi0-f172.google.com ([209.85.212.172]:42798) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Txuxl-00071P-2E for help-gnu-emacs@gnu.org; Wed, 23 Jan 2013 02:41:37 -0500 Original-Received: by mail-wi0-f172.google.com with SMTP id o1so419162wic.17 for ; Tue, 22 Jan 2013 23:41:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=K0ibcAlvbcXFlnVzWNpWdkphhvFmSZElqGrF34f+HTs=; b=ImWuigl8YcymScndYnDgpB9xeLKl5hIRloCLo7iaVMPUAxAPMYTrF+OL/QKtIrK6EZ Mow/XiKUbqsuOv2ip3s0fZnqQrnSTZjr4ekcXaB4ie6pJrmde8YCJWJkULxL48Dajb7X CYEN8tttd+AEf4qUlvONXw1LeWLhWDkxsW1WX+rYIzDxw6/bljw6Po5VhVOOnZZjiY9M 21ucGSPAxtgA7fuNe4MtaqEYCOJWL/Gmh8i+gZJBVlUBNoya1+WyVdJykcKgnQAh7iuG O+a7pujgGjVCWPgLxYkIL+US7HDcpNOPCc06x1Xf7f7SGdY7Rzo/xrGT9/VNmgNjMTiF TMwQ== X-Received: by 10.180.73.202 with SMTP id n10mr25420853wiv.17.1358926896230; Tue, 22 Jan 2013 23:41:36 -0800 (PST) Original-Received: by 10.194.39.1 with HTTP; Tue, 22 Jan 2013 23:41:36 -0800 (PST) In-Reply-To: X-Google-Sender-Auth: sosZNubPEYPX2hNRXpDYEg8QwLA X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.212.172 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:88775 Archived-At: Correct! Since I'm not interested in separating spaces from other parts of the string I fixed the regexp to "^[ \t]*\\(.+\\):[ \t\n]*" (at least one letter before the colon must be present). Thanks guys! Luca