From: Lars Ingebrigtsen <larsi@gnus.org>
To: Drew Adams <drew.adams@oracle.com>
Cc: 21195@debbugs.gnu.org
Subject: bug#21195: 25.0.50; Let MARKER arg to `set-marker' be a number
Date: Sat, 30 Apr 2016 23:42:53 +0200 [thread overview]
Message-ID: <87vb2y93j6.fsf@gnus.org> (raw)
In-Reply-To: <a0165788-4df3-4878-8988-c6791167e3cd@default> (Drew Adams's message of "Wed, 5 Aug 2015 10:40:21 -0700 (PDT)")
Drew Adams <drew.adams@oracle.com> writes:
> Minor enhancement request. Let `set-marker' (aka `move-marker') accept
> a buffer position that is just a number as its first arg. IOW, give
> `set-marker' this behavior:
>
> (defun new-set-marker (num-or-marker position &optional buffer)
> "..."
> (unless (markerp num-or-marker)
> (setq num-or-marker (with-current-buffer buffer
> (copy-marker num-or-marker))))
> (set-marker num-or-marker position buffer))
Hm... Well, I don't really see the point. `set-marker' is so
conceptually clean. And saying `(set-marker (make-marker) ...)' is so
easy. Closing.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2016-04-30 21:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-05 17:40 bug#21195: 25.0.50; Let MARKER arg to `set-marker' be a number Drew Adams
2016-04-30 21:42 ` Lars Ingebrigtsen [this message]
2016-05-01 1:05 ` Drew Adams
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=87vb2y93j6.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=21195@debbugs.gnu.org \
--cc=drew.adams@oracle.com \
/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.