help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: move code from inside a list


From: Andreas Röhler
Subject: Re: move code from inside a list
Date: Thu, 07 Jan 2010 17:09:06 +0100
User-agent: Thunderbird 2.0.0.19 (X11/20081227)

Tassilo Horn wrote:
> Andreas Roehler <address@hidden> writes:
> 
> Hi Andreas,
> 
>> must move some code from inside a list:
>>
>> (set (make-local-variable 'comment-end " */"))
>> ______________________________________|________
>>
>> i.e. move closing paren to cursor position
>>
>> ==>
>>
>> (set (make-local-variable 'comment-end) " */")
>>
>> `paredit-backward-barf-sexp' seems the command,
>> but doesn't work for me.
> 
> Nope, the other way round.
> 
> ,----
> | <C-left> runs the command paredit-forward-barf-sexp, which is an interactive
> | Lisp function in `paredit.el'.
> | 
> | It is bound to <C-left>, C-}.
> | 
> | (paredit-forward-barf-sexp)
> | 
> | Remove the last S-expression in the current list from that list
> |   by moving the closing delimiter.
> | Automatically reindent the newly barfed S-expression with respect to
> |   its new enclosing form.
> | 
> | <C-left>
> | 
> | (foo (bar |baz quux) zot)
> |   ->
> | (foo (bar |baz) quux zot)
> `----
> 
> Bye,
> Tassilo
> 
> 
> 
> 

Great! Danke!




reply via email to

[Prev in Thread] Current Thread [Next in Thread]