From: Drew Adams <drew.adams@oracle.com>
To: 21195@debbugs.gnu.org
Subject: bug#21195: 25.0.50; Let MARKER arg to `set-marker' be a number
Date: Wed, 5 Aug 2015 10:40:21 -0700 (PDT) [thread overview]
Message-ID: <a0165788-4df3-4878-8988-c6791167e3cd@default> (raw)
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))
In GNU Emacs 25.0.50.1 (i686-pc-mingw32)
of 2015-07-03 on LEG570
Bzr revision: 2b848fadd51e805b2f46da64c5958ea7f009048a
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
`configure --host=i686-pc-mingw32 --enable-checking=yes,glyphs'
next reply other threads:[~2015-08-05 17:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-05 17:40 Drew Adams [this message]
2016-04-30 21:42 ` bug#21195: 25.0.50; Let MARKER arg to `set-marker' be a number Lars Ingebrigtsen
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=a0165788-4df3-4878-8988-c6791167e3cd@default \
--to=drew.adams@oracle.com \
--cc=21195@debbugs.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.