From: Uwe Brauer <oub@mat.ucm.es>
To: emacs-devel@gnu.org
Subject: Re: Xemacs mark-end-of-buffer, (from simple.el)
Date: Mon, 03 Feb 2014 23:29:00 +0100 [thread overview]
Message-ID: <87lhxr4yqb.fsf@mat.ucm.es> (raw)
In-Reply-To: 20140203131805.GA6839@brouette
[-- Attachment #1: Type: text/plain, Size: 1168 bytes --]
>> "Damien" == Damien Wyart <damien.wyart@gmail.com> writes:
> * Uwe Brauer <oub@mat.ucm.es> [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.
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5556 bytes --]
next prev parent reply other threads:[~2014-02-03 22:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-03 12:07 Xemacs mark-end-of-buffer, (from simple.el) Uwe Brauer
2014-02-03 13:18 ` Damien Wyart
2014-02-03 22:29 ` Uwe Brauer [this message]
2014-02-03 13:36 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lhxr4yqb.fsf@mat.ucm.es \
--to=oub@mat.ucm.es \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.