From debbugs-submit-bounces@debbugs.gnu.org Wed May 06 11:52:28 2015 Received: (at submit) by debbugs.gnu.org; 6 May 2015 15:52:29 +0000 Received: from localhost ([127.0.0.1]:36426 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yq1cY-0004NS-O0 for submit@debbugs.gnu.org; Wed, 06 May 2015 11:52:28 -0400 Received: from eggs.gnu.org ([208.118.235.92]:49834) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YpuvI-0007ul-L5 for submit@debbugs.gnu.org; Wed, 06 May 2015 04:43:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YpuvB-0006fn-Q4 for submit@debbugs.gnu.org; Wed, 06 May 2015 04:43:15 -0400 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,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:44949) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YpuvB-0006fe-Mq for submit@debbugs.gnu.org; Wed, 06 May 2015 04:43:13 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34995) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ypuv7-0006ID-03 for bug-auctex@gnu.org; Wed, 06 May 2015 04:43:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ypuv0-0006Zl-Ve for bug-auctex@gnu.org; Wed, 06 May 2015 04:43:08 -0400 Received: from forward12j.cmail.yandex.net ([5.255.227.176]:59230) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ypuv0-0006Ym-IJ for bug-auctex@gnu.org; Wed, 06 May 2015 04:43:02 -0400 Received: from web22j.yandex.ru (web22j.yandex.ru [IPv6:2a02:6b8:0:1619::322]) by forward12j.cmail.yandex.net (Yandex) with ESMTP id 434D421DB1 for ; Wed, 6 May 2015 11:42:59 +0300 (MSK) Received: from 127.0.0.1 (localhost [127.0.0.1]) by web22j.yandex.ru (Yandex) with ESMTP id CD3E24801C2E; Wed, 6 May 2015 11:42:58 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1430901778; bh=AC5hrqT4wMWqgOIPt8Rg7Dky76HOrVGgFiONtKpDyRc=; h=From:To:Subject:Date; b=SOuTbDjI+EeTHSOKZffGdZs2gB0ulJxvKcOjdhtFdfGhNyQDvZDThb9RtALIULqc2 jyMTPi0K2MUjW8wZsmfzwfjOX3cIFIwZrBsKBLUOVEaK9lsl9F9AyLazZ02BSXhUmm QQ3r8cBYv5YX47C8nY+ZPXHbkyxSHljZncc0nr/c= Received: by web22j.yandex.ru with HTTP; Wed, 06 May 2015 11:42:58 +0300 From: =?utf-8?B?0JTQsNGA0LjQviDQg9C+0YDRk9C10LLRgdC60Lg=?= Envelope-From: gjorgjevski-dario@yandex.com To: bug-auctex@gnu.org Subject: 11.88.5; TeX-view-program-list generated in wrong format by Customize MIME-Version: 1.0 Message-Id: <4439011430901778@web22j.yandex.ru> X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Wed, 06 May 2015 10:42:58 +0200 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 06 May 2015 11:52:25 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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 (----) Remember to cover the basics, that is, what you expected to happen and what in fact did happen. Be sure to consult the FAQ section in the manual before submitting a bug report. In addition check if the bug is reproducable with an up-to-date version of AUCTeX. So please upgrade to the version available from http://www.gnu.org/software/auctex/ if your installation is older than the one available from the web site. If the bug is triggered by a specific (La)TeX file, you should try to produce a minimal sample file showing the problem and include it in your report. Your report will be posted for the auctex package at the GNU bug tracker. Visit http://debbugs.gnu.org/cgi/pkgreport.cgi?pkg=auctex to browse existing AUCTeX bugs. ------------------------------------------------------------------------ Consider the following customization of the TeX-view-program-list variable: http://i.imgur.com/xP6Cx5k.png The generated Lisp expression looks like so: '(("SumatraPDF" (("SumatraPDF.exe" (mode-io-correlate " -forward-search %b %n") " %o")) "SumatraPDF.exe")) This causes TeX-view-command-raw (tex.el, line 1354) to go into an *infinite loop*. I do not know why the infinite loop occurs, however, I know that changing (dolist (elt car spec) to (dolist (elt (car spec)) solves the issue. This is because there are double parens around the command line. Changing them manually to a single pair of parens solves the problem, too. Emacs : GNU Emacs 25.0.50.1 (x86_64-w64-mingw32) of 2015-04-24 on CAB8 Package: 11.88.5 current state: ============== (setq AUCTeX-date "2015-05-01" window-system 'w32 LaTeX-version "2e" TeX-style-path '("~/.emacs.d/auctex" "c:/Users/gjorg_000/.emacs.d/elpa/auctex-11.88.5/style" "c:/Users/gjorg_000/.emacs.d/auctex/auto" "c:/Users/gjorg_000/.emacs.d/auctex/style" "auto" "style") TeX-auto-save nil TeX-parse-self nil TeX-master t TeX-command-list '(("TeX" "%(PDF)%(tex) %(file-line-error) %(extraopts) %`%S%(PDFout)%(mode)%' %t" TeX-run-TeX nil (plain-tex-mode ams-tex-mode texinfo-mode) :help "Run plain TeX") ("LaTeX" "%`%l%(mode)%' %t" TeX-run-TeX nil (latex-mode doctex-mode) :help "Run LaTeX") ("Makeinfo" "makeinfo %(extraopts) %t" TeX-run-compile nil (texinfo-mode) :help "Run Makeinfo with Info output") ("Makeinfo HTML" "makeinfo %(extraopts) --html %t" TeX-run-compile nil (texinfo-mode) :help "Run Makeinfo with HTML output") ("AmSTeX" "%(PDF)amstex %(extraopts) %`%S%(PDFout)%(mode)%' %t" TeX-run-TeX nil (ams-tex-mode) :help "Run AMSTeX") ("ConTeXt" "texexec --once --texutil %(extraopts) %(execopts)%t" TeX-run-TeX nil (context-mode) :help "Run ConTeXt once") ("ConTeXt Full" "texexec %(extraopts) %(execopts)%t" TeX-run-TeX nil (context-mode) :help "Run ConTeXt until completion") ("BibTeX" "bibtex %s" TeX-run-BibTeX nil t :help "Run BibTeX") ("Biber" "biber %s" TeX-run-Biber nil t :help "Run Biber") ("View" "%V" TeX-run-discard-or-function t t :help "Run Viewer") ("Print" "%p" TeX-run-command t t :help "Print the file") ("Queue" "%q" TeX-run-background nil t :help "View the printer queue" :visible TeX-queue-command) ("File" "%(o?)dvips %d -o %f " TeX-run-command t t :help "Generate PostScript file") ("Index" "makeindex %s" TeX-run-command nil t :help "Create index file") ("Xindy" "texindy %s" TeX-run-command nil t :help "Run xindy to create index file") ("Check" "lacheck %s" TeX-run-compile nil (latex-mode) :help "Check LaTeX file for correctness") ("ChkTeX" "chktex -v6 %s" TeX-run-compile nil (latex-mode) :help "Check LaTeX file for common mistakes") ("Spell" "(TeX-ispell-document \"\")" TeX-run-function nil t :help "Spell-check the document") ("Clean" "TeX-clean" TeX-run-function nil t :help "Delete generated intermediate files") ("Clean All" "(TeX-clean t)" TeX-run-function nil t :help "Delete generated intermediate and output files") ("Other" "" TeX-run-command t t :help "Run an arbitrary command")) ) From debbugs-submit-bounces@debbugs.gnu.org Thu May 07 02:39:48 2015 Received: (at 20513) by debbugs.gnu.org; 7 May 2015 06:39:48 +0000 Received: from localhost ([127.0.0.1]:36784 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YqFTH-0005S8-Es for submit@debbugs.gnu.org; Thu, 07 May 2015 02:39:47 -0400 Received: from deliver.uni-koblenz.de ([141.26.64.15]:58531) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YqFTF-0005S0-8C for 20513@debbugs.gnu.org; Thu, 07 May 2015 02:39:46 -0400 Received: from thinkpad-t440p (dhcp191.uni-koblenz.de [141.26.71.191]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTPSA id D39B51A8485; Thu, 7 May 2015 08:39:43 +0200 (CEST) From: Tassilo Horn To: =?utf-8?B?0JTQsNGA0LjQviDQg9C+0YDRk9C10LLRgdC60Lg=?= Subject: Re: bug#20513: 11.88.5; TeX-view-program-list generated in wrong format by Customize References: <4439011430901778@web22j.yandex.ru> Date: Thu, 07 May 2015 08:39:43 +0200 In-Reply-To: <4439011430901778@web22j.yandex.ru> (=?utf-8?B?ItCU0LDRgNC4?= =?utf-8?B?0L4g0IPQvtGA0ZPQtdCy0YHQutC4Iidz?= message of "Wed, 06 May 2015 10:42:58 +0200") Message-ID: <87zj5gnb68.fsf@gnu.org> User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 20513 Cc: 20513@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.3 (-) =D0=94=D0=B0=D1=80=D0=B8=D0=BE =D0=83=D0=BE=D1=80=D1=93=D0=B5=D0=B2=D1=81= =D0=BA=D0=B8 writes: Hi! > Consider the following customization of the TeX-view-program-list > variable: http://i.imgur.com/xP6Cx5k.png > The generated Lisp expression looks like so: > '(("SumatraPDF" > (("SumatraPDF.exe" > (mode-io-correlate " -forward-search %b %n") > " %o")) > "SumatraPDF.exe")) > > This causes TeX-view-command-raw (tex.el, line 1354) to go into an > *infinite loop*. I do not know why the infinite loop occurs, however, > I know that changing > > (dolist (elt car spec) > to > (dolist (elt (car spec)) > > solves the issue. The former line looks strange, indeed. However, it seems you are looking at a different tex.el than the one that ships with ELPA AUCTeX 11.88.5. In there, the `TeX-view-command-raw' definition is: --8<---------------cut here---------------start------------->8--- (defun TeX-view-command-raw () "Choose a viewer and return its unexpanded command string." (let ((selection TeX-view-program-selection) entry viewer item executable spec command) ;; Find the appropriate viewer. (while (and (setq entry (pop selection)) (not viewer)) (when (TeX-view-match-predicate (car entry)) (setq viewer (cadr entry)))) (unless viewer (error "No matching viewer found")) (setq item (assoc viewer (append TeX-view-program-list TeX-view-program-list-builtin)) ;; Get the command line or function spec. spec (cadr item) ;; Get the name of the executable(s) associated to the viewer. executable (nth 2 item)) ;; Check the executable exists. (unless (or (null executable) (cond ((stringp executable) (executable-find (TeX-command-expand executable nil))) ((listp executable) (catch 'notfound (dolist (exec executable t) (unless (executable-find (TeX-command-expand exec nil= )) (throw 'notfound nil))))))) (error (format "Cannot find %S viewer. \ Select another one in `TeX-view-program-selection'" viewer))) (cond ((functionp spec) ;; Converting the function call to a string is ugly, but ;; the backend currently only supports strings. (prin1-to-string spec)) ((stringp spec) spec) ((null spec) (error (format "Unknown %S viewer. \ Check the `TeX-view-program-selection' variable" viewer))) (t ;; Build the unexpanded command line. Pieces with predicates are ;; only added if the predicate is evaluated positively. (dolist (elt spec) (cond ((stringp elt) (setq command (concat command elt))) ((listp elt) (when (TeX-view-match-predicate (car elt)) (setq command (concat command (cadr elt))))))) command)))) --8<---------------cut here---------------end--------------->8--- So as you can see, no (dolist (elt car spec) ...) anywhere. Have a look at `M-x list-load-path-shadows' to check if there's some older, outdated auctex version around which messes with 11.88.5. Bye, Tassilo From debbugs-submit-bounces@debbugs.gnu.org Thu May 07 04:09:07 2015 Received: (at 20513) by debbugs.gnu.org; 7 May 2015 08:09:07 +0000 Received: from localhost ([127.0.0.1]:36958 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YqGrj-0000mg-0B for submit@debbugs.gnu.org; Thu, 07 May 2015 04:09:07 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:59682 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YqGrh-0000mY-8Y for 20513@debbugs.gnu.org; Thu, 07 May 2015 04:09:06 -0400 Received: from mail-ig0-f173.google.com ([209.85.213.173]:38808) by fencepost.gnu.org with esmtpsa (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1YqGrg-0003HT-Hr for 20513@debbugs.gnu.org; Thu, 07 May 2015 04:09:04 -0400 Received: by igbhj9 with SMTP id hj9so38826201igb.1 for <20513@debbugs.gnu.org>; Thu, 07 May 2015 01:09:03 -0700 (PDT) X-Received: by 10.107.27.210 with SMTP id b201mr3280592iob.42.1430986143858; Thu, 07 May 2015 01:09:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.236.10 with HTTP; Thu, 7 May 2015 01:08:23 -0700 (PDT) In-Reply-To: <87zj5gnb68.fsf@gnu.org> References: <4439011430901778@web22j.yandex.ru> <87zj5gnb68.fsf@gnu.org> From: =?UTF-8?Q?Mos=C3=A8_Giordano?= Date: Thu, 7 May 2015 10:08:23 +0200 Message-ID: Subject: Re: bug#20513: 11.88.5; TeX-view-program-list generated in wrong format by Customize To: Tassilo Horn Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 20513 Cc: =?UTF-8?B?0JTQsNGA0LjQviDQg9C+0YDRk9C10LLRgdC60Lg=?= , 20513@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -5.0 (-----) Hi Tassilo, 2015-05-07 8:39 GMT+02:00 Tassilo Horn : > =D0=94=D0=B0=D1=80=D0=B8=D0=BE =D0=83=D0=BE=D1=80=D1=93=D0=B5=D0=B2=D1=81= =D0=BA=D0=B8 writes: > > Hi! > >> Consider the following customization of the TeX-view-program-list >> variable: http://i.imgur.com/xP6Cx5k.png >> The generated Lisp expression looks like so: >> '(("SumatraPDF" >> (("SumatraPDF.exe" >> (mode-io-correlate " -forward-search %b %n") >> " %o")) >> "SumatraPDF.exe")) >> >> This causes TeX-view-command-raw (tex.el, line 1354) to go into an >> *infinite loop*. I do not know why the infinite loop occurs, however, >> I know that changing >> >> (dolist (elt car spec) >> to >> (dolist (elt (car spec)) >> >> solves the issue. > > The former line looks strange, indeed. However, it seems you are > looking at a different tex.el than the one that ships with ELPA AUCTeX > 11.88.5. I agree, but I confirm `TeX-view-program-list' is built in the wrong way when changed with customize interface, as reported by =D0=94=D0=B0=D1= =80=D0=B8=D0=BE. It worked as expected before commit * 59ccf34 (2014-11-28) Check the viewer executable exists before opening= it. where the customization type of the variable was changed from an alist to a repeated list, but the command part of the type hasn't been modified. How should it be fixed? Bye, Mos=C3=A8 From debbugs-submit-bounces@debbugs.gnu.org Thu May 07 04:51:53 2015 Received: (at 20513) by debbugs.gnu.org; 7 May 2015 08:51:53 +0000 Received: from localhost ([127.0.0.1]:36974 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YqHX6-0001q0-PM for submit@debbugs.gnu.org; Thu, 07 May 2015 04:51:53 -0400 Received: from deliver.uni-koblenz.de ([141.26.64.15]:39669) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YqHX4-0001po-5t for 20513@debbugs.gnu.org; Thu, 07 May 2015 04:51:51 -0400 Received: from thinkpad-t440p (dhcp191.uni-koblenz.de [141.26.71.191]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTPSA id BF6FE1A849C; Thu, 7 May 2015 10:51:47 +0200 (CEST) From: Tassilo Horn To: =?utf-8?Q?Mos=C3=A8?= Giordano Subject: Re: bug#20513: 11.88.5; TeX-view-program-list generated in wrong format by Customize References: <4439011430901778@web22j.yandex.ru> <87zj5gnb68.fsf@gnu.org> Date: Thu, 07 May 2015 10:51:47 +0200 In-Reply-To: (=?utf-8?Q?=22Mos=C3=A8?= Giordano"'s message of "Thu, 7 May 2015 10:08:23 +0200") Message-ID: <87vbg4n524.fsf@gnu.org> User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 20513 Cc: =?utf-8?B?0JTQsNGA0LjQviDQg9C+0YDRk9C10LLRgdC60Lg=?= , 20513@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.3 (-) Mos=C3=A8 Giordano writes: > I agree, but I confirm `TeX-view-program-list' is built in the wrong > way when changed with customize interface, as reported by =D0=94=D0=B0=D1= =80=D0=B8=D0=BE. It > worked as expected before commit > > * 59ccf34 (2014-11-28) Check the viewer executable exists before openi= ng it. > > where the customization type of the variable was changed from an alist > to a repeated list, but the command part of the type hasn't been > modified. How should it be fixed? I think the problem is that the command part is a group of a choice where one choice is a list again. A group is a list, and list is a list, so command parts will result in ((stuff)) where it should be just (stuff). So can't you simply remove the outer (group :tag "Command parts" and that's it? Bye, Tassilo From debbugs-submit-bounces@debbugs.gnu.org Thu May 07 04:56:30 2015 Received: (at 20513) by debbugs.gnu.org; 7 May 2015 08:56:30 +0000 Received: from localhost ([127.0.0.1]:36979 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YqHba-0001x0-AN for submit@debbugs.gnu.org; Thu, 07 May 2015 04:56:30 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:33011 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YqHbX-0001wr-Ei for 20513@debbugs.gnu.org; Thu, 07 May 2015 04:56:27 -0400 Received: from mail-ie0-f175.google.com ([209.85.223.175]:36651) by fencepost.gnu.org with esmtpsa (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1YqHbW-0008Dx-Ue for 20513@debbugs.gnu.org; Thu, 07 May 2015 04:56:27 -0400 Received: by iecnq11 with SMTP id nq11so34215182iec.3 for <20513@debbugs.gnu.org>; Thu, 07 May 2015 01:56:26 -0700 (PDT) X-Received: by 10.43.171.202 with SMTP id nv10mr2600372icc.30.1430988986051; Thu, 07 May 2015 01:56:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.236.10 with HTTP; Thu, 7 May 2015 01:55:45 -0700 (PDT) In-Reply-To: <87vbg4n524.fsf@gnu.org> References: <4439011430901778@web22j.yandex.ru> <87zj5gnb68.fsf@gnu.org> <87vbg4n524.fsf@gnu.org> From: =?UTF-8?Q?Mos=C3=A8_Giordano?= Date: Thu, 7 May 2015 10:55:45 +0200 Message-ID: Subject: Re: bug#20513: 11.88.5; TeX-view-program-list generated in wrong format by Customize To: Tassilo Horn Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 20513 Cc: =?UTF-8?B?0JTQsNGA0LjQviDQg9C+0YDRk9C10LLRgdC60Lg=?= , 20513 <20513@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -5.0 (-----) 2015-05-07 10:51 GMT+02:00 Tassilo Horn : > Mos=C3=A8 Giordano writes: > >> I agree, but I confirm `TeX-view-program-list' is built in the wrong >> way when changed with customize interface, as reported by =D0=94=D0=B0= =D1=80=D0=B8=D0=BE. It >> worked as expected before commit >> >> * 59ccf34 (2014-11-28) Check the viewer executable exists before open= ing it. >> >> where the customization type of the variable was changed from an alist >> to a repeated list, but the command part of the type hasn't been >> modified. How should it be fixed? > > I think the problem is that the command part is a group of a choice > where one choice is a list again. A group is a list, and list is a > list, so command parts will result in ((stuff)) where it should be just > (stuff). So can't you simply remove the outer > > (group :tag "Command parts" > > and that's it? That's what I thought, but why it used to work when the type was an alist? Back then, also using command parts resulted in (stuff) instead of ((stuff)). What am I missing? Bye, Mos=C3=A8 From debbugs-submit-bounces@debbugs.gnu.org Thu May 07 05:00:39 2015 Received: (at 20513) by debbugs.gnu.org; 7 May 2015 09:00:39 +0000 Received: from localhost ([127.0.0.1]:36983 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YqHfZ-0002AH-Bv for submit@debbugs.gnu.org; Thu, 07 May 2015 05:00:38 -0400 Received: from deliver.uni-koblenz.de ([141.26.64.15]:40191) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YqHfV-00028m-0s for 20513@debbugs.gnu.org; Thu, 07 May 2015 05:00:34 -0400 Received: from thinkpad-t440p (dhcp191.uni-koblenz.de [141.26.71.191]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTPSA id 7017F1A84A0; Thu, 7 May 2015 11:00:32 +0200 (CEST) From: Tassilo Horn To: =?utf-8?Q?Mos=C3=A8?= Giordano Subject: Re: bug#20513: 11.88.5; TeX-view-program-list generated in wrong format by Customize References: <4439011430901778@web22j.yandex.ru> <87zj5gnb68.fsf@gnu.org> <87vbg4n524.fsf@gnu.org> Date: Thu, 07 May 2015 11:00:32 +0200 In-Reply-To: (=?utf-8?Q?=22Mos=C3=A8?= Giordano"'s message of "Thu, 7 May 2015 10:55:45 +0200") Message-ID: <87r3qsn4nj.fsf@gnu.org> User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 20513 Cc: =?utf-8?B?0JTQsNGA0LjQviDQg9C+0YDRk9C10LLRgdC60Lg=?= , 20513 <20513@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.3 (-) Mos=C3=A8 Giordano writes: >> I think the problem is that the command part is a group of a choice >> where one choice is a list again. A group is a list, and list is a >> list, so command parts will result in ((stuff)) where it should be >> just (stuff). So can't you simply remove the outer >> >> (group :tag "Command parts" >> >> and that's it? > > That's what I thought, but why it used to work when the type was an > alist? Back then, also using command parts resulted in (stuff) > instead of ((stuff)). What am I missing? alist does (cons key value), so if key is "Foo" and value is ((stuff)), you get an alist entry (Foo (stuff)). Bye, Tassilo From debbugs-submit-bounces@debbugs.gnu.org Thu May 07 05:07:34 2015 Received: (at 20513) by debbugs.gnu.org; 7 May 2015 09:07:34 +0000 Received: from localhost ([127.0.0.1]:36992 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YqHmI-0003hH-5t for submit@debbugs.gnu.org; Thu, 07 May 2015 05:07:34 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:33389 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YqHmF-0003h9-Qn for 20513@debbugs.gnu.org; Thu, 07 May 2015 05:07:32 -0400 Received: from localhost ([127.0.0.1]:45863 helo=lola) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YqHmD-0006Fz-Fe; Thu, 07 May 2015 05:07:29 -0400 Received: by lola (Postfix, from userid 1000) id DD22EE09D7; Thu, 7 May 2015 11:03:41 +0200 (CEST) From: David Kastrup To: Tassilo Horn Subject: Re: bug#20513: 11.88.5; TeX-view-program-list generated in wrong format by Customize References: <4439011430901778@web22j.yandex.ru> <87zj5gnb68.fsf@gnu.org> <87vbg4n524.fsf@gnu.org> Date: Thu, 07 May 2015 11:03:41 +0200 In-Reply-To: <87vbg4n524.fsf@gnu.org> (Tassilo Horn's message of "Thu, 07 May 2015 10:51:47 +0200") Message-ID: <87vbg4daj6.fsf@fencepost.gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 20513 Cc: =?utf-8?B?0JTQsNGA0Lg=?= =?utf-8?B?0L4g0IPQvtGA0ZPQtdCy0YHQutC4?= , 20513@debbugs.gnu.org, =?utf-8?Q?Mos=C3=A8?= Giordano X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -5.0 (-----) Tassilo Horn writes: > Mos=C3=A8 Giordano writes: > >> I agree, but I confirm `TeX-view-program-list' is built in the wrong >> way when changed with customize interface, as reported by =D0=94=D0=B0= =D1=80=D0=B8=D0=BE. It >> worked as expected before commit >> >> * 59ccf34 (2014-11-28) Check the viewer executable exists before >> opening it. >> >> where the customization type of the variable was changed from an alist >> to a repeated list, but the command part of the type hasn't been >> modified. How should it be fixed? > > I think the problem is that the command part is a group of a choice > where one choice is a list again. A group is a list, and list is a > list, so command parts will result in ((stuff)) where it should be just > (stuff). So can't you simply remove the outer > > (group :tag "Command parts" > > and that's it? I seem to remember that there is some option in the customization definition where some group will be folded into the surrounding list. Ah yes, (info "(elisp) Splicing into Lists"). File: elisp.info, Node: Splicing into Lists, Next: Type Keywords, Prev: = Composite Types, Up: Customization Types 14.4.3 Splicing into Lists -------------------------- The =E2=80=98:inline=E2=80=99 feature lets you splice a variable number of = elements into the middle of a =E2=80=98list=E2=80=99 or =E2=80=98vector=E2=80=99 customiz= ation type. You use it by adding =E2=80=98:inline t=E2=80=99 to a type specification which is contain= ed in a =E2=80=98list=E2=80=99 or =E2=80=98vector=E2=80=99 specification. Normally, each entry in a =E2=80=98list=E2=80=99 or =E2=80=98vector=E2= =80=99 type specification describes a single element type. But when an entry contains =E2=80=98:inli= ne t=E2=80=99, the value it matches is merged directly into the containing sequence. For example, if the entry matches a list with three elements, those become three elements of the overall sequence. This is analogous to =E2=80=98,@=E2=80=99 in a backquote construct (*note Backquote::). --=20 David Kastrup From debbugs-submit-bounces@debbugs.gnu.org Thu May 07 06:37:21 2015 Received: (at 20513-close) by debbugs.gnu.org; 7 May 2015 10:37:21 +0000 Received: from localhost ([127.0.0.1]:37038 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YqJBA-0005yD-4I for submit@debbugs.gnu.org; Thu, 07 May 2015 06:37:20 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:36809 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YqJB7-0005y5-OZ for 20513-close@debbugs.gnu.org; Thu, 07 May 2015 06:37:18 -0400 Received: from mail-ie0-f172.google.com ([209.85.223.172]:32778) by fencepost.gnu.org with esmtpsa (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1YqJB7-0006fk-2U for 20513-close@debbugs.gnu.org; Thu, 07 May 2015 06:37:17 -0400 Received: by iepj10 with SMTP id j10so32517938iep.0 for <20513-close@debbugs.gnu.org>; Thu, 07 May 2015 03:37:16 -0700 (PDT) X-Received: by 10.50.111.226 with SMTP id il2mr362953igb.0.1430995036351; Thu, 07 May 2015 03:37:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.236.10 with HTTP; Thu, 7 May 2015 03:36:35 -0700 (PDT) In-Reply-To: <87vbg4daj6.fsf@fencepost.gnu.org> References: <4439011430901778@web22j.yandex.ru> <87zj5gnb68.fsf@gnu.org> <87vbg4n524.fsf@gnu.org> <87vbg4daj6.fsf@fencepost.gnu.org> From: =?UTF-8?Q?Mos=C3=A8_Giordano?= Date: Thu, 7 May 2015 12:36:35 +0200 Message-ID: Subject: Re: bug#20513: 11.88.5; TeX-view-program-list generated in wrong format by Customize To: David Kastrup Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 20513-close Cc: =?UTF-8?B?0JTQsNGA0LjQviDQg9C+0YDRk9C10LLRgdC60Lg=?= , 20513-close@debbugs.gnu.org, Tassilo Horn X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -5.0 (-----) 2015-05-07 11:03 GMT+02:00 David Kastrup : > Tassilo Horn writes: > >> Mos=C3=A8 Giordano writes: >> >>> I agree, but I confirm `TeX-view-program-list' is built in the wrong >>> way when changed with customize interface, as reported by =D0=94=D0=B0= =D1=80=D0=B8=D0=BE. It >>> worked as expected before commit >>> >>> * 59ccf34 (2014-11-28) Check the viewer executable exists before >>> opening it. >>> >>> where the customization type of the variable was changed from an alist >>> to a repeated list, but the command part of the type hasn't been >>> modified. How should it be fixed? >> >> I think the problem is that the command part is a group of a choice >> where one choice is a list again. A group is a list, and list is a >> list, so command parts will result in ((stuff)) where it should be just >> (stuff). So can't you simply remove the outer >> >> (group :tag "Command parts" >> >> and that's it? > > I seem to remember that there is some option in the customization > definition where some group will be folded into the surrounding list. > > Ah yes, (info "(elisp) Splicing into Lists"). > > File: elisp.info, Node: Splicing into Lists, Next: Type Keywords, Prev= : Composite Types, Up: Customization Types > > 14.4.3 Splicing into Lists > -------------------------- > > The =E2=80=98:inline=E2=80=99 feature lets you splice a variable number o= f elements into > the middle of a =E2=80=98list=E2=80=99 or =E2=80=98vector=E2=80=99 custom= ization type. You use it by > adding =E2=80=98:inline t=E2=80=99 to a type specification which is conta= ined in a > =E2=80=98list=E2=80=99 or =E2=80=98vector=E2=80=99 specification. > > Normally, each entry in a =E2=80=98list=E2=80=99 or =E2=80=98vector=E2= =80=99 type specification > describes a single element type. But when an entry contains =E2=80=98:in= line > t=E2=80=99, the value it matches is merged directly into the containing > sequence. For example, if the entry matches a list with three elements, > those become three elements of the overall sequence. This is analogous > to =E2=80=98,@=E2=80=99 in a backquote construct (*note Backquote::). Thanks to both, the bug should be fixed now. Bye, Mos=C3=A8 From unknown Sun Jun 15 01:10:06 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, 04 Jun 2015 11: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