GNU bug report logs - #21195
25.0.50; Let MARKER arg to `set-marker' be a number

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Wed, 5 Aug 2015 17:41:02 UTC

Severity: wishlist

Tags: wontfix

Found in version 25.0.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 21195 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 21195 <at> debbugs.gnu.org
Subject: Re: bug#21195: 25.0.50; Let MARKER arg to `set-marker' be a number
Date: Sat, 30 Apr 2016 23:42:53 +0200
Drew Adams <drew.adams <at> 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




This bug report was last modified 9 years and 26 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.