Re: Newsgroups alias

2008-01-30 Thread Uwe Brauer
> "Reiner" == Reiner Steib <[EMAIL PROTECTED]> writes:

   >> 
   >> However sometimes I want to send a mail to a newsgroup and I am not in
   >> that group so this does not work. 

   > WFM.  Add a "Newsgroups:" header (e.g. `C-c C-f C-n'), then hitting
   > TAB in the Newsgroups line expands the group (at least if Gnus knows
   > about it, e.g. if your subscribed to it):

   > "Newsgroups: gmane.emacs.bb"[TAB] -> "Newsgroups: gmane.emacs.bbdb.user"


Ok, I have bound TAB to pabbrev-expan-maybe.
On a TO: field SPACE expands bbdb alias; while  on a Newsgroups fields is
does not.

So I thought of binding shift tab to 
  (local-set-key [(iso-left-tab)] 'message-expand-group)


However that seems not to work I obtain an error 


--88---
Debugger entered--Lisp error: (wrong-type-argument commandp 
message-expand-group)
  call-interactively(message-expand-group) recursive-edit()
  byte-code("..." [buffer-read-only noninteractive debugger-buffer
  middlestart debugger-args debugger-batch-max-lines pop-to-buffer
  debugger-mode debugger-setup-buffer count-lines 2 "...\n" message
  buffer-string kill-emacs debug backtrace-debug 3 t debugger-reenable
  "" nil recursive-edit standard-output] 3) debug(error
  (wrong-type-argument commandp message-expand-group))
  call-interactively(message-expand-group)
--88---

What is the correct way to bind this.

Uwe 


pgp420ynatWOt.pgp
Description: PGP signature
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Re: Newsgroups alias

2008-01-29 Thread Uwe Brauer
> "Reiner" == Reiner Steib <[EMAIL PROTECTED]> writes:

   >> 
   >> Can that be easily done with bbdb.

   > Why not use Gnus' expansion, see `message-completion-alist' and
   > `message-expand-group'?

Well if gnus is in the summary of a certain newsgroup
gnus-summary-post-news automatically inserts the correct Newsgroups
name.

However sometimes I want to send a mail to a newsgroup and I am not in
that group so this does not work. 

As for your recommendation the first variable gives

--88---
`message-completion-alist' is a variable declared in Lisp.
  -- loaded from "message"


Value: (("^\\(Newsgroups\\|Followup-To\\|Posted-To\\|Gcc\\):"
. message-expand-group) ("^\\(Resent-\\)?\\(To\\|B?Cc\\):"
. message-expand-name)
("^\\(Reply-To\\|From\\|Mail-Followup-To\\|Mail-Copies-To\\):"
. message-expand-name)
("^\\(Disposition-Notification-To\\|Return-Receipt-To\\):"
. message-expand-name)) 
--88---


Now I use 
(add-hook 'mail-setup-hook 'bbdb-define-all-aliases) 
(add-hook 'gnus-message-setup-hook 'bbdb-define-all-aliases) ;Version:1.35
(add-hook 'message-setup-hook 'bbdb-define-all-aliases) ;Version:1.35

Which expands an alias hitting space. 

Now how am I suppose to use message-expand-group? It is not an
interactive function, put it in some hook?

Uwe 


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: Newsgroups alias

2008-01-26 Thread Reiner Steib
On Fri, Jan 25 2008, Uwe Brauer wrote:

> Sometimes I would like to post to 2 newsgroups at the same time (I
> know this is not very recommend). But then I don't remember the extact
> name of newsgroup, so I would like to insert an alias/abbrev in the
> newsgroups field which gets expanded. 
>
> Can that be easily done with bbdb.

Why not use Gnus' expansion, see `message-completion-alist' and
`message-expand-group'?

Bye, Reiner.
-- 
   ,,,
  (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/