Re: Slime and Emacs Lisp

2006-04-07 Thread Tim X
Sébastien Vauban <[EMAIL PROTECTED]> writes:

> Hello,
>
> I've just installed Slime and CLisp. Very good choice, I think.
>
> But my ultimate goal would be to try enjoying all the features
> of Slime for debugging Emacs Lisp code I want to maintain...
> but, when compiling my Emacs Lisp code, it reports many errors,
> like:
>
> o   undefined function NIL
> o   function INTERACTIVE is not defined
> o   function USE-LOCAL-MAP is not defined
> o   MAJOR-MODE is neither declared nor bound
> o   function RUN-HOOKS is not defined
> o   ...
>
> And, *not* being an expert at all in both languages, I don't
> know if their differences are so big it's purely impossible to
> do what I want, or if it's still possible to debug Emacs Lisp
> code with Slime/CLisp?
>

Please note this is not the right group for this question. Try
gnu.emacs.help. 

Slime is designed for working with common Lisp, which is a different
beastie to Emacs Lisp. Emacs has a pretty good in-built debugging
capabilities and a much closer integration than you would get with
slime even if you could get slime to work with it. 

Slime uses a CL package called SWANK, which is used to handle the
interactions between emacs and common lisp. You don't need this for
emacs lisp as its part of the editor. You can get a similar function
to the slime repl with ielm e.g.

M-x ielm

HTH

Tim


-- 
tcross (at) rapttech dot com dot au
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Problems with `nnweb' mode

2006-04-07 Thread Rodolfo Medina
Rodolfo wrote:

> In Gnus Manual there is:
>
> ---
> The `nnweb' back end allows an easy interface to the mighty search
> engine.  You create an `nnweb' group, enter a search pattern, and then
> enter the group and read the articles like you would any normal group.
> The `G w' command in the group buffer (*note Foreign Groups::) will do
> this in an easy-to-use fashion.
>
> [...]
>
>You must have the `url' and `W3' package or those alternatives (try
> `customize-group' on the `mm-url' variable group) installed to be able
> to use `nnweb'.
> ---
>
> I installed emacs-w3m and also the `url' package,
> but the message gnus finds with the above procedure (`G w' etcetera)
> are all completely blank.




Tassilo wrote:

> Try:
>
> `G w RET <[EMAIL PROTECTED]> RET'
>
> This works for me and a new summary buffer should appear containing some
> messages by me and the original message with above's MID.
>
> But first you have to make sure, that google is in your
> `gnus-refer-article-method'.
>
> ,[ C-h v gnus-refer-article-method RET ]
> | gnus-refer-article-method is a variable defined in `gnus.el'.
> | Its value is 
> | (current
> |  (nnweb "google"
> | (nnweb-type google)))
> `
>
> If that's not the case, you need to set it in your ~/.gnus.el.
>
> (setq gnus-refer-article-method
>   '(current
> (nnweb "google"
>(nnweb-type google




I did as you suggest: in my ~/.gnus.el I put the above stuff, 
closed emacs, opened up emacs, started Gnus and did: 
`C-h v gnus-refer-article-method RET',
and the following message appeared:

gnus-refer-article-method is a variable defined in `gnus.el'.
Its value is 
(current
 (nnweb "google"
(nnweb-type google)))

. Then I did:
`G w RET <[EMAIL PROTECTED]> RET';
but, as I reported in my very first message of the present long thread,
all the messages displayed by Gnus are *completely blank*.

I strongly please you all Gnus experts, if a solution to the problem 
has ever been found, to kindly provide it in the present thread also 
for gnus-newbie people like me.

Thanks,
Rodolfo
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Problems with `nnweb' mode

2006-04-07 Thread Tassilo Horn
Rodolfo Medina <[EMAIL PROTECTED]> writes:

Hi Rodolfo,

> gnus-refer-article-method is a variable defined in `gnus.el'.
> Its value is 
> (current
>  (nnweb "google"
>   (nnweb-type google)))
>
> . Then I did:
> `G w RET <[EMAIL PROTECTED]> RET';
> but, as I reported in my very first message of the present long thread,
> all the messages displayed by Gnus are *completely blank*.

Excatly this works for me. Really odd...

Is your NoGnus copy up-to-date?

Bye,
Tassilo
-- 
A morning without coffee is like something without something else.



___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Multiple e-mail, automatic EOL

2006-04-07 Thread Julien Ghaye
Hi all,

I'm a beginner using gnus (and Emacs too) and I got several
problems setting it up. 
I use gnus as a news reader and as an e-mail client. My 
problem is that i dont want to sent my real e-mail when
writing a new article for a newsgroup, so I wrote in my
config file :
(setq user-mail-address "[EMAIL PROTECTED]")
This works fine, even too fine. Indeed, it has the same 
effect when I send an e-mail, where I expect to send my 
real e-mail.
So, how can I deal with it ? How/Where can I add a list
of my e-mail adreses and choose one of them when sending
a mail ? 

I also have another question. How can I set gnus to make
it go to the next line when I reached a number of caracters
on the previous line ?

Regards,

Julien

NB : Hope this wasn't too difficult to read, english is not
my mother language and I didn't used to send mail in
english yet ;-)   
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Problems with `nnweb' mode

2006-04-07 Thread Rodolfo Medina
Rodolfo wrote:

>> gnus-refer-article-method is a variable defined in `gnus.el'.
>> Its value is 
>> (current
>>  (nnweb "google"
>>  (nnweb-type google)))
>>
>> . Then I did:
>> `G w RET <[EMAIL PROTECTED]> RET';
>> but, as I reported in my very first message of the present long thread,
>> all the messages displayed by Gnus are *completely blank*.
>


Tassilo wrote:

> Excatly this works for me. Really odd...
>
> Is your NoGnus copy up-to-date?



Maybe not: the command `M-x gnus-version' produces the following
response:

No Gnus v0.4

. Shall I update it?

Bye,
Rodolfo
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Problems with `nnweb' mode

2006-04-07 Thread Tassilo Horn
Rodolfo Medina <[EMAIL PROTECTED]> writes:

Hi Rodolfo,

> No Gnus v0.4

I've seen that, look at your User-Agent header. ;-)

,
| User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)
`

NoGnus is the current development Gnus from CVS HEAD, so I thought you
checked it out from CVS, did you?

If not and you use a package you distribution provides, then you have to
ask the maintainer if he wants to update it unless you use gentoo as I
do. If that's the case the update is as simple as:

,
| # emerge gnus-cvs
`

