unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: asjo@koldfront.dk (Adam Sjøgren)
To: Glenn Morris <rgm@gnu.org>
Cc: 20112@debbugs.gnu.org
Subject: bug#20112: 24.4; (emacs-uptime): insert at point when called with prefix
Date: Sun, 15 Mar 2015 20:41:38 +0100	[thread overview]
Message-ID: <874mpmhwul.fsf@topper.koldfront.dk> (raw)
In-Reply-To: <e5fv96m5vu.fsf@fencepost.gnu.org> (Glenn Morris's message of "Sun, 15 Mar 2015 15:12:53 -0400")

Glenn writes:

> Adam Sjøgren 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.





  reply	other threads:[~2015-03-15 19:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-15 18:48 bug#20112: 24.4; (emacs-uptime): insert at point when called with prefix Adam Sjøgren
2015-03-15 19:12 ` Glenn Morris
2015-03-15 19:41   ` Adam Sjøgren [this message]
2020-01-15  5:28   ` Stefan Kangas
     [not found]     ` <87blr5fco5.fsf@tullinup.koldfront.dk>
2020-01-15 21:09       ` Stefan Kangas

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874mpmhwul.fsf@topper.koldfront.dk \
    --to=asjo@koldfront.dk \
    --cc=20112@debbugs.gnu.org \
    --cc=rgm@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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).