greg(a)alphatech.com (Greg Klanderman) writes:
(defun gk:beginning-of-buffer ()
"Move point to the beginning of the buffer."
(interactive "_")
(if zmacs-region-active-p
(if (> (point) (mark))
(exchange-point-and-mark))
(push-mark))
(goto-char (point-min)))
I don't understand your (> (point) (mark)) check. If I were to change
beginning-of-buffer, I'd make a simpler change:
(defun ...
(interactive "_")
(unless (region-active-p)
(push-mark))
;; the rest of the function -- a bit more complex than this, but
;; essentially the same:
(goto-char (point-min)))
--
Hrvoje Niksic <hniksic(a)srce.hr> | Student at FER Zagreb, Croatia
--------------------------------+--------------------------------
What is mind? No matter.
What is matter? Never mind.