all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Why is there no selected region in the second case
@ 2008-09-29 16:30 Decebal
  2008-09-30 17:00 ` Nikolaj Schumacher
       [not found] ` <mailman.20263.1222794037.18990.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 3+ messages in thread
From: Decebal @ 2008-09-29 16:30 UTC (permalink / raw)
  To: help-gnu-emacs

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?


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-10-01  7:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-29 16:30 Why is there no selected region in the second case Decebal
2008-09-30 17:00 ` Nikolaj Schumacher
     [not found] ` <mailman.20263.1222794037.18990.help-gnu-emacs@gnu.org>
2008-10-01  7:42   ` Decebal

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.