all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Robert J. Chassell" <bob@rattlesnake.com>
Subject: Re: deleting rcs keywords from emacs sources
Date: Fri, 26 Mar 2004 19:05:14 +0000 (UTC)	[thread overview]
Message-ID: <m1B6wdm-000UMrC@rattlesnake.com> (raw)
In-Reply-To: <E1B6uSb-0004lu-Eb@fencepost.gnu.org> (message from Richard Stallman on Fri, 26 Mar 2004 11:45:33 -0500)

   If you put a date manually into the files when you send an entire
   file to someone, it would achieve the same purpose, right?
   You'd be doing it manually instead of automatically.

   How much extra work would that impose on you?
   (It depends on how often you actually do this.)

Here is a function to insert the date at point.  I put it in my .emacs
file and use it all the time.

    ;;; Insert current date and, optionally, UTC time into current buffer
    (defun date (&optional full)
      "Insert current date; with optional arg, insert UTC time"
      (interactive "P")
      (if full
          ;; The third, last, optional, argument to format-time-string means
          ;; describe time as Universal Time; this may be labled GMT
          ;; rather than UTC.  2001 Aug 16: Gerd says
          ;;     This is a feature of the OS.  Strftime.c only adds a
          ;;     zone name when gmtime(3) doesn't already return one.
          ;; (format-time-string "%a, %Y %h %e  %H:%M %Z" nil t)
          (insert (format-time-string "%a, %Y %h %e  %H:%M %Z"))
        (insert (format-time-string "%Y %h %e"))))

For example, 

    M-x date  ==> 2004 Mar 26

C-u M-x date  ==> Fri, 2004 Mar 26  19:00 UTC

(I once formatted time strings as day - month - year, but then found
that I often need to see the year, so for this function and the way I
use it, the better format is year - month - day.)

-- 
    Robert J. Chassell                         Rattlesnake Enterprises
    http://www.rattlesnake.com                  GnuPG Key ID: 004B4AC8
    http://www.teak.cc                             bob@rattlesnake.com

  parent reply	other threads:[~2004-03-26 19:05 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-23 18:46 deleting rcs keywords from emacs sources spiegel
2004-03-23 21:47 ` Miles Bader
2004-03-25  7:45   ` Andre Spiegel
2004-03-26 16:45     ` Richard Stallman
2004-03-26 18:10       ` Stefan Monnier
2004-03-26 18:46       ` David Kastrup
2004-03-28  1:36         ` Richard Stallman
2004-03-26 19:05       ` Robert J. Chassell [this message]
2004-03-26 19:37       ` Andre Spiegel
2004-03-28  1:36         ` Richard Stallman
2004-03-28 11:10           ` Andre Spiegel
2004-03-29 20:56             ` Richard Stallman
2004-03-30 14:22               ` Andre Spiegel
2004-03-31 15:05                 ` Richard Stallman
  -- strict thread matches above, loose matches on Subject: below --
2004-03-23  6:46 Miles Bader
2004-03-23  7:47 ` Eli Zaretskii
2004-03-23 10:56   ` Kim F. Storm
2004-03-23  9:51 ` spiegel
2004-03-23 10:16   ` Miles Bader
2004-03-23 11:41   ` Juanma Barranquero
2004-03-23 13:13     ` Miles Bader
2004-03-23 14:01       ` Juanma Barranquero
2004-03-23 14:35         ` Miles Bader
2004-03-23 14:58           ` Juanma Barranquero
2004-03-23 15:14             ` Stefan Monnier
2004-03-23 15:36               ` Juanma Barranquero
2004-03-24  5:34             ` Richard Stallman
2004-03-23 15:04         ` Stefan Monnier
2004-03-23 18:17       ` Nick Roberts
2004-03-23 18:07     ` Nick Roberts
2004-03-24  5:34 ` Richard Stallman
2004-03-25  8:17   ` Miles Bader

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=m1B6wdm-000UMrC@rattlesnake.com \
    --to=bob@rattlesnake.com \
    /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.