From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: asjo@koldfront.dk (Adam =?UTF-8?Q?Sj=C3=B8gren?=) Newsgroups: gmane.emacs.bugs Subject: bug#20112: 24.4; (emacs-uptime): insert at point when called with prefix Date: Sun, 15 Mar 2015 20:41:38 +0100 Organization: koldfront - analysis & revolution, Copenhagen, Denmark Message-ID: <874mpmhwul.fsf@topper.koldfront.dk> References: <87h9tmhzbr.fsf@topper.koldfront.dk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1426448543 2743 80.91.229.3 (15 Mar 2015 19:42:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 15 Mar 2015 19:42:23 +0000 (UTC) Cc: 20112@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 15 20:42:12 2015 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 1YXEQM-0008O4-U0 for geb-bug-gnu-emacs@m.gmane.org; Sun, 15 Mar 2015 20:42:11 +0100 Original-Received: from localhost ([::1]:44557 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXEQM-0000cA-8Z for geb-bug-gnu-emacs@m.gmane.org; Sun, 15 Mar 2015 15:42:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59924) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXEQI-0000c5-HY for bug-gnu-emacs@gnu.org; Sun, 15 Mar 2015 15:42:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YXEQF-0007GU-Bv for bug-gnu-emacs@gnu.org; Sun, 15 Mar 2015 15:42:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48839) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXEQF-0007GO-86 for bug-gnu-emacs@gnu.org; Sun, 15 Mar 2015 15:42:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YXEQE-0000WR-JY for bug-gnu-emacs@gnu.org; Sun, 15 Mar 2015 15:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: asjo@koldfront.dk (Adam =?UTF-8?Q?Sj=C3=B8gren?=) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 15 Mar 2015 19:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20112 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20112-submit@debbugs.gnu.org id=B20112.14264485041977 (code B ref 20112); Sun, 15 Mar 2015 19:42:02 +0000 Original-Received: (at 20112) by debbugs.gnu.org; 15 Mar 2015 19:41:44 +0000 Original-Received: from localhost ([127.0.0.1]:47407 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YXEPw-0000Vn-29 for submit@debbugs.gnu.org; Sun, 15 Mar 2015 15:41:44 -0400 Original-Received: from 2505ds5-by.0.fullrate.dk ([89.150.142.116]:37282 helo=topper.koldfront.dk) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YXEPr-0000VX-Mg for 20112@debbugs.gnu.org; Sun, 15 Mar 2015 15:41:40 -0400 Original-Received: by topper.koldfront.dk (Postfix, from userid 1000) id 47BC550FA6DE; Sun, 15 Mar 2015 20:41:38 +0100 (CET) OpenPGP: id=49D0746121BDE416; url=http://asjo.koldfront.dk/gpg.asc X-Now-Playing: Kort Intro, Glad I =?UTF-8?Q?=C3=85bningstiden?= (Dan =?UTF-8?Q?Tur=C3=A9ll?= & Halfdan E) X-Hashcash: 1:21:150315:20112@debbugs.gnu.org::aoEfCJxOL267NIwg:00000000000000000000000000000000000000001Pcu X-Hashcash: 1:21:150315:rgm@gnu.org::AoyOmOJHtQcleMVY:0000004HlN X-Face: )qY&CseJ?.:=8F#^~GcSA?F=9eu'{KAFfL1C3/A&:nE?PW\i65"ba0NS)97, Q(^@xk}n4Ou rPuR#V8I(J_@~H($[ym:`K_+]*kjvW>xH5jbgLBVFGXY:(#4P>zVBklLbdL&XxL\M)%T}3S/IS9lMJ ^St'=VZBR (Glenn Morris's message of "Sun, 15 Mar 2015 15:12:53 -0400") User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:100503 Archived-At: Glenn writes: > Adam Sj=C3=B8gren wrote: >> Here is a patch making emacs-uptime insert at point when called with >> prefix, similar to what emacs-version does: > > Thanks. As I've said before, personally I do not see the point of either. > Should every function that returns a string provide the option to insert > it? If not, what's special about this one? emacs-version and gnus-version are strings you sometimes want to communicate to people, via email or news article ("I'm using C-u M-x emacs-version"). The first thing I tried when I learned that emacs-uptime existed was to use it in the same way: "Hey, look at me, my Emacs has an uptime of C-u M-x emacs-uptime!" Every function that reports a string of information you sometimes want to communicate, and does nothing but that, I don't see why it should not support inserting the string. What is the point of not providing that option? If you have a good idea for a general solution that avoids these functions having a HERE argument, I would be interested to hear it.