Gnus development mailing list
 help / color / mirror / Atom feed
From: Uwe Brauer <oub@mat.ucm.es>
Subject: feature prop: better navigation in the mail fields and ispell
Date: Mon, 12 Sep 2005 16:57:10 +0200	[thread overview]
Message-ID: <87zmqiwczd.fsf@mat.ucm.es> (raw)

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 




                 reply	other threads:[~2005-09-12 14:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=87zmqiwczd.fsf@mat.ucm.es \
    --to=oub@mat.ucm.es \
    /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).