public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "David S. Miller" <davem@redhat.com>
To: phillips@arcor.de
Cc: wli@holomorphy.com, rml@tech9.net, rusty@rustcorp.com.au,
	torvalds@transmeta.com, linux-kernel@vger.kernel.org,
	akpm@zip.com.au
Subject: Re: [TRIVIAL PATCH] Remove list_t infection.
Date: Mon, 02 Sep 2002 03:11:23 -0700 (PDT)	[thread overview]
Message-ID: <20020902.031123.04737167.davem@redhat.com> (raw)
In-Reply-To: <E17loGE-0004gS-00@starship>

   From: Daniel Phillips <phillips@arcor.de>
   Date: Mon, 2 Sep 2002 12:16:45 +0200
   
   Admit it, you never wrote a line of lisp ;-)
   
Oh contraire:

;;  The most important function in this file. Use it wisely.
(defun grrr (object)
  "Growl at OBJECT"
  (interactive "sWhat are you mad at: ")
  (if (equal object "")
      (message "You growl at %s" (buffer-name))
    (message "You growl at %s" object)))

(defun xyzzy () (interactive) (message "nothing happens"))

;;  Defun needed for rmail growling hack below.
;;
(defun growl-at-from ()
  "Search for from header in mail and growl at that person"
  (save-excursion
    (save-excursion
      (goto-char 0)
      (let ((case-fold-search t))
	(setq from-location (search-forward "From:" nil))
	(setq from-location (+ from-location 1))
	(end-of-line)
	(setq end-of-from-string (point))
	(grrr (buffer-substring from-location end-of-from-string))))))

(add-hook 'rmail-show-message-hook 'growl-at-from)

;;  Magic defun to grrr at people who send you mail.
(defun rmail-maybe-set-message-counters ()
  "Same as normal defun in rmail.el except here
we growl at whoever the mail is from.  Pretty crufty eh?"
  (if (not (and rmail-deleted-vector
		rmail-message-vector
		rmail-current-message
		rmail-total-messages))
      (rmail-set-message-counters))
  (growl-at-from))

  reply	other threads:[~2002-09-02 10:13 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-02  5:23 [TRIVIAL PATCH] Remove list_t infection Rusty Russell
2002-09-02  5:51 ` Robert Love
2002-09-02  6:02   ` William Lee Irwin III
2002-09-02  6:20     ` David S. Miller
2002-09-02 10:11       ` Daniel Phillips
2002-09-02 10:05         ` David S. Miller
2002-09-02 10:16           ` Daniel Phillips
2002-09-02 10:11             ` David S. Miller [this message]
2002-09-02 10:25               ` Daniel Phillips
2002-09-02 10:21                 ` David S. Miller
2002-09-02 10:24           ` William Lee Irwin III
2002-09-03 22:13           ` Jamie Lokier
2002-09-03 23:14             ` Linus Torvalds
2002-09-04  0:41               ` Rusty Russell
2002-09-04  1:52                 ` Daniel Phillips
2002-09-04  2:26                   ` Linus Torvalds
2002-09-04  2:44                     ` Rusty Russell
2002-09-04 14:36                       ` J.A. Magallon
2002-09-04  6:11                   ` Thunder from the hill
2002-09-02  6:23     ` Neil Brown
2002-09-01 20:45       ` Nick Piggin
2002-09-02  6:27       ` William Lee Irwin III
2002-09-02 10:07       ` Daniel Phillips
2002-09-02 10:05     ` Daniel Phillips
2002-09-02  6:17   ` Rusty Russell
2002-09-06  9:28 ` Dan Aloni
2002-09-06 14:35   ` Robert Love
2002-09-09  5:57   ` Rusty Russell

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=20020902.031123.04737167.davem@redhat.com \
    --to=davem@redhat.com \
    --cc=akpm@zip.com.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=phillips@arcor.de \
    --cc=rml@tech9.net \
    --cc=rusty@rustcorp.com.au \
    --cc=torvalds@transmeta.com \
    --cc=wli@holomorphy.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox