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

It would be wonderful to have an emacs mode for simpleDoc!! #13

Open
DanGrayson opened this issue Jun 8, 2020 · 0 comments
Open

It would be wonderful to have an emacs mode for simpleDoc!! #13

DanGrayson opened this issue Jun 8, 2020 · 0 comments

Comments

@DanGrayson
Copy link
Member

It would be wonderful to have an emacs mode for simpleDoc!!

David

David Eisenbud, Director,
Mathematical Sciences Research Institute
and Professor of Mathematics,
University of California, Berkeley

On Sun, Jun 7, 2020 at 4:42 PM Daniel R. Grayson [email protected]
wrote:

@DanGrayson commented on this pull request.

In M2/Macaulay2/packages/SimpleDoc/doc.txt
Macaulay2/M2#1234 (comment):

@@ -12,7 +29,7 @@ Node
Consequences
Item
The string {\tt s} is handled by parsing it the same way @ TO doc @ does,

  • but expecting the least indented keyword to be {\bf Node}, which can occur
  • but expecting the least indented keyword to be @ TO Node @, which can occur

What do you think about changing Node to doc? There are only about 20
packages that use it, so changing it wouldn't be difficult.

I see the following disadvantages:

  • "doc" is not a word
  • "doc" is not capitalized
  • "doc" is already in use for something else in the package
  • the word "Node" is descriptive: it introduces a documentation node
  • the change would not be backward compatible.

Here's a change I would like to see instead, even though it's backward
compatible, if @mikestillman https://github.com/mikestillman approves:

  • get rid of "doc" and "multidoc"
  • attach the functionality of "multidoc" as the method for "document
    String", which is currently empty

It would also be cool to develop an emacs mode for SimpleDoc files. It
could take care of the indentation and helping us know which keywords are
valid at the current level of indentation.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
Macaulay2/M2#1234 (comment), or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AA6UWDILJCZZR4YCIB4LGK3RVQQW3ANCNFSM4NTCIMKQ
.

Originally posted by @eisenbud in Macaulay2/M2#1234 (comment)

@mahrud mahrud transferred this issue from Macaulay2/M2 Jan 1, 2021
d-torrance added a commit to d-torrance/M2-emacs that referenced this issue Mar 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant