emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* bug in new lisp code or user error?
@ 2011-01-22  2:26 Samuel Wales
  2011-01-22 17:56 ` Nicolas Goaziou
  0 siblings, 1 reply; 6+ messages in thread
From: Samuel Wales @ 2011-01-22  2:26 UTC (permalink / raw)
  To: emacs-orgmode

When point is at [] and I press TAB, nothing happens.

  ...
  27) bikeshedding (talking about something you think you
[]know about instead of what is important -- in this case,
talking about what the audience thinks it knows about)
  ...

The only org-list-vars I have set are these:

(setq org-list-two-spaces-after-bullet-regexp "\\.")
;;1) not work
(setf org-list-demote-modify-bullet
      '(("+" . "*") ("-" . "+") ("1)" . "-")))

Turning off filladapt does not fix it.

Latest org.

Thanks.

Samuel

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com
I support WPI: http://www.wpinstitute.org/xmrv/index.html -- PLEASE DONATE
===
I want to see the original (pre-hold) Lo et al. 2010 NIH/FDA/Harvard MLV paper.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: bug in new lisp code or user error?
  2011-01-22  2:26 bug in new lisp code or user error? Samuel Wales
@ 2011-01-22 17:56 ` Nicolas Goaziou
  2011-01-22 19:55   ` Samuel Wales
  0 siblings, 1 reply; 6+ messages in thread
From: Nicolas Goaziou @ 2011-01-22 17:56 UTC (permalink / raw)
  To: Samuel Wales; +Cc: emacs-orgmode

Hello,

>>>>> Samuel Wales writes:

> When point is at [] and I press TAB, nothing happens.

>   ...
>   27) bikeshedding (talking about something you think you 
> []know about instead of what is important -- in this case,
> talking about what the audience thinks it knows about)
>   ...

User error in this case. Your second line is less or equally indented
than your last item: by definition, list ends where your cursor is.

So, when you ask for indentation, the text is put at the right spot.

On the other hand, you can set org-list-ending-method to 'regexp.
Then, indentation will not end lists anymore, and your text will
happily go inside the item in that case.

Regards,

-- Nicolas

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: bug in new lisp code or user error?
  2011-01-22 17:56 ` Nicolas Goaziou
@ 2011-01-22 19:55   ` Samuel Wales
  2011-01-22 19:59     ` Samuel Wales
  2011-01-22 20:44     ` Nicolas Goaziou
  0 siblings, 2 replies; 6+ messages in thread
From: Samuel Wales @ 2011-01-22 19:55 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: emacs-orgmode

[I meant list in the subject]

Thanks Nicolas.  ISTR this is different from before.  Did it work before?

It occurs when you have a list, and a paragraph someplace, and want to
insert that paragraph as an item in the list.  Pretty common.

The problem with using 'regexp is that I need 2 blank lines after
lists.  I guess this is unavoidable?

Samuel

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com
I support WPI: http://www.wpinstitute.org/xmrv/index.html -- PLEASE DONATE
===
I want to see the original (pre-hold) Lo et al. 2010 NIH/FDA/Harvard MLV paper.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: bug in new lisp code or user error?
  2011-01-22 19:55   ` Samuel Wales
@ 2011-01-22 19:59     ` Samuel Wales
  2011-01-22 20:44     ` Nicolas Goaziou
  1 sibling, 0 replies; 6+ messages in thread
From: Samuel Wales @ 2011-01-22 19:59 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: emacs-orgmode

(setf org-empty-line-terminates-plain-lists t) works but does not
allow paragraphs in lists.  I presume we're looking at incompossible
goals?

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com
I support WPI: http://www.wpinstitute.org/xmrv/index.html -- PLEASE DONATE
===
I want to see the original (pre-hold) Lo et al. 2010 NIH/FDA/Harvard MLV paper.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: bug in new lisp code or user error?
  2011-01-22 19:55   ` Samuel Wales
  2011-01-22 19:59     ` Samuel Wales
@ 2011-01-22 20:44     ` Nicolas Goaziou
  2011-01-23 11:48       ` Nicolas Goaziou
  1 sibling, 1 reply; 6+ messages in thread
From: Nicolas Goaziou @ 2011-01-22 20:44 UTC (permalink / raw)
  To: Samuel Wales; +Cc: emacs-orgmode

>>>>> Samuel Wales writes:

> [I meant list in the subject] Thanks Nicolas. ISTR this is different
> from before. Did it work before?

It is also working right now, although in a different way. ;)

> It occurs when you have a list, and a paragraph someplace, and want
> to insert that paragraph as an item in the list. Pretty common.

When both the list and the paragraph are already created, and you need
to move the latter into the former, there's no Org way to do this.

But you can either use C-x r o, or cut the paragraph, go back to the
item, and yank it there.

> The problem with using 'regexp is that I need 2 blank lines after
> lists. I guess this is unavoidable?

You can have virtually any regexp to end a list, by changing
`org-list-end-re'.

Regards,

-- Nicolas

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: bug in new lisp code or user error?
  2011-01-22 20:44     ` Nicolas Goaziou
@ 2011-01-23 11:48       ` Nicolas Goaziou
  0 siblings, 0 replies; 6+ messages in thread
From: Nicolas Goaziou @ 2011-01-23 11:48 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: emacs-orgmode

Hello,

> You can have virtually any regexp to end a list, by changing
> `org-list-end-re'.

It is `org-list-end-regexp', my apologies.

Regards,

-- Nicolas

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-01-23 11:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-22  2:26 bug in new lisp code or user error? Samuel Wales
2011-01-22 17:56 ` Nicolas Goaziou
2011-01-22 19:55   ` Samuel Wales
2011-01-22 19:59     ` Samuel Wales
2011-01-22 20:44     ` Nicolas Goaziou
2011-01-23 11:48       ` Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).