After that, restart Emacs/Gnus and try again.

Bye,
Tassilo
-- 
A morning without coffee is like something without something else.



___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Problems with `nnweb' mode

2006-04-07 Thread Rodolfo Medina
Rodolfo wrote:

> I did as you suggest: in my ~/.gnus.el I put the above stuff, 
> closed emacs, opened up emacs, started Gnus and did: 
> `C-h v gnus-refer-article-method RET',
> and the following message appeared:
>
> gnus-refer-article-method is a variable defined in `gnus.el'.
> Its value is 
> (current
>  (nnweb "google"
>   (nnweb-type google)))
>
> . Then I did:
> `G w RET <[EMAIL PROTECTED]> RET';
> but, as I reported in my very first message of the present long thread,
> all the messages displayed by Gnus are *completely blank*.




Tassilo Horn <[EMAIL PROTECTED]> writes:

>> `G w RET <[EMAIL PROTECTED]> RET';
>> but, as I reported in my very first message of the present long thread,
>> all the messages displayed by Gnus are *completely blank*.
>
> Excatly this works for me. Really odd...
>
> Is your NoGnus copy up-to-date?



I tried to update my NoGnus copy with: `$ cvs update'
from my `~/gnus' directory but got the output:

cvs update: warning: failed to open /home/rodolfo/.cvspass for reading: No such 
file or directory
cvs update: authorization failed: server cvs.gnus.org rejected access to 
/usr/local/cvsroot for user gnus
cvs update: used empty password; try "cvs login" with a real password

. Then I removed Gnus and freshly downloaded it from cvs repositories
and installed it again;
but now it's even worse: when I do
`G w RET <[EMAIL PROTECTED]> RET'
in the group buffer, no message is displayed, not even blank,
but instead in the echo area I get the output:

url-http: Process groups.google.com not running

. I'm really stuck!
Any help?
Rodolfo
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Problems with `nnweb' mode

2006-04-07 Thread Tassilo Horn
Rodolfo Medina <[EMAIL PROTECTED]> writes:

Hi Rodolfo,

> but now it's even worse: when I do
> `G w RET <[EMAIL PROTECTED]> RET'
> in the group buffer, no message is displayed, not even blank,
> but instead in the echo area I get the output:

Echo area? Do you mean the mini buffer or *Messages*?

> url-http: Process groups.google.com not running

,[ C-h f url-http RET ]
| url-http is an autoloaded Lisp function in `url-http'.
| (url-http URL CALLBACK CBARGS)
| 
| Retrieve URL via HTTP asynchronously.
| URL must be a parsed URL.  See `url-generic-parse-url' for details.
| When retrieval is completed, the function CALLBACK is executed with
| CBARGS as the arguments.
`

`url-http' is an emacs function, so the first thing I'd try would be
updating emacs, too.

Bye,
Tassilo 
-- 
A morning without coffee is like something without something else.



___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Slime and Emacs Lisp

2006-04-07 Thread Sébastien Vauban
Hello,

>> But my ultimate goal would be to try enjoying all the features
>> of Slime for debugging Emacs Lisp code I want to maintain...
>>
>> And, *not* being an expert at all in both languages, I don't
>> know if their differences are so big it's purely impossible to
>> do what I want, or if it's still possible to debug Emacs Lisp
>> code with Slime/CLisp?
>
> Please note this is not the right group for this question. Try
> gnu.emacs.help. 

Sorry, you're right. Stupid mistake.


> Slime is designed for working with common Lisp, which is a different
> beastie to Emacs Lisp. Emacs has a pretty good in-built debugging
> capabilities and a much closer integration than you would get with
> slime even if you could get slime to work with it. 

Can you be a bit more specific about which environment you use
to do so?

For example, how do you get the display of a function's
arguments list in the minibuffer?  Very very useful.

How do you localize source code?  Ctags, Etags, ...?

Thanks for the help,
  Seba

-- 
Sébastien Vauban
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Problems with `nnweb' mode

2006-04-07 Thread Johan Bockgård
Tassilo Horn <[EMAIL PROTECTED]> writes:

> Echo area? Do you mean the mini buffer or *Messages*?

"Echo area" is correct.

(info "(emacs)Glossary")

  Echo Area
 The echo area is the bottom line of the screen, used for echoing
 the arguments to commands, for asking questions, and showing
 brief messages (including error messages). The messages are
 stored in the buffer `*Messages*' so you can review them later.

  Minibuffer
 The minibuffer is the window that appears when necessary inside
 the echo area (q.v.), used for reading arguments to commands.

-- 
Johan Bockgård
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Problems with `nnweb' mode

2006-04-07 Thread Tassilo Horn
[EMAIL PROTECTED] (Johan Bockgård) writes:

Hi Johan,

> "Echo area" is correct.
>
> (info "(emacs)Glossary")
>
>   Echo Area
>  The echo area is the bottom line of the screen, used for echoing
>  the arguments to commands, for asking questions, and showing
>  brief messages (including error messages). The messages are
>  stored in the buffer `*Messages*' so you can review them later.
>
>   Minibuffer
>  The minibuffer is the window that appears when necessary inside
>  the echo area (q.v.), used for reading arguments to commands.

Oh, thanks, you life and learn. ;-)

Regards,
Tassilo
-- 
A morning without coffee is like something without something else.



___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Slime and Emacs Lisp

2006-04-07 Thread Johan Bockgård
Sébastien Vauban <[EMAIL PROTECTED]> writes:

> For example, how do you get the display of a function's arguments
> list in the minibuffer? Very very useful.

Eldoc mode.

(add-hook 'emacs-lisp-mode-hook 'turn-on-eldoc-mode)
(add-hook 'lisp-interaction-mode-hook 'turn-on-eldoc-mode)
(add-hook 'ielm-mode-hook 'turn-on-eldoc-mode)

> How do you localize source code?  Ctags, Etags, ...?

Through `find-function' etc. There are also links to the source from
the *Help* buffers.

(find-function-setup-keys) will define a bunch of keys for you:

C-x   F find-function
C-x 4 F find-function-other-window
C-x 5 F find-function-other-frame
C-x   K find-function-on-key
C-x   V find-variable
C-x 4 V find-variable-other-window
C-x 5 V find-variable-other-frame

-- 
Johan Bockgård
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Slime and Emacs Lisp

2006-04-07 Thread Tim X
Sébastien Vauban <[EMAIL PROTECTED]> writes:

> Hello,
>
>>> But my ultimate goal would be to try enjoying all the features
>>> of Slime for debugging Emacs Lisp code I want to maintain...
>>>
>>> And, *not* being an expert at all in both languages, I don't
>>> know if their differences are so big it's purely impossible to
>>> do what I want, or if it's still possible to debug Emacs Lisp
>>> code with Slime/CLisp?
>>
>> Please note this is not the right group for this question. Try
>> gnu.emacs.help. 
>
> Sorry, you're right. Stupid mistake.
>
>
>> Slime is designed for working with common Lisp, which is a different
>> beastie to Emacs Lisp. Emacs has a pretty good in-built debugging
>> capabilities and a much closer integration than you would get with
>> slime even if you could get slime to work with it. 
>
> Can you be a bit more specific about which environment you use
> to do so?
>
> For example, how do you get the display of a function's
> arguments list in the minibuffer?  Very very useful.
>

Three refernces which you cannot do without if you are planning to
develop emacs lisp packages -

1. The emacs manual. Check out the section on tags, programming modes,
   imenu, documentation lookup, symbol completion etc.

2. An introduction to Emacs Lisp manual. Comes as a package under
   Debian and possibly RedHat and should be available at the GNU site.
   Gives a general overview of emacs lisp and pointers to using the
   debugger and other built-in features. 

3. The Emacs Lisp manual. Covers the nitty gritty bits of emacs lisp
   and using the debugger, profiling etc. 

4. http://www.emacswiki.org - contains lots of useful information on
   customizations and add-on packages you can use to setup your lisp
   development environment. 

5. O'Reilly has a book called something like Extending Emacs or Emacs
   Lisp Programming - I can't quite remember. It has some handy tips. 

To what extent you can get things like function argument lists in the
min-buffer, I don't know. Most of my emacs lisp programming has been
fairly simple and I've not used/missed that feature. However, as slime
is just emacs lisp, then either it can be implemented (there is your
first project!) or it already exists either as an add-on or
customization change. 

Tim


-- 
tcross (at) rapttech dot com dot au
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Multiple e-mail, automatic EOL

2006-04-07 Thread Tim X
Julien Ghaye <[EMAIL PROTECTED]> writes:

> Hi all,
>
> I'm a beginner using gnus (and Emacs too) and I got several
> problems setting it up. 
> I use gnus as a news reader and as an e-mail client. My 
> problem is that i dont want to sent my real e-mail when
> writing a new article for a newsgroup, so I wrote in my
> config file :
> (setq user-mail-address "[EMAIL PROTECTED]")
> This works fine, even too fine. Indeed, it has the same 
> effect when I send an e-mail, where I expect to send my 
> real e-mail.
> So, how can I deal with it ? How/Where can I add a list
> of my e-mail adreses and choose one of them when sending
> a mail ? 

Look at the section on 'posting styles' in the manual. This is covered there.


> I also have another question. How can I set gnus to make
> it go to the next line when I reached a number of caracters
> on the previous line ?
>

Look in the emacs manual under the heading "Filling", which is emacs
speak for line wrapping. If you want to use soft line breaks, check
out the longlines.el package - you can probably find it at
http://www.emacswiki.org. 

Tim

-- 
tcross (at) rapttech dot com dot au
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english