From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Decebal Newsgroups: gmane.emacs.help Subject: Why is there no selected region in the second case Date: Mon, 29 Sep 2008 09:30:09 -0700 (PDT) Organization: http://groups.google.com Message-ID: <66c7838f-7c1c-4ddc-b7f3-f99144b9514d@79g2000hsk.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1222750935 10125 80.91.229.12 (30 Sep 2008 05:02:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Sep 2008 05:02:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 30 07:03:14 2008 connect(): Connection refused Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KkXOB-0007wr-8J for geh-help-gnu-emacs@m.gmane.org; Tue, 30 Sep 2008 07:03:11 +0200 Original-Received: from localhost ([127.0.0.1]:53752 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KkXN8-0006x0-Iv for geh-help-gnu-emacs@m.gmane.org; Tue, 30 Sep 2008 01:02:06 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!79g2000hsk.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 19 Original-NNTP-Posting-Host: 80.79.97.145 Original-X-Trace: posting.google.com 1222705809 24926 127.0.0.1 (29 Sep 2008 16:30:09 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 29 Sep 2008 16:30:09 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 79g2000hsk.googlegroups.com; posting-host=80.79.97.145; posting-account=K-cdeAoAAAD_0d505kUtHXJaT5LFIu-3 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.9.0.2) Gecko/2008091620 Firefox/3.0.2,gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 proxy-25:8080 (squid/2.5.STABLE8) Original-Xref: news.stanford.edu gnu.emacs.help:162858 X-Mailman-Approved-At: Tue, 30 Sep 2008 01:00:50 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:58216 Archived-At: I have made the folowing function: ##### (defun do-make-tab-seperated-file () (goto-char (point-min)) (push-mark (point) t t) (re-search-forward "^=" nil t) (beginning-of-line) (next-line 2) (delete-region (region-beginning) (region-end)) (re-search-forward "^=" nil t) (beginning-of-line) (push-mark (point) t t) (goto-char (point-max)) ) ##### The first push-mark works and I can delete with delete-region. But the second does not work. There is no region selected after the last two statements. What am I doing wrong?