From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Andreas_R=c3=b6hler?= Newsgroups: gmane.emacs.help Subject: Syntax in fundamental-mode? Date: Thu, 16 Aug 2018 08:48:10 +0200 Message-ID: <2a81c19b-d0ec-811e-34e2-266662636874@easy-emacs.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1534401783 21603 195.159.176.226 (16 Aug 2018 06:43:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 16 Aug 2018 06:43:03 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux i686; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 To: Help Gnu Emacs mailing list Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 16 08:42:59 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fqBzm-0005Ui-BV for geh-help-gnu-emacs@m.gmane.org; Thu, 16 Aug 2018 08:42:58 +0200 Original-Received: from localhost ([::1]:53898 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fqC1s-0008T9-VZ for geh-help-gnu-emacs@m.gmane.org; Thu, 16 Aug 2018 02:45:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54654) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fqC1R-0008MW-4Q for help-gnu-emacs@gnu.org; Thu, 16 Aug 2018 02:44:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fqC1L-0007TI-5X for help-gnu-emacs@gnu.org; Thu, 16 Aug 2018 02:44:40 -0400 Original-Received: from mout.kundenserver.de ([212.227.126.187]:34430) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fqC1J-0007QO-MZ for help-gnu-emacs@gnu.org; Thu, 16 Aug 2018 02:44:35 -0400 Original-Received: from [192.168.178.35] ([188.103.23.99]) by mrelayeu.kundenserver.de (mreue001 [212.227.15.167]) with ESMTPSA (Nemesis) id 0LmT7D-1gPnx730Et-00aBaS for ; Thu, 16 Aug 2018 08:44:30 +0200 Content-Language: en-US X-Provags-ID: V03:K1:GiKTT3LsMemiRs6EhOFJ3RrZHV7tamnP0plVYFyoGdLc7F8sv3/ xGcrj65WepGsXFfKs2YvraE0EOqYXyDR4mMpQ8adY/RiYoEnmU+L5AuEn3wyDiC3YGzy/EU XzBqS0FviB6p6ZefsqcI8UzfjyYamTntHZk6TvzkewWHg0+KuQHfsy911Ad1j5ETyAIdTsO Oh3y9Wtj6FIdYoGGIplDg== X-UI-Out-Filterresults: notjunk:1;V01:K0:EmBGYE8nNug=:2yF5KmWxU99SiqPjfwcKet 5olJlBlCfXbK9IQErGB2Xl//bZnT5at70+LFaF+uA7o6FzXqyrrOR9ELnDHaYmLYK9n4qmB/d lwy8K+BjBwM3fPvgDp/z6irqJPmynjfBVA4e9pf6cv+nxEVtyXpufnPFINT0U7VCyfjwFuja4 SeMEjNZq6KN3zHldFd2PkkP8c9Mxu7LkL+QxtyZ4mzOVBIX1dwyueCiR+TRSWRUPHHuXMciAD odW36tq1WPlPvNEA+ql5tZ08RRAL3AD6lNodMgdeMCA5DVTFr5cXXhHw2Y72ag9EQ3f9QzNU3 v5XkOUr35qgTqQFSwi5hMg9GWNfMlWOZoCr6zsQrYDjxvS6x1xIFnQR2xKC5DY4HSHNYQVU6Q ON5uv4+/zge0FobQnExjj3TknOqTKgTpYTrn7ikgn6xxZLlra/mQhZ60x+bXu/0pQpl/TZZnD BZdZUs7oeRX/Pd0JaHHkfydrVxUschHTZUzRKLMrolGtrkA4Myd8zgM5mxZh36zyI6k+dxkTa en5ZZBTQi9YoDSbr/3oTqcpi8mRZl+jVzxoPtC2g5NQjosMtES5UsbwNnvpqT+wNPm7SbNzf1 TGL8PuBilNtK3OuGK5CB+Fx0HRP5WqcR1XB1kep+o/XV0ZpElaHO0/TuZnYuaKEQZPaYftdP1 XTXT72KzDZMAAdoaWEonLTDHxADEOYv1aM7FMTnsyUlTH15LD34v9CV9sgYDMTuP38BAosdnA cDdfCCdynD8RyqjM X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.126.187 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:117668 Archived-At: 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