Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading go-mode in Emacs causes org-mode #-comment auto-fill to misbehave #290

Closed
rsaarelm opened this issue Nov 21, 2009 · 5 comments
Closed

Comments

@rsaarelm
Copy link
Contributor

Org-mode HEAD=4b6d270b1615534ef87e330fb2519f4095ea776a, Go id=44699e529c44
Emacs org-mode: http://orgmode.org/

Org-mode with auto-fill-mode is supposed to work like this:

---
################################################
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX try writing past the end of this line:

---
=>

---
################################################
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX try writing past the end of this line:
lorem ipsum
--

However, when go-mode is loaded by opening a .go file in another Emacs
buffer, something goes wrong. Now the result in the org-mode file is this:

---
################################################
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX try writing past the end of this line:

---
=>

---
################################################
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX try writing past the end of this line:
################################################lorem ipsum
--

Org-mode would normally only insert the hash symbol prefix on the line
immediately below the one currently containing the same prefix. After
loading go-mode in another buffer, org mode starts to recognize the hash
symbols from many lines above the current one and automatically adding the
hashes after autofill linebreaks where they do not belong.
@rsaarelm
Copy link
Contributor Author

Comment 1:

Oh, and M-x version:
GNU Emacs 23.1.50.1 (i486-pc-linux-gnu, GTK+ Version 2.18.0) of 2009-09-27 on palmer,
modified by Debian

@rsc
Copy link
Contributor

rsc commented Nov 23, 2009

Comment 2:

Austin?

Owner changed to r...@golang.org.

Status changed to Accepted.

@gopherbot
Copy link
Contributor

Comment 3 by amdragon:

Give
  http://golang.org/cl/160070
a try.

@rsaarelm
Copy link
Contributor Author

Comment 4:

That fixed it, thanks!

@rsc
Copy link
Contributor

rsc commented Nov 29, 2009

Comment 5:

This issue was closed by revision 6e6125f.

Status changed to Fixed.

Merged into issue #-.

@rsaarelm rsaarelm added the fixed label Nov 29, 2009
@golang golang locked and limited conversation to collaborators Jun 24, 2016
@rsc rsc removed their assignment Jun 22, 2022
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants