From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 01 09:41:47 2017 Received: (at submit) by debbugs.gnu.org; 1 Jan 2017 14:41:47 +0000 Received: from localhost ([127.0.0.1]:33787 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cNhKU-0003xF-M8 for submit@debbugs.gnu.org; Sun, 01 Jan 2017 09:41:47 -0500 Received: from eggs.gnu.org ([208.118.235.92]:35715) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cNhKR-0003wy-EW for submit@debbugs.gnu.org; Sun, 01 Jan 2017 09:41:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cNhKK-0004Bq-Lo for submit@debbugs.gnu.org; Sun, 01 Jan 2017 09:41:38 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:35561) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cNhKK-0004Bk-I2 for submit@debbugs.gnu.org; Sun, 01 Jan 2017 09:41:36 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54917) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cNhKI-0001VR-Fk for bug-auctex@gnu.org; Sun, 01 Jan 2017 09:41:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cNhKF-00049O-Aq for bug-auctex@gnu.org; Sun, 01 Jan 2017 09:41:34 -0500 Received: from ofb15.esk.m4.zaq.ne.jp ([220.152.48.22]:51285) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cNhKE-00048H-MT for bug-auctex@gnu.org; Sun, 01 Jan 2017 09:41:31 -0500 Received: from omx24.esk.m4.zaq.ne.jp ([220.152.49.27] [220.152.49.27]) by omx24.esk.m4.zaq.ne.jp with ESMTP id <20170101144106934.EEPF.3216.omx24.esk.m4.zaq.ne.jp@omx24.esk.m4.zaq.ne.jp> for ; Sun, 1 Jan 2017 23:41:06 +0900 Received: from smtpa11.esk.m4.zaq.ne.jp ([126.64.187.233] [126.64.187.233]) by smtpa11.esk.m4.zaq.ne.jp with ESMTP id <20170101144106875.MVFU.32178.smtpa11.esk.m4.zaq.ne.jp@smtpa11.esk.m4.zaq.ne.jp> for ; Sun, 1 Jan 2017 23:41:06 +0900 Received: from localhost (localhost [127.0.0.1]) by freebsd.vmware (Postfix) with ESMTP id 90B7E139809 for ; Sun, 1 Jan 2017 23:41:06 +0900 (JST) To: bug-auctex@gnu.org Subject: [AUCTeX-devel] preview-latex coding system problem with Japanese LaTeX X-Mailer: MH-E 8.6; MH 6.8.4.JP-3.05; GNU Emacs 25.1.1 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Date: Sun, 01 Jan 2017 23:41:06 +0900 Message-ID: <14538.1483281666@localhost> From: Ikumi Keita X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --=-=-= Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable According to Mos=E8's advice, I'm forwarding this message to bug tracking ML. To those who tries to work on this issue: This was originally posted to auctex-devel@gnu.org. See also https://lists.gnu.org/archive/html/auctex-devel/2016-12/msg00058.html and the thread following it. ---------------------------------------------------------------------- Dear AUCTeX developers, I have some problems with preview-latex with regard to the coding system when I use Japanese LaTeX. Since the recent TeXLive contains Japanese LaTeX by default, I suppose that non-Japanese users can experience the problems if sample file is provided. So I organize this email as the following 3 parts: A. The problems are described with the attached sample files so that anyone can actually experience the situation and examine what's going on in detail. B. The reasons of the problems are explained and their tentative fixes are proposed by the attached patches. C. The patches in B. fix problems only partially. The remaining problem is described and call for help is expressed. A. There are two problems. I will describe them in order. A-1. How to reproduce: (1) Start a new emacs session with env LC_ALL=3Dja_JP.SJIS emacs & and enable preview-latex. (2) Open the attached file "preview-error-test.tex", which has many \section lines. They are all commented out initially. (3) Uncomment any one of them and start preview-latex with C-c C-p C-d. Answer with n to "Cache preamble?" question. Then the error or bad result described on the next line of the uncommented \section will occur, e.g. Invalid regexp: "Unmatched ( or \\(" (4) Comment out again that \section line, uncomment another \section line, and try C-c C-p C-d again. Another error will come out. (5) Repeat the procedure described in (4). The process (3) will not work if your tex distribution lacks the Japanese LaTeX command binary "platex". In that case, please check up the following list. o Be sure to install TeXLive. Other tex distributions usually lack Japanese TeX engines. o If you (or the package manager you are using) didn't select a scheme large enough when installing TeXLive, Japanese LaTeX suite is not present on your machine. o Japanese TeX was first included in TeXLive several years ago. Thus if your TeXLive is older than that, Japanese LaTeX is not available. o If your ghostscript is not configured to handle PS file with Japanese font, the character in the preview image may be garbled. However, that is not the point I'm speaking of now. Rather, it is the error in regexp match preventing preview-latex to do the job that I'd like you to look at. A-2. How to reproduce: (1) This time, start a new emacs session with another locale env LC_ALL=3Dja_JP.eucJP emacs & and enable preview-latex. (2) Open the attached file "preview-error-test2.tex" and type C-c C-p C-d. This time, answer with y, not n, to "Cache preamble?" question. (3) Then the preview image will come out at wrong position. This example requires `platex' binary, too. B. The reasons and tentative fixes to the problems. B-1. Shift-JIS encoding problem. The bad results demonstrated in A-1 are caused by the nature of the coding system `japanese-shift-jis' (SJIS for short). SJIS is one of the major encodings for Japanese text and the standard encoding in the Japanese edition of windows for historical reasons. Basically, SJIS represents one Japanese character by two bytes. Examples of such two-byte sequences are, in hexadecimal form: 8E 82 and 81 5B . While the first byte of the sequence is always 8-bit (MSB on), the second is not necessarily so. In the above two examples, the second byte of the first example (82) is 8-bit, but the second one (5B) is 7-bit (MSB off). It is this 7-bit byte that brings the problems in A-1 above. Unfortunately, this 7-bit byte sometimes coincides with a regexp meta character. Thus it is interfered with `regexp-quote' in the function `preview-error-quote'. Roughly speaking, 'preview-error-quote' works along this flow: 1. Encodes string in the given coding system (i.e., SJIS in this example). 2. Replaces texts which begin with "^^" with the corresponding byte. 3. Supplies regular expression, for later use to locate the position in the buffer for putting the preview image, guarding the meta character in the original text by `regexp-quote'. 4. Decodes back the obtained string out of the coding system again. However, when `regexp-quote' in the item 3 quotes the 7-bit byte in SJIS, decoding back fails to gain the original character. The following example illustrates what is going on: (let* ((s1 (char-to-string (make-char 'japanese-jisx0208 37 63))) ;; s1 is multibyte Japanese string. ;; Encode s1 in SJIS. (s2 (encode-coding-string s1 'shift_jis)) ;; At this point s2 is "\203^". (s3 (regexp-quote s2)) ;; Now s3 is "\203\\^". ;; Then decode back assuming SJIS encoding. (s4 (decode-coding-string s3 'shift_jis))) (string-equal s1 s4)) =3D> nil ;; no longer goes back to the original string s1. The attached patch "preview-latex-fix" is my approach to fix this problem. It avoids to handle encoded string and does the relavant operations on the decoded string consistently. (In addition, it fixes a problem that `char-to-string' in the original code does not do the expected job in unicode-based emacs for chars of #x80 through #xFF. I changed to use `byte-to-string' instead when that function is available.) B-2. preview-latex drops the necessary command option. Japanese TeX command sometimes needs "-kanji" option to know the coding system of the given TeX file. In AUCTeX, this requirement is usually covered by the "%(kanjiopt)" construct in the following lines quoted from tex-jp.el: (setq TeX-engine-alist-builtin (append TeX-engine-alist-builtin '((ptex "pTeX" "ptex %(kanjiopt)" "platex %(kanjiopt)" "eptex") (jtex "jTeX" "jtex" "jlatex" nil) (uptex "upTeX" "euptex" "uplatex" "euptex")))) This "%(kanjiopt)" is changed to suitable option string like "-kanji XXX" when necessary. However, if the answer to the question "Cache preamble?" is y, preview-latex drops this option, which leads to the results described in A-2 above. The reason why the option "-kanji XXX" is missing is that `TeX-inline-preview-internal' transforms the command line passed to the OS shell by `(preview-do-replacements command preview-undump-replacements)' when caching preamble is enabled. Here the regular expression in `preview-undump-replacements' is designed to pick up the very first word of the value of the variable `command', leaving behind the option "-kanji XXX". The attached patch "preview-latex-fix2" aims to resolve this problem. It gives back the latex command options provided in the entry which `(TeX-engine-alist)' returns so that the command will run smoothly. C. Call for help There are still some problems remained. I think we should have a integrated framework which can serve for both preview-latex and tex-jp.el to determine the suitable process coding system. The coding systems to communicate with Japanese TeX command are not constant but vary with the environments. In fact it can only be determined at run time. Currently that situation is handled by the function `japanese-TeX-set-process-coding-system' in tex-jp.el during the normal runs. That function is set to the value of `TeX-after-start-process-function' and called after the TeX process starts. In that way, the process coding systems are set to suitable values under the environment at that point of time. However, the way preview-latex handles process coding systems sometimes conflicts with such setting. For example, `TeX-inline-preview-internal' overwrites the process coding system after `japanese-TeX-set-process-coding-system' does its job. (Current preview-latex uses the value of `TeX-japanese-process-output-coding-system', but it is not sufficient to rely on such constant value. In fact the default value of `TeX-japanese-process-output-coding-system' was changed to nil recently.) Even my patch "preview-latex-fix" is not sufficient about this point. The coding-system argument supplied to `decode-coding-string' should not simply be `buffer-file-coding-system'. I would appreciate if anyone who has deeper knowledge of AUCTeX could help to resolve all these coding system issues in preview-latex. Best regards, Ikumi Keita --=-=-= Content-Type: application/x-gzip Content-Disposition: attachment; filename=test-suite.tar.gz Content-Transfer-Encoding: base64 Content-Description: sample files tar+gzip'ed H4sIAJEUaVgAA+1aQW/byBXeq/UrHlgYoSCNSsmWnXix3WSzSRtgmxaxt9jCjJoROZKYUCTDIS0b Xh+2e91jgr22qNBzb+2hwN5aoAX6C3rqqYeeih576HszQ4qUZcfaZNNuYcIWLc6bN2/evPe9b4ZO UnEUiBkTaRqnLBMy62Ti+J03ejmOs7OzDXjv7va71bu6elvOFnTxo9fr9pxuD5xuf8fpv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juYTuc8TOlcZwOOWOiYuyyyNZMxiuI8k66xN W2V30zJnPoVjjVwTCM4Wu1P0va9erjE6Paf/FEBxXIJ4HF2/a7++rq/r6/r6f7n+A9pJ5K4ALAAA --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu May 18 09:32:27 2017 Received: (at 25322) by debbugs.gnu.org; 18 May 2017 13:32:27 +0000 Received: from localhost ([127.0.0.1]:52138 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dBLXX-00078E-CG for submit@debbugs.gnu.org; Thu, 18 May 2017 09:32:27 -0400 Received: from omx11.esk.m4.zaq.ne.jp ([220.152.48.5]:50977) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dBLXV-00077r-4s for 25322@debbugs.gnu.org; Thu, 18 May 2017 09:32:26 -0400 Received: from omx11.esk.m4.zaq.ne.jp ([220.152.49.27] [220.152.49.27]) by omx11.esk.m4.zaq.ne.jp with ESMTP id <20170518133217428.IKXI.3223.omx11.esk.m4.zaq.ne.jp@omx11.esk.m4.zaq.ne.jp>; Thu, 18 May 2017 22:32:17 +0900 Received: from smtpa11.esk.m4.zaq.ne.jp ([126.45.62.169] [126.45.62.169]) by smtpa11.esk.m4.zaq.ne.jp with ESMTP id <20170518133217377.KHUB.32178.smtpa11.esk.m4.zaq.ne.jp@smtpa11.esk.m4.zaq.ne.jp>; Thu, 18 May 2017 22:32:17 +0900 Received: from localhost (localhost [127.0.0.1]) by freebsd.vmware (Postfix) with ESMTP id 0A76D139800; Thu, 18 May 2017 22:32:17 +0900 (JST) From: Ikumi Keita To: 25322@debbugs.gnu.org Subject: Re: bug#25322: Acknowledgement ([AUCTeX-devel] preview-latex coding system problem with Japanese LaTeX) In-reply-to: References: <14538.1483281666@localhost> Comments: In-reply-to help-debbugs@gnu.org (GNU bug Tracking System) message dated "Sun, 01 Jan 2017 14:42:01 +0000." X-Mailer: MH-E 8.6; nmh 1.6; GNU Emacs 25.2.1 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Date: Thu, 18 May 2017 22:32:16 +0900 Message-ID: <11695.1495114336@localhost> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 25322 Cc: auctex-devel@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) --=-=-= Content-Type: text/plain Hi all, I worked on to resolve the remaining problems with respect to the incompatibility between preview-latex and Japanese LaTeX, and think that I managed to sort out them. Please take a look at the attached patch. My basic plan, in addtion to the part described before in http://lists.gnu.org/archive/html/auctex-devel/2016-09/msg00101.html , is (1) Implement in tex-buf.el a function to adjust the process coding system for normal tex documents as well as Japanese tex documents and make it the new default value for `TeX-after-start-process-function', which was previously used only for Japanese TeX by tex-jp.el. With this change, all tex processes invoked within AUCTeX are given suitable coding systems. (2) Make preview-latex to examine the coding system set in (1), and use it to decode later if it decides not to decode during receiving outputs and to store them as byte sequence in order to work around xemacs bug. To achieve this, the patch changes the meaning of the variable `preview-coding-system'. Its value used to be the "new" coding system, which is potentially `raw-text' preserving the byte sequence, but it's now the "original" coding system assigned to the process, which decodes the outputs properly. Any comments and suggestions are greatly welcome. > -- > 25322: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=25322 > GNU Bug Tracking System > Contact help-debbugs@gnu.org with problems --=-=-= Content-Type: application/x-gzip Content-Disposition: attachment; filename=preview-latex-coding-system-fix.gz Content-Transfer-Encoding: base64 Content-Description: make preview-latex compatible with Japanese LaTeX H4sICB6RHVkCA3ByZXZpZXctbGF0ZXgtY29kaW5nLXN5c3RlbS1maXgAvVprcxu3Ff0s/oV+QRhl RIZcVS87stM0dhQ7dZvXWM6MO2FUg7sgufZyQS+wotQ2/e099wLYF0nFaqf12CaJxQUu7uPcBzZJ Zz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zpqKDewdDxkw0h07BAGyk/S0E+xXmdINlmlhE1MdeKo QiumKld36joQnjpCzaktL9m42LBZ1zoouPnGjpeH7AIXrwQp5JvgjoUglCbxVF8rz8qlplccMkVV V1OrAG5WdcIpJozuaWYXupwvNk3K904BS9SqlDNXj22y4So3EIf3OsYiPVSHY/FO3U61LOiE1B+x usJQb6n0GoYnvQHqWaduTmaq1zoKmRp6q6BIfRCBxS5No1XrFki5oLb2FgR0XU8LNXZCMargQR2O 6KUUNpgNbbrxZxXAk/8G8DdskJSLkJLpvYka8A9pliOeosgtUno/K47VynKbkz0AS9WRI9Qc7kKM l3fkjB6usVR1UOnNg8K9SaVbm3p1Uw6Apd0Cfv1t8ahKAAmGPyzxBQbHvmXpwZbOgKMAs7R5TfL/ 9rlrfV+8rBiChWpGK0fWsOY3hLQHDh/JrNanJ/WbIH768xevv3v2GF6PY/grvzX5MhPEt3MAwJdu coAefwj3+iIeJ3ptotwOkU9qwhjsWb9Wc3fEItkQVg3r1naMCA9tc8BbaCrUl6sUlU1I6igX/vTF DELII/weE9ProERvQE0aqN5JxHGKOL+R4L5d1fktf2+kt+53nd2631xjnT0cH5+hyMJn6KXukUTL FSaK3+1/tf/n/fR3g698WUEDfzn/5uu3+4/23330MR4wwcC/fRKw2d2kkW2B4ORfj159cvrRHz55 sV98/vrrt44sGBZQ5B6WRdP9t3tpskpSgDz32Q7T/5PtuBqi41+wIdALohDExXf74/3+frb/4/4X +L/47pMniyDDO7qBYq/qStGVhS4+vK9K4hreScXw1iHCoYfOnKPdb0HWDaU7KwX/zgLVCx+WB7bu h1okfpp6a8qOCl1xGa5jA1GnsqYYnqulztM4XJ72/g3Ow44XKS0AAA== --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Fri May 19 06:40:56 2017 Received: (at 25322) by debbugs.gnu.org; 19 May 2017 10:40:56 +0000 Received: from localhost ([127.0.0.1]:54434 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dBfL6-0002dR-6F for submit@debbugs.gnu.org; Fri, 19 May 2017 06:40:56 -0400 Received: from eggs.gnu.org ([208.118.235.92]:44806) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dBfL5-0002dF-34 for 25322@debbugs.gnu.org; Fri, 19 May 2017 06:40:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dBfKw-0001te-Ni for 25322@debbugs.gnu.org; Fri, 19 May 2017 06:40:49 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_50,RCVD_IN_SORBS_SPAM, RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48429) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dBfKw-0001tN-KW for 25322@debbugs.gnu.org; Fri, 19 May 2017 06:40:46 -0400 Received: from mail-oi0-f51.google.com ([209.85.218.51]:35325) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1dBfKw-0001VE-8S for 25322@debbugs.gnu.org; Fri, 19 May 2017 06:40:46 -0400 Received: by mail-oi0-f51.google.com with SMTP id l18so87006847oig.2 for <25322@debbugs.gnu.org>; Fri, 19 May 2017 03:40:46 -0700 (PDT) X-Gm-Message-State: AODbwcDeYM6t098SHYw1K0XMbl7XQ43z/rO8MOVlCeClcOzuOs4I1eoG Lcf8M4RylgJd41k+7ijHE4tMB4dMkA== X-Received: by 10.202.65.194 with SMTP id o185mr4050947oia.10.1495190445246; Fri, 19 May 2017 03:40:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.17.117 with HTTP; Fri, 19 May 2017 03:40:04 -0700 (PDT) In-Reply-To: <11695.1495114336@localhost> References: <14538.1483281666@localhost> <11695.1495114336@localhost> From: =?UTF-8?Q?Mos=C3=A8_Giordano?= Date: Fri, 19 May 2017 12:40:04 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: bug#25322: Acknowledgement ([AUCTeX-devel] preview-latex coding system problem with Japanese LaTeX) To: Ikumi Keita Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -4.5 (----) X-Debbugs-Envelope-To: 25322 Cc: 25322@debbugs.gnu.org, auctex-devel X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.5 (----) Hi Keita, 2017-05-18 15:32 GMT+02:00 Ikumi Keita : > Hi all, > > I worked on to resolve the remaining problems with respect to the > incompatibility between preview-latex and Japanese LaTeX, and think that > I managed to sort out them. Please take a look at the attached patch. > > My basic plan, in addtion to the part described before in > http://lists.gnu.org/archive/html/auctex-devel/2016-09/msg00101.html > , is > (1) Implement in tex-buf.el a function to adjust the process coding > system for normal tex documents as well as Japanese tex documents > and make it the new default value for > `TeX-after-start-process-function', which was previously used only > for Japanese TeX by tex-jp.el. With this change, all tex processes > invoked within AUCTeX are given suitable coding systems. > (2) Make preview-latex to examine the coding system set in (1), and > use it to decode later if it decides not to decode during receiving > outputs and to store them as byte sequence in order to work around > xemacs bug. To achieve this, the patch changes the meaning of the > variable `preview-coding-system'. Its value used to be the "new" > coding system, which is potentially `raw-text' preserving the byte > sequence, but it's now the "original" coding system assigned to the > process, which decodes the outputs properly. > > Any comments and suggestions are greatly welcome. I only read the patch, didn't actually try it, but I'm confident you did it ;-) I didn't see anything clearly wrong. I have only a request: do you think it's possible to add a test for this fix? Bye, Mos=C3=A8 From debbugs-submit-bounces@debbugs.gnu.org Fri May 19 08:43:10 2017 Received: (at 25322) by debbugs.gnu.org; 19 May 2017 12:43:10 +0000 Received: from localhost ([127.0.0.1]:54540 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dBhFN-0000ev-8X for submit@debbugs.gnu.org; Fri, 19 May 2017 08:43:10 -0400 Received: from omx21.esk.m4.zaq.ne.jp ([220.152.48.10]:36083) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dBhFK-0000eP-EW for 25322@debbugs.gnu.org; Fri, 19 May 2017 08:43:07 -0400 Received: from omx21.esk.m4.zaq.ne.jp ([220.152.49.28] [220.152.49.28]) by omx21.esk.m4.zaq.ne.jp with ESMTP id <20170519124259001.LMJN.3130.omx21.esk.m4.zaq.ne.jp@omx21.esk.m4.zaq.ne.jp>; Fri, 19 May 2017 21:42:59 +0900 Received: from smtpa12.esk.m4.zaq.ne.jp ([126.45.62.169] [126.45.62.169]) by smtpa12.esk.m4.zaq.ne.jp with ESMTP id <20170519124258955.MBPK.3043.smtpa12.esk.m4.zaq.ne.jp@smtpa12.esk.m4.zaq.ne.jp>; Fri, 19 May 2017 21:42:58 +0900 Received: from localhost (localhost [127.0.0.1]) by freebsd.vmware (Postfix) with ESMTP id CE134139800; Fri, 19 May 2017 21:42:58 +0900 (JST) From: Ikumi Keita To: =?UTF-8?Q?Mos=C3=A8_Giordano?= Subject: Re: bug#25322: preview-latex coding system problem with Japanese LaTeX In-reply-to: References: <14538.1483281666@localhost> <11695.1495114336@localhost> Comments: In-reply-to =?UTF-8?Q?Mos=C3=A8_Giordano?= message dated "Fri, 19 May 2017 12:40:04 +0200." X-Mailer: MH-E 8.6; nmh 1.6; GNU Emacs 25.2.1 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Date: Fri, 19 May 2017 21:42:58 +0900 Message-ID: <17080.1495197778@localhost> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 25322 Cc: 25322@debbugs.gnu.org, auctex-devel X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) --=-=-= Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi Mos=E8, thanks for your reply! >>>>> Mos=E8 Giordano writes: > I only read the patch, didn't actually try it, but I'm confident you > did it ;-) I didn't see anything clearly wrong. I have only a > request: do you think it's possible to add a test for this fix? OK, I'll try. Maybe it takes a week or so. I'll also wait for possible comments from others to arrive during that. And I found another issue and made a patch which might be incorporated as well. Preview-latex on xemacs on w32 does not work except when `preview-image-type' is set to `dvipng'. It fails to call ghostscript correctly and ghostscript signals error without generating any image files. The attached patch fixes this. How do you think about this one? [Background of the patch] Preview-latex constructs path names like "circ.prv/tmpkWCzEN/preview.dsc" and tries to pass them to ghostscript. However, functions of xemacs on w32 uses backslash as path separator by default when the return value is a file name, and `preview-ps-quote-filename' is confused by this feature: (defun preview-ps-quote-filename (str &optional nonrel) "Make a PostScript string from filename STR. The file name is first made relative unless NONREL is not NIL." (unless nonrel (setq str (file-relative-name str))) (let ((index 0)) (while (setq index (string-match "[\\()]" str index)) (setq str (replace-match "\\\\\\&" t nil str) index (+ 2 index))) (concat "(" str ")"))) Here, `file-relative-name' converts slashes contained in `str' to backslashes, each of which is duplicated by the while loop after it. As a result, the path names actually passed to ghostscript become like "circ.prv\\tmpkWCzEN\\preview.dsc". That's the reason ghostscript signals error. The behavior of w32 xemacs functions with respect to path separator mentioned above is controlled by binding a suitable value to `directory-sep-char', so the attatched patch takes care of that. With this change, preview-latex does work as expected, at least for the xemacs 21.5 binary I found and installed on my machine. I tried applying the previous patch, and to my delight, it makes preview-latex to cooperate with Japanese LaTeX on w32 xemacs, too. Regards, Ikumi Keita --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=fix-xemacs-w32-preview Content-Description: ensure path separator to be slash diff --git a/prv-xemacs.el b/prv-xemacs.el --- a/prv-xemacs.el +++ b/prv-xemacs.el @@ -743,6 +743,12 @@ (nth 1 image) (nth 2 image))))) +(if (eq system-type 'windows-nt) + (defadvice preview-ps-quote-filename (around path-sep-to-slash) + "Make path separator to slash so that the function will not be confused." + (let ((directory-sep-char ?/)) + ad-do-it))) + (provide 'prv-xemacs) ;;; Local variables: --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Fri May 26 09:47:56 2017 Received: (at 25322) by debbugs.gnu.org; 26 May 2017 13:47:56 +0000 Received: from localhost ([127.0.0.1]:38796 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dEFau-0004hR-5F for submit@debbugs.gnu.org; Fri, 26 May 2017 09:47:56 -0400 Received: from omx25.esk.m4.zaq.ne.jp ([220.152.48.14]:35437) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dEFar-0004h9-U9 for 25322@debbugs.gnu.org; Fri, 26 May 2017 09:47:55 -0400 Received: from omx25.esk.m4.zaq.ne.jp ([220.152.49.27] [220.152.49.27]) by omx25.esk.m4.zaq.ne.jp with ESMTP id <20170526134746232.YXQD.3135.omx25.esk.m4.zaq.ne.jp@omx25.esk.m4.zaq.ne.jp>; Fri, 26 May 2017 22:47:46 +0900 Received: from smtpa11.esk.m4.zaq.ne.jp ([42.144.27.116] [42.144.27.116]) by smtpa11.esk.m4.zaq.ne.jp with ESMTP id <20170526134746181.VRIY.32178.smtpa11.esk.m4.zaq.ne.jp@smtpa11.esk.m4.zaq.ne.jp>; Fri, 26 May 2017 22:47:46 +0900 Received: from localhost (localhost [127.0.0.1]) by freebsd.vmware (Postfix) with ESMTP id 3D34C139800; Fri, 26 May 2017 22:47:46 +0900 (JST) From: Ikumi Keita Subject: Re: bug#25322: preview-latex coding system problem with Japanese LaTeX In-reply-to: <17080.1495197778@localhost> References: <14538.1483281666@localhost> <11695.1495114336@localhost> <17080.1495197778@localhost> Comments: In-reply-to Ikumi Keita message dated "Fri, 19 May 2017 21:42:58 +0900." X-Mailer: MH-E 8.6; nmh 1.6; GNU Emacs 25.2.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Date: Fri, 26 May 2017 22:47:46 +0900 Message-ID: <36990.1495806466@localhost> X-Spam-Score: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi Mosè and all, >> I only read the patch, didn't actually try it, but I'm confident you >> did it ;-) I didn't see anything clearly wrong. I have only a >> request: do you think it's possible to add a test for this fix? [...] Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 1.2 MISSING_HEADERS Missing To: header X-Debbugs-Envelope-To: 25322 Cc: 25322@debbugs.gnu.org, =?UTF-8?Q?Mos=C3=A8?= Giordano , auctex-devel X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi Mosè and all, >> I only read the patch, didn't actually try it, but I'm confident you >> did it ;-) I didn't see anything clearly wrong. I have only a >> request: do you think it's possible to add a test for this fix? [...] Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 1.2 MISSING_HEADERS Missing To: header Hi Mos=E8 and all, >> I only read the patch, didn't actually try it, but I'm confident you >> did it ;-) I didn't see anything clearly wrong. I have only a >> request: do you think it's possible to add a test for this fix? > OK, I'll try. Maybe it takes a week or so. I'll also wait for possible > comments from others to arrive during that. I wrote a suite of ERT files and commited them with the patches, since I heard no objections during the span. I also commited the patch in my previous message to make preview-latex to work with xemacs on w32 system. Since it was too difficult for me to write a full automated test which can complete entirely in batch mode because the functionality of preview-latex depends how images scattered on the buffer "look" like to human eyes, some of the tests are marked to be skipped in batch mode. Such tests requires manual execution instead. If someone finds difficulties with this commit, feel free to ask me. Best regards, Ikumi Keita From debbugs-submit-bounces@debbugs.gnu.org Fri May 26 11:34:21 2017 Received: (at 25322) by debbugs.gnu.org; 26 May 2017 15:34:21 +0000 Received: from localhost ([127.0.0.1]:39443 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dEHFt-0007Qy-0d for submit@debbugs.gnu.org; Fri, 26 May 2017 11:34:21 -0400 Received: from eggs.gnu.org ([208.118.235.92]:59370) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dEHFq-0007Qm-Kh for 25322@debbugs.gnu.org; Fri, 26 May 2017 11:34:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dEHFh-0006Ko-7C for 25322@debbugs.gnu.org; Fri, 26 May 2017 11:34:13 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: *** X-Spam-Status: No, score=3.7 required=5.0 tests=BAYES_50, MIME_CHARSET_FARAWAY, RCVD_IN_SORBS_SPAM,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45274) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dEHFh-0006KS-4R for 25322@debbugs.gnu.org; Fri, 26 May 2017 11:34:09 -0400 Received: from mail-oi0-f52.google.com ([209.85.218.52]:33214) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1dEHFg-0001ul-Ov for 25322@debbugs.gnu.org; Fri, 26 May 2017 11:34:08 -0400 Received: by mail-oi0-f52.google.com with SMTP id w10so17099710oif.0 for <25322@debbugs.gnu.org>; Fri, 26 May 2017 08:34:08 -0700 (PDT) X-Gm-Message-State: AODbwcC3NTpGt60/09Kv5mk7647+98L0Rk9ijuOpsHroJq0keuUbW7jm DnJmEXNY4cDUDHY5R8JUtCbxQ3EP1w== X-Received: by 10.157.1.166 with SMTP id e35mr1132330ote.58.1495812847633; Fri, 26 May 2017 08:34:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.17.117 with HTTP; Fri, 26 May 2017 08:33:27 -0700 (PDT) In-Reply-To: <36990.1495806466@localhost> References: <14538.1483281666@localhost> <11695.1495114336@localhost> <17080.1495197778@localhost> <36990.1495806466@localhost> From: =?UTF-8?Q?Mos=C3=A8_Giordano?= Date: Fri, 26 May 2017 17:33:27 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: bug#25322: preview-latex coding system problem with Japanese LaTeX To: Ikumi Keita Content-Type: multipart/mixed; boundary="94eb2c09d7126f2eb105506f11cf" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -4.5 (----) X-Debbugs-Envelope-To: 25322 Cc: 25322@debbugs.gnu.org, auctex-devel X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.5 (----) --94eb2c09d7126f2eb105506f11cf Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi! 2017-05-26 15:47 GMT+02:00 Ikumi Keita : > I wrote a suite of ERT files and commited them with the patches, since I > heard no objections during the span. I also commited the patch in my > previous message to make preview-latex to work with xemacs on w32 > system. > > Since it was too difficult for me to write a full automated test which > can complete entirely in batch mode because the functionality of > preview-latex depends how images scattered on the buffer "look" like to > human eyes, some of the tests are marked to be skipped in batch mode. > Such tests requires manual execution instead. I know that tests aren't always easy to write, especially for stuff that requires interaction. I don't ask tests at any cost, but when it's possible to write them, they're definitely useful to prevent future failures ;-) > If someone finds difficulties with this commit, feel free to ask me. Indeed I have a problem: all non skipped tests in japanese/preview-latex.el fail for me. Attached you can find the log, if it can help you. Bye, Mos=C3=A8 --94eb2c09d7126f2eb105506f11cf Content-Type: text/x-log; charset="MACINTOSH"; name="preview-latex.log" Content-Disposition: attachment; filename="preview-latex.log" Content-Transfer-Encoding: base64 X-Attachment-Id: f_j360919f0 TG9hZGluZyAwMGRlYmlhbi12YXJzLi4uCkxvYWRpbmcgL2V0Yy9lbWFjcy9zaXRlLXN0YXJ0LmQv NTBhdXRvY29uZi5lbCAoc291cmNlKS4uLgpMb2FkaW5nIC9ldGMvZW1hY3Mvc2l0ZS1zdGFydC5k LzUwY21ha2UtZGF0YS5lbCAoc291cmNlKS4uLgpMb2FkaW5nIC9ldGMvZW1hY3Mvc2l0ZS1zdGFy dC5kLzUwZGljdGlvbmFyaWVzLWNvbW1vbi5lbCAoc291cmNlKS4uLgpMb2FkaW5nIGRlYmlhbi1p c3BlbGwuLi4KTG9hZGluZyAvdmFyL2NhY2hlL2RpY3Rpb25hcmllcy1jb21tb24vZW1hY3Nlbi1p c3BlbGwtZGVmYXVsdC5lbCAoc291cmNlKS4uLgpMb2FkaW5nIC92YXIvY2FjaGUvZGljdGlvbmFy aWVzLWNvbW1vbi9lbWFjc2VuLWlzcGVsbC1kaWN0cy5lbCAoc291cmNlKS4uLgpMb2FkaW5nIC9l dGMvZW1hY3Mvc2l0ZS1zdGFydC5kLzUwZW1hY3M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GQUlMRUQgIDcvOCAgamFwYW5lc2UtcHJldmlldy1wcm9jZXNzLWNvZGluZy1zeXN0ZW0KICBz a2lwcGVkICA4LzggIGphcGFuZXNlLXByZXZpZXctc2hpZnQtamlzCgpSYW4gOCB0ZXN0cywgMCBy ZXN1bHRzIGFzIGV4cGVjdGVkLCA1IHVuZXhwZWN0ZWQsIDMgc2tpcHBlZCAoMjAxNy0wNS0yNiAx NzoyOToxNiswMjAwKQoKNSB1bmV4cGVjdGVkIHJlc3VsdHM6CiAgIEZBSUxFRCAgamFwYW5lc2Ut cHJldmlldy1jb252ZXJ0LV5eYWIKICAgRkFJTEVEICBqYXBhbmVzZS1wcmV2aWV3LWRlY29kZS1e XmFiCiAgIEZBSUxFRCAgamFwYW5lc2UtcHJldmlldy1lcnJvci1xdW90ZS1zaGlmdC1qaXMKICAg RkFJTEVEICBqYXBhbmVzZS1wcmV2aWV3LXByZXNlcnZlLWthbmppLW9wdGlvbjIKICAgRkFJTEVE ICBqYXBhbmVzZS1wcmV2aWV3LXByb2Nlc3MtY29kaW5nLXN5c3RlbQoKMyBza2lwcGVkIHJlc3Vs dHM6CiAgU0tJUFBFRCAgamFwYW5lc2UtcHJldmlldy1kaWZmZXJlbnQtY29kaW5nLXN5c3RlbQog IFNLSVBQRUQgIGphcGFuZXNlLXByZXZpZXctcHJlc2VydmUta2Fuamktb3B0aW9uCiAgU0tJUFBF RCAgamFwYW5lc2UtcHJldmlldy1zaGlmdC1qaXMKCg== --94eb2c09d7126f2eb105506f11cf-- From debbugs-submit-bounces@debbugs.gnu.org Fri May 26 13:11:15 2017 Received: (at 25322) by debbugs.gnu.org; 26 May 2017 17:11:15 +0000 Received: from localhost ([127.0.0.1]:39501 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dEIlf-0001K6-A9 for submit@debbugs.gnu.org; Fri, 26 May 2017 13:11:15 -0400 Received: from omx11.esk.m4.zaq.ne.jp ([220.152.48.5]:37756) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dEIlc-0001Jq-Tg for 25322@debbugs.gnu.org; Fri, 26 May 2017 13:11:14 -0400 Received: from omx11.esk.m4.zaq.ne.jp ([220.152.49.33] [220.152.49.33]) by omx11.esk.m4.zaq.ne.jp with ESMTP id <20170526171105239.XXFL.3223.omx11.esk.m4.zaq.ne.jp@omx11.esk.m4.zaq.ne.jp>; Sat, 27 May 2017 02:11:05 +0900 Received: from smtpa22.esk.m4.zaq.ne.jp ([42.144.27.116] [42.144.27.116]) by smtpa22.esk.m4.zaq.ne.jp with ESMTP id <20170526171105193.UZUT.25520.smtpa22.esk.m4.zaq.ne.jp@smtpa22.esk.m4.zaq.ne.jp>; Sat, 27 May 2017 02:11:05 +0900 Received: from localhost (localhost [127.0.0.1]) by freebsd.vmware (Postfix) with ESMTP id 1F287139800; Sat, 27 May 2017 02:11:05 +0900 (JST) From: Ikumi Keita To: =?UTF-8?Q?Mos=C3=A8_Giordano?= Subject: Re: bug#25322: preview-latex coding system problem with Japanese LaTeX In-reply-to: References: <14538.1483281666@localhost> <11695.1495114336@localhost> <17080.1495197778@localhost> <36990.1495806466@localhost> Comments: In-reply-to =?UTF-8?Q?Mos=C3=A8_Giordano?= message dated "Fri, 26 May 2017 17:33:27 +0200." X-Mailer: MH-E 8.6; nmh 1.6; GNU Emacs 25.2.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Date: Sat, 27 May 2017 02:11:05 +0900 Message-ID: <38461.1495818665@localhost> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 25322 Cc: 25322@debbugs.gnu.org, auctex-devel X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Hi Mos=E8, thanks for your response! >>>>> Mos=E8 Giordano writes: > Indeed I have a problem: all non skipped tests in > japanese/preview-latex.el fail for me. Attached you can find the log, > if it can help you. It seems that the latest commit is not yet installed on your box. I encountered similar fails with AUCTeX before the update. My tests only pass with the updated codes. Bye, Ikumi Keita From debbugs-submit-bounces@debbugs.gnu.org Fri May 26 13:16:53 2017 Received: (at 25322) by debbugs.gnu.org; 26 May 2017 17:16:53 +0000 Received: from localhost ([127.0.0.1]:39509 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dEIr6-0001TO-Um for submit@debbugs.gnu.org; Fri, 26 May 2017 13:16:53 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55769) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dEIr5-0001TC-J0 for 25322@debbugs.gnu.org; Fri, 26 May 2017 13:16:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dEIqv-0002vq-HD for 25322@debbugs.gnu.org; Fri, 26 May 2017 13:16:46 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_50,RCVD_IN_SORBS_SPAM, RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47276) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dEIqv-0002vb-Dk for 25322@debbugs.gnu.org; Fri, 26 May 2017 13:16:41 -0400 Received: from mail-oi0-f54.google.com ([209.85.218.54]:35136) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1dEIqv-0005q3-06 for 25322@debbugs.gnu.org; Fri, 26 May 2017 13:16:41 -0400 Received: by mail-oi0-f54.google.com with SMTP id l18so20528631oig.2 for <25322@debbugs.gnu.org>; Fri, 26 May 2017 10:16:40 -0700 (PDT) X-Gm-Message-State: AODbwcDTuuYcWzGbF9CBNFPzqPHNrg4ocRiv/q3UQdxDx+fqOImx4hh6 mBoBnGvUS9OYpo3bdORaVKmHG3QjuA== X-Received: by 10.157.20.250 with SMTP id r55mr1429145otr.28.1495818995073; Fri, 26 May 2017 10:16:35 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.17.117 with HTTP; Fri, 26 May 2017 10:15:54 -0700 (PDT) In-Reply-To: <38461.1495818665@localhost> References: <14538.1483281666@localhost> <11695.1495114336@localhost> <17080.1495197778@localhost> <36990.1495806466@localhost> <38461.1495818665@localhost> From: =?UTF-8?Q?Mos=C3=A8_Giordano?= Date: Fri, 26 May 2017 19:15:54 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: bug#25322: preview-latex coding system problem with Japanese LaTeX To: Ikumi Keita Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -4.5 (----) X-Debbugs-Envelope-To: 25322 Cc: 25322@debbugs.gnu.org, auctex-devel X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.5 (----) 2017-05-26 19:11 GMT+02:00 Ikumi Keita : > Hi Mos=C3=A8, thanks for your response! > >>>>>> Mos=C3=A8 Giordano writes: >> Indeed I have a problem: all non skipped tests in >> japanese/preview-latex.el fail for me. Attached you can find the log, >> if it can help you. > > It seems that the latest commit is not yet installed on your box. I > encountered similar fails with AUCTeX before the update. My tests only > pass with the updated codes. The repo was up-to-date, but I had to make distclean before recompiling AUCTeX (before I run only make clean, which wasn't sufficient). Now the tests pass. Thanks and sorry for the noise! Bye, Mos=C3=A8 From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 31 09:33:40 2018 Received: (at control) by debbugs.gnu.org; 31 Oct 2018 13:33:40 +0000 Received: from localhost ([127.0.0.1]:56343 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gHqct-0006jU-Sx for submit@debbugs.gnu.org; Wed, 31 Oct 2018 09:33:40 -0400 Received: from smtp1.inetd.co.jp ([210.129.88.11]:60390) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gHqcr-0006jK-O1 for control@debbugs.gnu.org; Wed, 31 Oct 2018 09:33:38 -0400 Received: from localhost (203-165-248-246.rev.home.ne.jp [203.165.248.246]) by smtp1.inetd.co.jp (Postfix) with ESMTPA id 1CFAF88 for ; Wed, 31 Oct 2018 22:33:36 +0900 (JST) To: control@debbugs.gnu.org From: Ikumi Keita Subject: control message for bug #25322 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <56162.1540992815.1@localhost> Date: Wed, 31 Oct 2018 22:33:35 +0900 Message-ID: <56163.1540992815@localhost> X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) close 25322 From unknown Sat Jun 21 05:15:11 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 29 Nov 2018 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator