From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/29210 Path: main.gmane.org!not-for-mail From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai=?iso-8859-1?q?_Gro=DFjohann?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: Function definition wrong Date: 13 Feb 2000 02:16:25 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: References: <20000211172544.A3114@sre-4-139.urbanet.ch> <20000212082819.A683@sre-4-139.urbanet.ch> <20000212171001.A2780@sre-4-139.urbanet.ch> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035165920 1463 80.91.224.250 (21 Oct 2002 02:05:20 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 02:05:20 +0000 (UTC) Cc: ding@gnus.org Return-Path: Original-Received: from lisa.math.uh.edu (lisa.math.uh.edu [129.7.128.49]) by mailhost.sclp.com (Postfix) with ESMTP id 724A7D0520 for ; Sat, 12 Feb 2000 20:17:35 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by lisa.math.uh.edu (8.9.1/8.9.1) with ESMTP id TAB26085; Sat, 12 Feb 2000 19:17:27 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sat, 12 Feb 2000 19:16:38 -0600 (CST) Original-Received: from mailhost.sclp.com (postfix@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id TAA29790 for ; Sat, 12 Feb 2000 19:16:27 -0600 (CST) Original-Received: from waldorf.cs.uni-dortmund.de (waldorf.cs.uni-dortmund.de [129.217.4.42]) by mailhost.sclp.com (Postfix) with ESMTP id F06D3D0520 for ; Sat, 12 Feb 2000 20:16:27 -0500 (EST) Original-Received: from marcy.cs.uni-dortmund.de (marcy.cs.uni-dortmund.de [129.217.20.159]) by waldorf.cs.uni-dortmund.de with ESMTP id CAA09355; Sun, 13 Feb 2000 02:16:26 +0100 (MET) Original-Received: from lucy.cs.uni-dortmund.de (lucy [129.217.20.160]) by marcy.cs.uni-dortmund.de id CAA11269; Sun, 13 Feb 2000 02:16:25 +0100 (MET) Original-Received: (from grossjoh@localhost) by lucy.cs.uni-dortmund.de (8.9.3/8.9.3/Debian 8.9.3-6) id CAA31970; Sun, 13 Feb 2000 02:16:25 +0100 X-Authentication-Warning: lucy.cs.uni-dortmund.de: grossjoh set sender to Kai.Grossjohann@CS.Uni-Dortmund.DE using -f Original-To: Pieter Wenk In-Reply-To: Pieter Wenk's message of "Sat, 12 Feb 2000 17:10:01 +0100" Original-Lines: 42 User-Agent: Gnus/5.0804 (Gnus v5.8.4) Emacs/20.5 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:29210 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:29210 Pieter Wenk writes: > Nos how can you under gnus without hassle arrange > that messages are in accordance to the used langua- > ges. > > I.e. wrote > schrieb am > > I can't imagine, that under gnus this is linked > to some akward complicated commands. Well, the current implementation of SC really requires you to write functions. However, this is quite easy to do by just copying and pasting code from the old function. Lessee. Let's take sc-header-author-writes as an example. Here is the function definition: /----[ M-x find-function RET sc-header-author-writes RET ] | (defun sc-header-author-writes () | " writes:" | (let ((sc-mumble "") | (whofrom (sc-whofrom))) | (if whofrom | (insert sc-reference-tag-string | (sc-hdr "" (sc-mail-field "sc-author")) | " writes:\n")))) \---- Even without understanding any of it, I'm sure you can quickly see how to change the function name from sc-header-author-writes to sc-header-author-schrieb, and how to change the `writes' to `schrieb'! (One occurrence is the documentation...) That's all there is to it. Programming by copy and paste is a rather simple thing. No voodoo, no magic. You can work your way up to more complex stuff later. kai -- ~/.signature: No such file or directory