[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Xemacs mark-end-of-buffer, (from simple.el)
From: |
Uwe Brauer |
Subject: |
Re: Xemacs mark-end-of-buffer, (from simple.el) |
Date: |
Mon, 03 Feb 2014 23:29:00 +0100 |
User-agent: |
Gnus/5.130006 (Ma Gnus v0.6) XEmacs/21.5-b32 (linux) |
>> "Damien" == Damien Wyart <address@hidden> writes:
> * Uwe Brauer <address@hidden> [2014-02-03 13:07]:
>> There is one function from Xemacs which I have not seen in GNU emacs and
>> which I miss very much.
>> (defun mark-end-of-buffer (&optional arg)
> It is defined in lisp/misc.el, but not with an optional arg, so it
> doesn't have the full features set of the one in XEmacs.
A couple of comments:
- could it please move to simple.el, since misc.el usually is not
loaded per default.
- the current version does set the mark (visible) even with
transient-mark-mode on. So propose the following modification
(defun mark-beginning-of-buffer ()
"Set mark at the beginning of the buffer."
(interactive)
(push-mark (point-min) nil t ))
(defun mark-end-of-buffer ()
"Set mark at the end of the buffer."
(interactive)
(push-mark (point-max) nil t))
- now the Xemacs version is more sophisticated (takes into account
the size of buffer. But may be this ancient code, when (X)emacs
could deal well with large buffers. I will ask on xemacs beta.
smime.p7s
Description: S/MIME cryptographic signature