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

parse-partial-sexp wrongly tells being in list #1459

Closed
andreas-roehler opened this issue Nov 27, 2016 · 3 comments
Closed

parse-partial-sexp wrongly tells being in list #1459

andreas-roehler opened this issue Nov 27, 2016 · 3 comments

Comments

@andreas-roehler
Copy link
Contributor

andreas-roehler commented Nov 27, 2016

Not sure, if this is an haskell-mode or pure Emacs issue. With comments as shown below at top of buffer:

{- To explore this file: -}
-- asdf

Calling after comment (parse-partial-sexp (point-min) (point)) results in
(1 1 39 nil nil nil 0 nil nil (1) nil)

pps thinks being inside a nesting list.

@gracjan
Copy link
Contributor

gracjan commented Nov 29, 2016

Are you sure? This is what I get at the places:

{- To explore this file: (0 nil nil nil 1 nil 0 nil 1 nil)-}(0 nil nil nil nil nil 0 nil nil nil)
-- asdf(0 nil nil nil t nil 0 nil 29 nil)
(0 nil nil nil nil nil 0 nil nil nil)

Using (insert (format "%S" (syntax-ppss))). Same with (insert (format "%S" (parse-partial-sexp (point-min) (point))))

@andreas-roehler
Copy link
Contributor Author

Seems a bug of GNU Emacs 26.0.50.1 (i686-pc-linux-gnu, GTK+ Version 3.14.5) of 2016-11-15
Does not exist at
GNU Emacs 25.1.90.1 (i686-pc-linux-gnu, GTK+ Version 3.14.5) of 2016-11-29

Thanks and sorry for the noise.

@gracjan
Copy link
Contributor

gracjan commented Nov 30, 2016

Living on the edge, I see.

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

2 participants