From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Raffaele Ricciardi Newsgroups: gmane.emacs.help Subject: `align-regexp' fails in Lisp code Date: Wed, 10 Jul 2013 02:11:42 +0200 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1373415319 23887 80.91.229.3 (10 Jul 2013 00:15:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Jul 2013 00:15:19 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 10 02:15:21 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 1Uwi40-0002QC-L5 for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Jul 2013 02:15:20 +0200 Original-Received: from localhost ([::1]:41753 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uwi40-0001C9-3j for geh-help-gnu-emacs@m.gmane.org; Tue, 09 Jul 2013 20:15:20 -0400 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 30 Original-X-Trace: individual.net lT2+KXuY61Sm7mMbDy/Y6wd1zihZKdMMN7QaG+YQvhxWGwZGlW Cancel-Lock: sha1:NkLmD9jNJQMK2KZlj0IL8Hx73hY= User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 Original-Xref: usenet.stanford.edu gnu.emacs.help:199767 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:92034 Archived-At: Hello everyone, I'm trying to run `align-regexp' from Lisp code, but it fails with the error "align-region: Marker does not point anywhere". Here is the specification of `align-regexp': --- (align-regexp BEG END REGEXP &optional GROUP SPACING REPEAT) Align the current region using an ad-hoc rule read from the minibuffer. BEG and END mark the limits of the region. --- Here is my Lisp code: (align-regexp (point-min) (point-max) " hides ") Marking the whole buffer and calling `align-regexp' interactively does work, though. Tried with "emacs -Q". I'm using GNU Emacs 24.3.1. Thank you for your attention.