emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: auto-fill in a body often inserts "#"
@ 2008-08-19 21:56 Samuel Wales
  2008-08-20 17:51 ` Peter Jones
  2008-08-21 18:09 ` Peter Jones
  0 siblings, 2 replies; 11+ messages in thread
From: Samuel Wales @ 2008-08-19 21:56 UTC (permalink / raw)
  To: emacs-orgmode

I am running the latest org-mode from the tar on emacs 22, installed
via macports, on a mac OS X Tiger default terminal.  I have turned on
auto-fill and set fill-column.

On the same setup with the default org-mode in emacs 22, this bug does
*not* happen.
Therefore, I think that it is either in the new code, or triggered by
the new code.

If I am at the end of a headline and press RET, then type alphabetic
characters and SPC as body text until auto-fill wraps, quite often the
second line will begin with a #.  There are no comment lines anywhere
nearby for auto-fill to adapt to.  This only happens in org-mode and
not in any other mode.

It sometimes happens and sometimes does not happen, which is strange.
I haven't tried it enough with emacs -q to be sure that it is or is
not something in my .emacs that is triggering the bug.  However, I
have no idea what could do this.

Any ideas?

Thanks.

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

* Re: Bug: auto-fill in a body often inserts "#"
  2008-08-19 21:56 Bug: auto-fill in a body often inserts "#" Samuel Wales
@ 2008-08-20 17:51 ` Peter Jones
  2008-08-20 20:37   ` Samuel Wales
  2008-08-21 18:09 ` Peter Jones
  1 sibling, 1 reply; 11+ messages in thread
From: Peter Jones @ 2008-08-20 17:51 UTC (permalink / raw)
  To: emacs-orgmode

"Samuel Wales" <samologist@gmail.com> writes:
> I am running the latest org-mode from the tar on emacs 22, installed
> via macports, on a mac OS X Tiger default terminal.  I have turned on
> auto-fill and set fill-column.

What does M-x org-version RET say?  

The version of org-mode that came in the latest emacs 22 is pretty
old.  The current version is 6.06b available from http://orgmode.org/.

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US

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

* Re: Re: Bug: auto-fill in a body often inserts "#"
  2008-08-20 17:51 ` Peter Jones
@ 2008-08-20 20:37   ` Samuel Wales
  2008-08-20 20:40     ` Samuel Wales
  0 siblings, 1 reply; 11+ messages in thread
From: Samuel Wales @ 2008-08-20 20:37 UTC (permalink / raw)
  To: emacs-orgmode

On Wed, Aug 20, 2008 at 10:51 AM, Peter Jones <mlists@pmade.com> wrote:
> "Samuel Wales" <samologist@gmail.com> writes:
>> I am running the latest org-mode from the tar on emacs 22, installed
>
> What does M-x org-version RET say?

6.06b, as that is the latest.

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

* Re: Re: Bug: auto-fill in a body often inserts "#"
  2008-08-20 20:37   ` Samuel Wales
@ 2008-08-20 20:40     ` Samuel Wales
  2008-08-20 23:51       ` Samuel Wales
  0 siblings, 1 reply; 11+ messages in thread
From: Samuel Wales @ 2008-08-20 20:40 UTC (permalink / raw)
  To: emacs-orgmode

Another possible aspect of the bug is that occasionally it leaves the
window scrolled to the right (i.e. the leftmost column is not visible)
when it should not.  FWIW.

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

* Re: Re: Bug: auto-fill in a body often inserts "#"
  2008-08-20 20:40     ` Samuel Wales
@ 2008-08-20 23:51       ` Samuel Wales
  0 siblings, 0 replies; 11+ messages in thread
From: Samuel Wales @ 2008-08-20 23:51 UTC (permalink / raw)
  To: emacs-orgmode

I believe that org is getting the "#" from the only lines in the file
that have a "#", which are the control lines at the top.

If I have a commented control line, then "##" gets inserted on the
second line of the body text instead of "#".

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

* Re: Bug: auto-fill in a body often inserts "#"
  2008-08-19 21:56 Bug: auto-fill in a body often inserts "#" Samuel Wales
  2008-08-20 17:51 ` Peter Jones
@ 2008-08-21 18:09 ` Peter Jones
  2008-08-22  1:48   ` Samuel Wales
  1 sibling, 1 reply; 11+ messages in thread
From: Peter Jones @ 2008-08-21 18:09 UTC (permalink / raw)
  To: emacs-orgmode

"Samuel Wales" <samologist@gmail.com> writes:
> It sometimes happens and sometimes does not happen, which is strange.
> I haven't tried it enough with emacs -q to be sure that it is or is
> not something in my .emacs that is triggering the bug.  However, I
> have no idea what could do this.

I've seen this, but with an older version of org-mode.  It hasn't
happened in a long time, so I assumed it was a bug that got fixed.

IIRC, I suspected that some global minor mode might have whacked
things up, and restarting Emacs fixed the problem.  I also thought the
problem might be the fill-prefix, but in my case, it was nil as
expected.

You might want to see what the fill-prefix is next time it starts
doing that, just to be sure:

,----
| C-h v fill-prefix
`----

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US

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

* Re: Re: Bug: auto-fill in a body often inserts "#"
  2008-08-21 18:09 ` Peter Jones
@ 2008-08-22  1:48   ` Samuel Wales
  2008-08-22  7:37     ` Paul R
  0 siblings, 1 reply; 11+ messages in thread
