Arc Forumnew | comments | leaders | submitlogin
1 point by bd 6147 days ago | link | parent

I tried out arc.el and inferior-arc.el from Anarki in Xemacs, and arc.el gave the following error:

Invalid syntax description flag: "\" 23bn"

I traced it down to line 74 of the version I downloaded yesterday, but I'm unfamiliar with what it does, and why it would differ between the emacsen:

(modify-syntax-entry ?\| "\" 23bn" st)

Any ideas? Works great in Emacs.



2 points by nex3 6147 days ago | link

No clue... I'm totally unfamiliar with Xemacs. Likely it just has slightly different syntax for syntax-tables. I think that line was copied from lisp.el, though... maybe whatever Xemacs' equivalent file is has a compatible version.

-----

1 point by bd 6145 days ago | link

The only other reference to "modify-syntax-entry" I found was in slime.el, both for Emacs and XEmacs. lisp.el doesn't have it. There were only two "modify-syntax-entry" lines used, vs. the many in arc.el. Lines 6451-6462 from slime.el:

  (defvar sldb-mode-syntax-table
    (let ((table (copy-syntax-table lisp-mode-syntax-table)))
      ;; We give < and > parenthesis syntax, so that #< ... >    is treated
      ;; as a balanced expression.  This enables autodoc-mode to match
      ;; #<unreadable> actual arguments in the backtraces with formal
      ;; arguments of the function.  (For Lisp mode, this is not
      ;; desirable, since we do not wish to get a mismatched paren
      ;; highlighted everytime we type < or >.)
      (modify-syntax-entry ?< "(" table)
      (modify-syntax-entry ?> ")" table)
      table)
    "Syntax table for SLDB mode.")

-----