From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/60939 Path: news.gmane.org!not-for-mail From: Uwe Brauer Newsgroups: gmane.emacs.gnus.general Subject: feature prop: better navigation in the mail fields and ispell Date: Mon, 12 Sep 2005 16:57:10 +0200 Message-ID: <87zmqiwczd.fsf@mat.ucm.es> Reply-To: Uwe Brauer NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1126538404 16970 80.91.229.2 (12 Sep 2005 15:20:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 12 Sep 2005 15:20:04 +0000 (UTC) Original-X-From: ding-owner+m9471@lists.math.uh.edu Mon Sep 12 17:19:55 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EEq2g-0003Bc-PP for ding-account@gmane.org; Mon, 12 Sep 2005 17:16:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1EEq2H-0003vP-00; Mon, 12 Sep 2005 10:15:57 -0500 Original-Received: from nas01.math.uh.edu ([129.7.128.39]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1EEpqg-0003vK-00 for ding@lists.math.uh.edu; Mon, 12 Sep 2005 10:03:58 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas01.math.uh.edu with esmtp (Exim 4.52) id 1EEpqb-0008GX-AI for ding@lists.math.uh.edu; Mon, 12 Sep 2005 10:03:58 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1EEpqX-0006ur-00 for ; Mon, 12 Sep 2005 17:03:49 +0200 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1EEpod-0003dF-Gy for ding@gnus.org; Mon, 12 Sep 2005 17:01:51 +0200 Original-Received: from maportatil10.quim.ucm.es ([147.96.7.218]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 12 Sep 2005 17:01:51 +0200 Original-Received: from oub by maportatil10.quim.ucm.es with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 12 Sep 2005 17:01:51 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Lines: 51 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: maportatil10.quim.ucm.es X-Hashcash: 1:20:050912:gmane.emacs.gnus.general::Ym46KTtaYd576BDs:00000000000000000000000000000000000002Krw User-Agent: Gnus/5.110003 (No Gnus v0.3) XEmacs/21.4.17 (linux) Cancel-Lock: sha1:WYccQcYE8+I08AUhk3Bso1hUKj0= X-Spam-Score: -2.6 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:60939 Archived-At: Hello May this message should to the cvs list. However since the code I propose is rather primitive I'd hesitate to send it to that list. There are two things I miss from my vm times: - use the tab to navigate in the from and CC and subject field - select a relevant ispell dict based on the recipients address. May be this all already implemented but I couldn't find it. The navigation stuff is based on vm-pcrisis, so may be the author should be contacted if the code would be used (but may some similar functionality is already part of gnus). Here is what I use and maybe somebody could improve the code. ;; code for navigation which is based on vm-pcrisis (require 'vm-pcrisis) (defun oub-gnus-mail-text () (interactive) (expand-abbrev) (tool-check-from-and-change-ispell-dic) ;; ispell (sigadapt-try-signature) ;a package for adding signatures ;depending on the recipients address1 (turn-on-auto-capitalize-mode) ; for convinience (vmpc-tab-header-or-forward-sexp)) (defun tool-check-from-and-change-ispell-dic () "Detect the ispell-dic by searching the To: field" (interactive) (let (end) (save-excursion (mail-to) (setq end (save-excursion (end-of-line) (point))) (beginning-of-line) (if (re-search-forward "^To: +\\([^ ].*\\)\\.\\bes\\b" end t) (progn (my-set-ispell-dict-castellano) (message "Next Ispell command will use castellano8 dictionary")))))) Of course the function is longer since I have entries for english and german. Any comments or opinions? Uwe Brauer