Miles Bader | 1 Apr 03:01 2009
Picon

Re: elisp's cl package. Don't understand the notice about eval-when-compile

"Thomas F. Burdick" <tburdick <at> gmail.com> writes:
> If you just have an elisp package that you want to make publicly
> available, I see no need to avoid cl.el. It's distributed with emacs,
> so there's no reason not to use it. Just, stick to the tasteful
> parts :-)
...
> It's both. I think RMS has an irrational hatred of CL, so there are a
> lot of the useful things in cl.el that should have migrated into the
> core elisp. As it is, they're ghettoized along with the parts of that
> package that exist just as a crutch for Common Lispers.

The problem with cl.el is that it's a giant glutinous mess, that seems
to offer the vague promise to be kinda-like-common-lisp, but really
isn't (it can't be, the elisp core cannot support much of common-lisp
efficiently), and as a result is kind of misleading to users (especially
to common-lisp users, who might think "oh great, I can just use
common-lisp!" ... hahaha, sorry bub...).

I agree that many _parts_ of cl.el are quite good, and useful, but while
you may be able to pick and choose wisely, I think many users aren't as
skillful, and would end up using the horrible grotty bits as well -- and
we really don't want to increase the number of dependencies on horrible
grotty things.

Personally, I'd use a different tactic for addressing this problem --
I'd try to split out the useful parts into separate packages (maybe a
"setf" package, a "struct" package, a "sequence" package etc), and pull
the best and simplest bits into core elisp -- but rms's approach is at
least simple and easy.

(Continue reading)

willwillis | 1 Apr 03:56 2009
Picon

Alternate binding for C-a


I've attempted several times to change C-a ( beginning-of-line ) to M-a. Does
anyone know the elisp I'd need to put in my .emacs to make this change?

(yes, I use screen if you were wondering why'd I'd want to do such a thing)

Thanks,
Will
--

-- 
View this message in context: http://www.nabble.com/Alternate-binding-for-C-a-tp22818419p22818419.html
Sent from the Emacs - Help mailing list archive at Nabble.com.

Bob Babcock | 1 Apr 04:10 2009
Picon

Re: eval-last-sexp in other window

pjb <at> informatimago.com (Pascal J. Bourguignon) wrote in
news:87bpri9lhd.fsf <at> galatea.local: 

>> (defun last-sexp-other-window()
>> "Get last sexp and run it in other window.
>> If there isn't another window, use current window."
>>   (interactive)
>>   (setq ow-sexp (preceding-sexp))
>>   (other-window 1) (eval ow-sexp) (other-window -1) )
> 
> At the very least, use let, not setq!
> 
> (defun last-sexp-other-window()
>  "Get last sexp and run it in other window.
> If there isn't another window, use current window."
>    (interactive)
>    (let ((ow-sexp (preceding-sexp)))
>       (other-window 1)
>       (eval ow-sexp)
>       (other-window -1)))

I will admit that I was surprised when setq worked in this context.
Perhaps there are cases where setq would fail?

Michael Albinus | 1 Apr 06:56 2009
Picon
Picon

Re: tramp: locate and grep packages

Michal <rabbit50 <at> tenbit.pl> writes:

> Hallo Group Members.

Hi,

> because of that I noticed that there are some packages I used in "local"
> environment that seem not working with tramp, ie. they run local
> processes rather than remote ones.
> These are 'locate.el' and 'grep.el' packages.
>
> Do You know what are the plans of adapting them to tramp?

Tramp shall support them, using Emacs 23 / Tramp 2.1. Which versions do
you use?

> Best regards,
> MIchal

Best regards, Michael.

Richard Riley | 1 Apr 09:28 2009
Picon

nxhtml and emacs 23


I would be interested to hear from anyone using nxhtml with windows 23.

I have a couple of issues cropping up and would be interested in seeing
if other people have them.

1) First mixed mode .php file I open is in mixed mode fine.
2) Second is in php-mode with no mumamo mode.

If I call (majmodpri-sort-lists) this then works "ok" in that I can open more
php files and  they are correctly in nxhtmlk-mumamo-mode and not just
php-mode.  The problem I then have is if I try to edit a php chunk. The
first key press in the chunk gives something along the lines of

Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
  rng-after-change-function(529 530 0)

