* move code from inside a list
@ 2010-01-07 13:11 Andreas Roehler
2010-01-07 14:17 ` Tassilo Horn
0 siblings, 1 reply; 5+ messages in thread
From: Andreas Roehler @ 2010-01-07 13:11 UTC (permalink / raw)
To: help-gnu-emacs
Hi,
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.
Any ideas?
Thanks
Andreas
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: move code from inside a list
2010-01-07 13:11 move code from inside a list Andreas Roehler
@ 2010-01-07 14:17 ` Tassilo Horn
2010-01-07 16:09 ` Andreas Röhler
[not found] ` <mailman.938.1263114864.18930.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 5+ messages in thread
From: Tassilo Horn @ 2010-01-07 14:17 UTC (permalink / raw)
To: help-gnu-emacs
Andreas Roehler <andreas.roehler@online.de> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: move code from inside a list
2010-01-07 14:17 ` Tassilo Horn
@ 2010-01-07 16:09 ` Andreas Röhler
[not found] ` <mailman.938.1263114864.18930.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 5+ messages in thread
From: Andreas Röhler @ 2010-01-07 16:09 UTC (permalink / raw)
To: help-gnu-emacs
Tassilo Horn wrote:
> Andreas Roehler <andreas.roehler@online.de> 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!
^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <mailman.938.1263114864.18930.help-gnu-emacs@gnu.org>]
end of thread, other threads:[~2010-01-10 19:26 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-07 13:11 move code from inside a list Andreas Roehler
2010-01-07 14:17 ` Tassilo Horn
2010-01-07 16:09 ` Andreas Röhler
[not found] ` <mailman.938.1263114864.18930.help-gnu-emacs@gnu.org>
2010-01-10 18:47 ` Pascal J. Bourguignon
2010-01-10 19:26 ` Andreas Röhler
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.