Re: [O] How to make kill-sexp work as in the rest of Emacs?

2012-08-29 Thread Bastien
Nick Dokos nicholas.do...@hp.com writes:

 Try

   (modify-syntax-entry ?\ \)

This is now the default in master.  

(Note that it will not be part of the 7.9.1 release, made from 
the maint branch.  I think such changes  belong to a major
release.)

Thanks to you and Samuel for this!

-- 
 Bastien



Re: [O] How to make kill-sexp work as in the rest of Emacs?

2012-08-27 Thread Nick Dokos
Samuel Wales samolog...@gmail.com wrote:

 I like doing kill-sexp to kill a quoted string like this.  How do I
 get that to
 work again?
 

It does not work the same way in the rest of emacs: sexp commands
behave differently depending on the mode. You can e.g.

   (set-syntax-table lisp-mode-syntax-table)

and then the sexp commands will behave lispishly. C-mode buffers do
the equivalent of

   (set-syntax-table c-mode-syntax-table)

and text mode buffers (of which org-mode is a derived mode) do

   (set-syntax-table text-mode-syntax-table)

Setting the syntax table to e.g. the lisp mode one will certainly allow
you to kill quoted strings with kill-sexp. Whether it has other, less
desirable consequences, I don't know: you'll just have to try and see.

Nick








Re: [O] How to make kill-sexp work as in the rest of Emacs?

2012-08-27 Thread Samuel Wales
On 8/27/12, Nick Dokos nicholas.do...@hp.com wrote:
 It does not work the same way in the rest of emacs: sexp commands
 behave differently depending on the mode. You can e.g.

I should have made it clear that I understood that.  I want to know
how to just fix that one thing.

Samuel

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com



Re: [O] How to make kill-sexp work as in the rest of Emacs?

2012-08-27 Thread Nick Dokos
Samuel Wales samolog...@gmail.com wrote:

 On 8/27/12, Nick Dokos nicholas.do...@hp.com wrote:
  It does not work the same way in the rest of emacs: sexp commands
  behave differently depending on the mode. You can e.g.
 
 I should have made it clear that I understood that.  I want to know
 how to just fix that one thing.
 

Try

  (modify-syntax-entry ?\ \)

in the org buffer. If you want it in every org buffer, I would
modify org-mode in org.el with the above.

Nick



Re: [O] How to make kill-sexp work as in the rest of Emacs?

2012-08-27 Thread Samuel Wales
On 8/27/12, Nick Dokos nicholas.do...@hp.com wrote:
   (modify-syntax-entry ?\ \)

Works great.  I will put it in org mode hook.

Thanks.

Samuel

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com