all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
To: Help Gnu Emacs mailing list <help-gnu-emacs@gnu.org>
Subject: Syntax in fundamental-mode?
Date: Thu, 16 Aug 2018 08:48:10 +0200	[thread overview]
Message-ID: <2a81c19b-d0ec-811e-34e2-266662636874@easy-emacs.de> (raw)

Hi,

with buffer in fundamental-mode and contents

{{{{asdf

When calling from EOL my reporter of (parse-partial-sexp (point-min)
(point)) tells

nth 0- depth in parens.
  	 ====> 4 <====
nth 1- character address of start of innermost containing list; nil if none.
	 ====> 4 <====
nth 2- character address of start of last complete sexp terminated.
	 ====> 5 <====
nth 3- non-nil if inside a string.
	 ====> nil <====
     (it is the character that will terminate the string,
      or t if the string should be terminated by a generic string 
delimiter.)
nth 4- nil if outside a comment, t if inside a non-nestable comment,
	 ====> nil <====
     else an integer (the current comment nesting).
nth 5- t if following a quote character.
	 ====> nil <====
nth 6- the minimum paren-depth encountered during this scan.
	 ====> 0 <====
nth 7- style of comment, if any.
	 ====> nil <====
nth 8- character address of start of comment or string; nil if not in one.
	 ====> nil <====
nth 11- List of positions of currently open parens, outermost first.
	 ====> nil <====
	 ====> (1 2 3 4) <====
nth 10. When the last position scanned holds the first character of a
     (potential) two character construct, the syntax of that position,
     otherwise nil.  That construct can be a two character comment
     delimiter or an Escaped or Char-quoted character.
nth 11..... Possible further internal information used by 
‘parse-partial-sexp’.
If third arg TARGETDEPTH is non-nil, parsing stops if the depth
in parentheses becomes equal to TARGETDEPTH.
Fourth arg STOPBEFORE non-nil means stop when we come to
  any character that starts a sexp.
Fifth arg OLDSTATE is a list like what this function returns.
  It is used to initialize the state of the parse.  Elements number 1, 2, 6
  are ignored.
Sixth arg COMMENTSTOP non-nil means stop after the start of a comment.
  If it is the symbol ‘syntax-table’, stop after the start of a comment or a
  string, or after end of a comment or a string.
(fn FROM TO &optional TARGETDEPTH STOPBEFORE OLDSTATE COMMENTSTOP)

;;

Is there a way to get rid of all syntax?

Thanks,
Andreas
GNU Emacs 27.0.50 (build 1, i686-pc-linux-gnu, GTK+ Version 3.14.5) of 
2018-05-29



                 reply	other threads:[~2018-08-16  6:48 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2a81c19b-d0ec-811e-34e2-266662636874@easy-emacs.de \
    --to=andreas.roehler@easy-emacs.de \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.