Gnus development mailing list
 help / color / mirror / Atom feed
From: Kai Grossjohann <grossjoh@charly.informatik.uni-dortmund.de>
Subject: editing the gcc header
Date: 02 May 1996 20:48:53 +0200	[thread overview]
Message-ID: <vafspdiq5be.fsf@ls6.informatik.uni-dortmund.de> (raw)


Hi there,

how do you like the following li'l piece of ELisp?  I'm rather sure
this is horrible code, but maybe it's not too difficult to do it
right?

Methinks this could be useful together with adding a Gcc header by
default.

regards,
kai
-- 
Gleep!

;;;;;;;;;;;;;;;;;;;;;;;;;;; -*- Mode: Emacs-Lisp -*- ;;;;;;;;;;;;;;;;;;;;;;;;;;
;; message-x.el -- 
;; ITIID           : $ITI$ $Header $__Header$
;; Author          : Kai Grossjohann
;; Created On      : Thu May  2 20:24:15 1996
;; Last Modified By: Kai Grossjohann
;; Last Modified On: Thu May  2 20:46:35 1996
;; Update Count    : 4
;; Status          : Unknown, Use with caution!
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

(require 'message)

(defun message-edit-gcc ()
  (interactive)
  (let (val)
    (save-excursion
      (save-restriction
        (nnheader-narrow-to-headers)
        (beginning-of-buffer)
        (re-search-forward "^gcc: ")
        (setq val (completing-read
                   "Gcc: " gnus-newsrc-alist
                   (function (lambda (x)
                               (string-match "^nn[a-z]+:" (car x))))
                   t (nnheader-header-value) gnus-group-history))
        (kill-line nil)
        (insert val)))))

(define-key message-mode-map "\C-c\C-e" 'message-edit-gcc)

(provide 'message-x)


             reply	other threads:[~1996-05-02 18:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-05-02 18:48 Kai Grossjohann [this message]
1996-05-02 20:07 ` Jack Vinson
1996-05-03  7:54   ` Kai Grossjohann

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=vafspdiq5be.fsf@ls6.informatik.uni-dortmund.de \
    --to=grossjoh@charly.informatik.uni-dortmund.de \
    /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.
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 NNTP newsgroup(s).