From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#21195: 25.0.50; Let MARKER arg to `set-marker' be a number Date: Sat, 30 Apr 2016 23:42:53 +0200 Message-ID: <87vb2y93j6.fsf@gnus.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1462052620 14888 80.91.229.3 (30 Apr 2016 21:43:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 30 Apr 2016 21:43:40 +0000 (UTC) Cc: 21195@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 30 23:43:29 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1awcfg-0001Ck-56 for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Apr 2016 23:43:28 +0200 Original-Received: from localhost ([::1]:59829 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awcfd-00015e-ET for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Apr 2016 17:43:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55479) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awcfV-0000w6-2o for bug-gnu-emacs@gnu.org; Sat, 30 Apr 2016 17:43:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1awcfJ-00074n-8X for bug-gnu-emacs@gnu.org; Sat, 30 Apr 2016 17:43:11 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46287) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awcfJ-00073J-5H for bug-gnu-emacs@gnu.org; Sat, 30 Apr 2016 17:43:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1awcfF-00046a-Pw for bug-gnu-emacs@gnu.org; Sat, 30 Apr 2016 17:43:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 30 Apr 2016 21:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21195 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21195-submit@debbugs.gnu.org id=B21195.146205257715762 (code B ref 21195); Sat, 30 Apr 2016 21:43:01 +0000 Original-Received: (at 21195) by debbugs.gnu.org; 30 Apr 2016 21:42:57 +0000 Original-Received: from localhost ([127.0.0.1]:58623 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1awcfB-000469-CC for submit@debbugs.gnu.org; Sat, 30 Apr 2016 17:42:57 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]:60746) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1awcfA-000462-9T for 21195@debbugs.gnu.org; Sat, 30 Apr 2016 17:42:56 -0400 Original-Received: from cm-84.215.1.64.getinternet.no ([84.215.1.64] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1awcf7-00073g-P1; Sat, 30 Apr 2016 23:42:55 +0200 In-Reply-To: (Drew Adams's message of "Wed, 5 Aug 2015 10:40:21 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:117455 Archived-At: Drew Adams 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