auctex-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX-devel] change: documents with $$ to \begin{documents}


From: Uwe Brauer
Subject: Re: [AUCTeX-devel] change: documents with $$ to \begin{documents}
Date: Sun, 04 Jan 2015 16:18:10 +0100
User-agent: Gnus/5.13001 (Ma Gnus v0.10) XEmacs/21.5-b33 (linux)

   > Uwe Brauer <address@hidden> writes:

Thanks for the rapid answer.  


   > Well, yes.  Instead of . you need \(.\|^J\) or \SS (that's a bad cheat:
   > any character with a syntax class other than S which does not exist as
   > far as I know).

Since I was not entirely sure about your answer I tried out the following


 second \$\$\(\SS*?\)\$\$, works in GNU emacs but not in Xemacs
 third \$\$\(.\|^J*?\)\$\$ does not work in both
 forth \$\$\(\(.\|^J\)*?\)\$\$ does not work in both


Ok this means there is one working solution for GNU emacs but not for
Xemacs.

Debugger entered--Lisp error: (invalid-regexp "Invalid syntax designator")
  re-search-forward("\\$\\$\\(\\SS*?\\)\\$\\$" nil t)
  #<compiled-function (from 
"/home/oub/ALLES/Add-Import/Soft/Essential/xemacs-21.5.33-xsymbol/lisp/replace.elc")
 (regexp limit) "...(6)" [limit regexp re-search-forward t] 4 
0x1b6>("\\$\\$\\(\\SS*?\\)\\$\\$" nil)
  perform-replace("\\$\\$\\(\\SS*?\\)\\$\\$" "hallo" t t nil)
  #<compiled-function (from query-replace-regexp) (regexp to-string &optional 
delimited) "...(8)" [delimited to-string regexp perform-replace t] 6 857287 
(query-replace-read-args "Query replace regexp" t) 
0x1b9>("\\$\\$\\(\\SS*?\\)\\$\\$" "hallo" nil)
  call-interactively(query-replace-regexp)
  recursive-edit()
  byte-code("..." [buffer-read-only noninteractive debugger-buffer middlestart 
debugger-args debugger-batch-max-lines pop-to-buffer debugger-mode 
debugger-setup-buffer count-lines 2 "...\n" message buffer-string kill-emacs 
debug backtrace-debug 3 t debugger-reenable "" nil recursive-edit 
standard-output] 3)
  debug(error (invalid-regexp "Invalid syntax designator"))
  re-search-forward("\\$\\$\\(\\SS*?\\)\\$\\$" nil t)
  #<compiled-function (from 
"/home/oub/ALLES/Add-Import/Soft/Essential/xemacs-21.5.33-xsymbol/lisp/replace.elc")
 (regexp limit) "...(6)" [limit regexp re-search-forward t] 4 
0x1b6>("\\$\\$\\(\\SS*?\\)\\$\\$" nil)
  perform-replace("\\$\\$\\(\\SS*?\\)\\$\\$" "hallo" t t nil)
  #<compiled-function (from query-replace-regexp) (regexp to-string &optional 
delimited) "...(8)" [delimited to-string regexp perform-replace t] 6 857287 
(query-replace-read-args "Query replace regexp" t) 
0x1b9>("\\$\\$\\(\\SS*?\\)\\$\\$" "hallo" nil)
  call-interactively(query-replace-regexp)

Attachment: smime.p7s
Description: S/MIME cryptographic signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]