I would be willing to put some/a lot of time into providing more info to
anyone that can help sort this out as I used to rely on nxhtml a lot. As
it is I'm not sure if its an emacs 23 thing only so any one else using
it, I would love to hear from you.

CVS emacs 23 (emacs snapshot from debian doesnt work either), nxhtml
from 20090226.

regards

r.

(Continue reading)

Tassilo Horn | 1 Apr 09:44 2009
Picon

Re: Alternate binding for C-a

willwillis <will.willis <at> gmail.com> writes:

> I've attempted several times to change C-a ( beginning-of-line ) to
> M-a. Does anyone know the elisp I'd need to put in my .emacs to make
> this change?

Try this:

  (global-set-key (kbd "M-a") 'beginning-of-line)

Bye,
Tassilo

Pascal J. Bourguignon | 1 Apr 11:09 2009
Face

Re: eval-last-sexp in other window

Bob Babcock <wssddc <at> nospam.gis.net> writes:

> pjb <at> informatimago.com (Pascal J. Bourguignon) wrote in
> news:87bpri9lhd.fsf <at> galatea.local: 
>
>>> (defun last-sexp-other-window()
>>> "Get last sexp and run it in other window.
>>> If there isn't another window, use current window."
>>>   (interactive)
>>>   (setq ow-sexp (preceding-sexp))
>>>   (other-window 1) (eval ow-sexp) (other-window -1) )
>> 
>> At the very least, use let, not setq!
>> 
>> (defun last-sexp-other-window()
>>  "Get last sexp and run it in other window.
>> If there isn't another window, use current window."
>>    (interactive)
>>    (let ((ow-sexp (preceding-sexp)))
>>       (other-window 1)
>>       (eval ow-sexp)
>>       (other-window -1)))
>
> I will admit that I was surprised when setq worked in this context.
> Perhaps there are cases where setq would fail?

For example in this case:

(defun evaluate-sexps-in-other-windows ()
  (let ((ow-sexp 0)) ; count the sexps we evaluate.
(Continue reading)

Pascal J. Bourguignon | 1 Apr 11:11 2009
Face

Re: Alternate binding for C-a

willwillis <will.willis <at> gmail.com> writes:

> I've attempted several times to change C-a ( beginning-of-line ) to M-a. Does
> anyone know the elisp I'd need to put in my .emacs to make this change?
>
> (yes, I use screen if you were wondering why'd I'd want to do such a thing)

In screen, type: C-a :escape ^Z^Z RET   (type caret and Z, caret and Z)
This change screen's escape to C-z, which is bound to
iconify-or-deiconify-frame, useless in screen.

Otherwise see the other answer on how to change key bindings in emacs.

--

-- 
__Pascal Bourguignon__

Heinz Tuechler | 1 Apr 14:24 2009
Picon
Picon

printing with Emacs 21.3 and gsprint under Vista

Dear All,

because of a broken computer I had to change to a new one, which runs 
under Vista. Under XP I had no problem to print from Emacs 21.3 and gsprint.
Now, if I chose postscript print buffer, I see "Printing...done", but 
nothing happens.
Just to prevent more search and trials, may I ask, if it is in 
principle possible to print from Emacs 21.3 under Vista.

Thanks,

Heinz

Jonathan Groll | 1 Apr 19:44 2009
Picon

Re: Alternate binding for C-a

On Wed, Apr 01, 2009 at 11:11:15AM +0200, Pascal J. Bourguignon wrote:
>willwillis <will.willis <at> gmail.com> writes:
>
>> I've attempted several times to change C-a ( beginning-of-line ) to M-a. Does
>> anyone know the elisp I'd need to put in my .emacs to make this change?
>>
>> (yes, I use screen if you were wondering why'd I'd want to do such a thing)
>
>In screen, type: C-a :escape ^Z^Z RET   (type caret and Z, caret and Z)
>This change screen's escape to C-z, which is bound to
>iconify-or-deiconify-frame, useless in screen.
>
I personally find this binding works best in my ~/.screenrc :

#Press backtick twice if you want a backtick, else its the command character
escape ``

Cheers,
Jonathan


Gmane