help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why is there no selected region in the second case


From: Decebal
Subject: Why is there no selected region in the second case
Date: Mon, 29 Sep 2008 09:30:09 -0700 (PDT)
User-agent: G2/1.0

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?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]