From: Samuel Wales @ 2008-08-22  1:48 UTC (permalink / raw)
  To: emacs-orgmode

fill-prefix is nil.

Restarting emacs does not fix it.

Thanks.

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

* Re: Bug: auto-fill in a body often inserts "#"
  2008-08-22  1:48   ` Samuel Wales
@ 2008-08-22  7:37     ` Paul R
  2008-08-23 16:39       ` Samuel Wales
  0 siblings, 1 reply; 11+ messages in thread
From: Paul R @ 2008-08-22  7:37 UTC (permalink / raw)
  To: Samuel Wales; +Cc: emacs-orgmode

hi,

On Thu, 21 Aug 2008 18:48:24 -0700, "Samuel Wales" <samologist@gmail.com> said:
Samuel> fill-prefix is nil. Restarting emacs does not fix it.
Samuel> Thanks.

may you send here your enabled minor modes please ? Hit `C-h m' from an
org buffer, then copy the first few lines here.

-- 
  Paul

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

* Re: Bug: auto-fill in a body often inserts "#"
  2008-08-22  7:37     ` Paul R
@ 2008-08-23 16:39       ` Samuel Wales
  2008-08-23 22:20         ` Paul R
  0 siblings, 1 reply; 11+ messages in thread
From: Samuel Wales @ 2008-08-23 16:39 UTC (permalink / raw)
  To: Paul R; +Cc: emacs-orgmode

Paul sent this to the list, so I assume that I was supposed to do
reply to all instead of reply, which I initially did.  Hope it's the
right thing.

On Fri, Aug 22, 2008 at 12:37 AM, Paul R
> may you send here your enabled minor modes please ?

Auto-Compression minor mode (no indicator):
Auto-Fill minor mode (indicator Fill):
Encoded-Kbd minor mode (no indicator):
Toggle Encoded-kbd minor mode.
File-Name-Shadow minor mode (no indicator):
Font-Lock minor mode (no indicator):
Global-Font-Lock minor mode (no indicator):
Icomplete minor mode (no indicator):
Iswitchb minor mode (no indicator):
Toggle Iswitchb global minor mode.
Line-Number minor mode (no indicator):
Show-Paren minor mode (no indicator):
Unify-8859-On-Encoding minor mode (no indicator):
Utf-Translate-Cjk minor mode (no indicator):

Thanks.

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

* Re: Bug: auto-fill in a body often inserts "#"
  2008-08-23 16:39       ` Samuel Wales
@ 2008-08-23 22:20         ` Paul R
  2008-08-25  2:29           ` Samuel Wales
  0 siblings, 1 reply; 11+ messages in thread
From: Paul R @ 2008-08-23 22:20 UTC (permalink / raw)
  To: Samuel Wales; +Cc: emacs-orgmode

On Sat, 23 Aug 2008 09:39:29 -0700, "Samuel Wales" <samologist@gmail.com> said:

Samuel> Paul sent this to the list, so I assume that I was supposed to
Samuel> do reply to all instead of reply, which I initially did. Hope
Samuel> it's the right thing.

Samuel> Auto-Compression minor mode (no indicator): Auto-Fill minor
Samuel> mode (indicator Fill): Encoded-Kbd minor mode (no indicator):
Samuel> Toggle Encoded-kbd minor mode. File-Name-Shadow minor mode (no
Samuel> indicator): Font-Lock minor mode (no indicator):
Samuel> Global-Font-Lock minor mode (no indicator): Icomplete minor
Samuel> mode (no indicator): Iswitchb minor mode (no indicator):
Samuel> Toggle Iswitchb global minor mode. Line-Number minor mode (no
Samuel> indicator): Show-Paren minor mode (no indicator):
Samuel> Unify-8859-On-Encoding minor mode (no indicator):
Samuel> Utf-Translate-Cjk minor mode (no indicator):

This looks fairly common, no fancy mode here.
You said you did not test a lot with emacs -Q, could you ensure it
still happens without any emacs setup loaded, just org-mode el files
loaded, and a fresh new .org file to work in. If you can reproduce it
in this case, may you join a recipe step by step to reproduce it here
please.

-- 
  Paul

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

* Re: Bug: auto-fill in a body often inserts "#"
  2008-08-23 22:20         ` Paul R
@ 2008-08-25  2:29           ` Samuel Wales
  0 siblings, 0 replies; 11+ messages in thread
From: Samuel Wales @ 2008-08-25  2:29 UTC (permalink / raw)
  To: Paul R; +Cc: emacs-orgmode

The problem seems to have gone away.  I never found out what was
causing it for certain, but when it occurred, comment-start was "#".
Maybe a global value.  If it happens again it will be easier to fix.

Thanks.

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

end of thread, other threads:[~2008-08-25  2:29 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-19 21:56 Bug: auto-fill in a body often inserts "#" Samuel Wales
2008-08-20 17:51 ` Peter Jones
2008-08-20 20:37   ` Samuel Wales
2008-08-20 20:40     ` Samuel Wales
2008-08-20 23:51       ` Samuel Wales
2008-08-21 18:09 ` Peter Jones
2008-08-22  1:48   ` Samuel Wales
2008-08-22  7:37     ` Paul R
2008-08-23 16:39       ` Samuel Wales
2008-08-23 22:20         ` Paul R
2008-08-25  2:29           ` Samuel Wales

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).