From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 04 06:22:43 2015 Received: (at submit) by debbugs.gnu.org; 4 Jan 2015 11:22:43 +0000 Received: from localhost ([127.0.0.1]:36012 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y7jGc-000810-Pe for submit@debbugs.gnu.org; Sun, 04 Jan 2015 06:22:43 -0500 Received: from eggs.gnu.org ([208.118.235.92]:58097) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y7jGa-00080s-Cm for submit@debbugs.gnu.org; Sun, 04 Jan 2015 06:22:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y7jGZ-00016w-2b for submit@debbugs.gnu.org; Sun, 04 Jan 2015 06:22:40 -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]:48611) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y7jGY-00016s-W5 for submit@debbugs.gnu.org; Sun, 04 Jan 2015 06:22:39 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59810) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y7jGX-0000HA-Kb for bug-auctex@gnu.org; Sun, 04 Jan 2015 06:22:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y7jGU-00016G-E0 for bug-auctex@gnu.org; Sun, 04 Jan 2015 06:22:37 -0500 Received: from postout2.mail.lrz.de ([129.187.255.138]:37399) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y7jGU-00014t-4I for bug-auctex@gnu.org; Sun, 04 Jan 2015 06:22:34 -0500 Received: from lxmhs52.srv.lrz.de (localhost [127.0.0.1]) by postout2.mail.lrz.de (Postfix) with ESMTP id 3kFcy91HcpzyRS for ; Sun, 4 Jan 2015 12:22:25 +0100 (CET) X-Virus-Scanned: by amavisd-new at lrz.de in lxmhs52.srv.lrz.de Received: from postout2.mail.lrz.de ([127.0.0.1]) by lxmhs52.srv.lrz.de (lxmhs52.srv.lrz.de [127.0.0.1]) (amavisd-new, port 20024) with LMTP id 9qCaplxKgYBd for ; Sun, 4 Jan 2015 12:22:24 +0100 (CET) Received: from PEGASUS (pD9F60D07.dip0.t-ipconnect.de [217.246.13.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by postout2.mail.lrz.de (Postfix) with ESMTPSA id 3kFcy83sw3zyRb for ; Sun, 4 Jan 2015 12:22:24 +0100 (CET) From: Uwe Siart To: bug-auctex@gnu.org Subject: 11.88; [siunitx] unit appears without backslash Date: Sun, 04 Jan 2015 12:22:13 +0100 Message-ID: <84vbkmg596.fsf@tum.de> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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: -5.0 (-----) X-Debbugs-Envelope-To: submit 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 (-----) 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 bug report will be posted to the AUCTeX bug reporting list. ------------------------------------------------------------------------ When I try to enter an siunitx \SI macro I get the unit without backslash even if I enter it correctly with a backslash. For instance if I do C-c RET SI RET RET 5 RET RET \kHz RET I get "\SI{5}{kHz}" but I expect "\SI{5}{\kHz}". This happens to every valid unit macro. It is always the first backslash that gets lost. Entering "\meter\per\second" results in "meter\per\second". Regards Uwe Emacs : GNU Emacs 24.4.1 (i686-pc-mingw32) of 2014-10-24 on LEG570 Package: 11.88 current state: ============== (setq AUCTeX-date "2014-10-29" window-system 'w32 LaTeX-version "2e" TeX-style-path '("c:/programme/emacs/var/auctex" "c:/Programme/emacs/share/emacs/site-lisp/auctex/style" "c:/Dokumente und Einstellungen/siart/.emacs.d/auctex/auto" "c:/Dokumente und Einstellungen/siart/.emacs.d/auctex/style" "auto" "style") TeX-auto-save t TeX-parse-self t TeX-master t TeX-command-list '(("TeX" "%(PDF)%(tex) %(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 Sun Jan 04 06:42:35 2015 Received: (at 19504) by debbugs.gnu.org; 4 Jan 2015 11:42:35 +0000 Received: from localhost ([127.0.0.1]:36024 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y7jZq-00009c-IF for submit@debbugs.gnu.org; Sun, 04 Jan 2015 06:42:34 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:58505) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y7jZo-00009S-1H for 19504@debbugs.gnu.org; Sun, 04 Jan 2015 06:42:32 -0500 Received: from mail-ig0-f180.google.com ([209.85.213.180]:52279) by fencepost.gnu.org with esmtpsa (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1Y7jZn-0005Q9-1C for 19504@debbugs.gnu.org; Sun, 04 Jan 2015 06:42:31 -0500 Received: by mail-ig0-f180.google.com with SMTP id h15so1307279igd.7 for <19504@debbugs.gnu.org>; Sun, 04 Jan 2015 03:42:30 -0800 (PST) X-Received: by 10.43.95.2 with SMTP id ca2mr64953814icc.89.1420371750343; Sun, 04 Jan 2015 03:42:30 -0800 (PST) MIME-Version: 1.0 Received: by 10.64.28.101 with HTTP; Sun, 4 Jan 2015 03:41:50 -0800 (PST) In-Reply-To: <84vbkmg596.fsf@tum.de> References: <84vbkmg596.fsf@tum.de> From: =?UTF-8?Q?Mos=C3=A8_Giordano?= Date: Sun, 4 Jan 2015 12:41:50 +0100 Message-ID: Subject: Re: bug#19504: 11.88; [siunitx] unit appears without backslash To: Uwe Siart Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 19504 Cc: 19504@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 (-----) tag 19504 confirmed thanks Hi Uwe, 2015-01-04 12:22 GMT+01:00 Uwe Siart : > When I try to enter an siunitx \SI macro I get the unit without > backslash even if I enter it correctly with a backslash. For instance if > I do > > C-c RET SI RET RET 5 RET RET \kHz RET > > I get "\SI{5}{kHz}" but I expect "\SI{5}{\kHz}". This happens to every > valid unit macro. It is always the first backslash that gets lost. > Entering "\meter\per\second" results in "meter\per\second". Thanks for the report, I can confirm this bug, but it has been introduced by a recent version of Emacs, I just tested with Emacs 23.3.1 and it works as expected. I cannot remember which version of Emacs I used when I developed the siunitx style file, probably 24.2 or 24.3. I'll try to find the culprit. Bye, Mos=C3=A8 From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 04 07:08:44 2015 Received: (at 19504) by debbugs.gnu.org; 4 Jan 2015 12:08:44 +0000 Received: from localhost ([127.0.0.1]:36038 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y7jzA-00029B-7R for submit@debbugs.gnu.org; Sun, 04 Jan 2015 07:08:44 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:58784) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y7jz8-000293-3H for 19504@debbugs.gnu.org; Sun, 04 Jan 2015 07:08:42 -0500 Received: from mail-ie0-f170.google.com ([209.85.223.170]:39455) by fencepost.gnu.org with esmtpsa (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1Y7jz6-00043d-Uj for 19504@debbugs.gnu.org; Sun, 04 Jan 2015 07:08:41 -0500 Received: by mail-ie0-f170.google.com with SMTP id rd18so18601566iec.1 for <19504@debbugs.gnu.org>; Sun, 04 Jan 2015 04:08:40 -0800 (PST) X-Received: by 10.42.51.136 with SMTP id e8mr63507109icg.30.1420373320332; Sun, 04 Jan 2015 04:08:40 -0800 (PST) MIME-Version: 1.0 Received: by 10.64.28.101 with HTTP; Sun, 4 Jan 2015 04:08:00 -0800 (PST) In-Reply-To: References: <84vbkmg596.fsf@tum.de> From: =?UTF-8?Q?Mos=C3=A8_Giordano?= Date: Sun, 4 Jan 2015 13:08:00 +0100 Message-ID: Subject: Re: bug#19504: 11.88; [siunitx] unit appears without backslash To: Uwe Siart Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 19504 Cc: 19504 <19504@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-01-04 12:41 GMT+01:00 Mos=C3=A8 Giordano : > tag 19504 confirmed > thanks > > > Hi Uwe, > > 2015-01-04 12:22 GMT+01:00 Uwe Siart : >> When I try to enter an siunitx \SI macro I get the unit without >> backslash even if I enter it correctly with a backslash. For instance if >> I do >> >> C-c RET SI RET RET 5 RET RET \kHz RET >> >> I get "\SI{5}{kHz}" but I expect "\SI{5}{\kHz}". This happens to every >> valid unit macro. It is always the first backslash that gets lost. >> Entering "\meter\per\second" results in "meter\per\second". > > Thanks for the report, I can confirm this bug, but it has been > introduced by a recent version of Emacs, I just tested with Emacs > 23.3.1 and it works as expected. I cannot remember which version of > Emacs I used when I developed the siunitx style file, probably 24.2 or > 24.3. I'll try to find the culprit. For the record, this commit is the culprit: http://git.savannah.gnu.org/gitweb/?p=3Demacs.git;a=3Dcommitdiff;h=3D9c4456= 9ea2a18099307e0571d523d8637000a153 `LaTeX-arg-siunitx-unit' relies on `completing-read-multiple' returning also empty strings. This change is not even mentioned in the Incompatible Lisp Changes section of the NEWS file. For the time being I don't have a solution, apart from defining `TeX-completing-read-multiple' as the old version of `completing-read-multiple', or someone fixing `completing-read-multiple' upstream, at least making trimming optional. Bye, Mos=C3=A8 From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 09 13:56:50 2015 Received: (at 19504) by debbugs.gnu.org; 9 Mar 2015 17:56:50 +0000 Received: from localhost ([127.0.0.1]:40904 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YV1v7-0000Cx-PP for submit@debbugs.gnu.org; Mon, 09 Mar 2015 13:56:50 -0400 Received: from mercure.iro.umontreal.ca ([132.204.24.67]:33224) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YV1v5-0000Cp-5e for 19504@debbugs.gnu.org; Mon, 09 Mar 2015 13:56:47 -0400 Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 85B7685195; Mon, 9 Mar 2015 13:56:46 -0400 (EDT) Received: from lechon.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 1132D1E5B8C; Mon, 9 Mar 2015 13:56:23 -0400 (EDT) Received: by lechon.iro.umontreal.ca (Postfix, from userid 20848) id EB45DB4130; Mon, 9 Mar 2015 13:56:22 -0400 (EDT) From: Stefan Monnier To: =?windows-1252?Q?Mos=E8?= Giordano Subject: Re: bug#19504: 11.88; [siunitx] unit appears without backslash Message-ID: References: <84vbkmg596.fsf@tum.de> Date: Mon, 09 Mar 2015 13:56:22 -0400 In-Reply-To: (=?windows-1252?Q?=22Mos=E8?= Giordano"'s message of "Sun, 4 Jan 2015 13:08:00 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82, MC_TSTLAST 0.00) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-Spam-Status: No X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 19504 Cc: 19504@debbugs.gnu.org, Uwe Siart 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: -2.3 (--) > returning also empty strings. This change is not even mentioned in > the Incompatible Lisp Changes section of the NEWS file. Lots of changes aren't mentioned. Only the ones that we expect to be noticed are mentioned. > For the time being I don't have a solution, apart from defining > `TeX-completing-read-multiple' as the old version of > `completing-read-multiple', or someone fixing > `completing-read-multiple' upstream, at least making > trimming optional. IIUC you always need a leading \, so you could simply always add a leading backslash if one is missing. Of course, I'm not sure that IUC. > Would it be possible to make trimming optional (off by default), using > an optional argument? I'd rather we don't go down that path. > In AUCTeX we support all Emacs versions starting from 21, so a new > mandatory argument wouldn't be a good idea for us. FWIW, this code only works as intended in Emacs>=22 (since crm-separator didn't exist in Emacs-21). Stefan From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 09 16:26:15 2015 Received: (at 19504) by debbugs.gnu.org; 9 Mar 2015 20:26:15 +0000 Received: from localhost ([127.0.0.1]:40960 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YV4Fi-0005RY-UF for submit@debbugs.gnu.org; Mon, 09 Mar 2015 16:26:15 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:45015 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YV4Fh-0005RQ-9a for 19504@debbugs.gnu.org; Mon, 09 Mar 2015 16:26:13 -0400 Received: from mail-ig0-f169.google.com ([209.85.213.169]:35860) by fencepost.gnu.org with esmtpsa (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1YV4Fg-0004lV-OK for 19504@debbugs.gnu.org; Mon, 09 Mar 2015 16:26:12 -0400 Received: by igkb16 with SMTP id b16so24589379igk.1 for <19504@debbugs.gnu.org>; Mon, 09 Mar 2015 13:26:12 -0700 (PDT) X-Received: by 10.107.154.79 with SMTP id c76mr52599323ioe.14.1425932772089; Mon, 09 Mar 2015 13:26:12 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.216.71 with HTTP; Mon, 9 Mar 2015 13:25:31 -0700 (PDT) In-Reply-To: References: <84vbkmg596.fsf@tum.de> From: =?UTF-8?Q?Mos=C3=A8_Giordano?= Date: Mon, 9 Mar 2015 21:25:31 +0100 Message-ID: Subject: Re: bug#19504: 11.88; [siunitx] unit appears without backslash To: Stefan Monnier Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 19504 Cc: 19504 <19504@debbugs.gnu.org>, Uwe Siart 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 Stefan, 2015-03-09 18:56 GMT+01:00 Stefan Monnier : >> returning also empty strings. This change is not even mentioned in >> the Incompatible Lisp Changes section of the NEWS file. > > Lots of changes aren't mentioned. Only the ones that we expect to be > noticed are mentioned. Well, this was noticed too ;-) >> For the time being I don't have a solution, apart from defining >> `TeX-completing-read-multiple' as the old version of >> `completing-read-multiple', or someone fixing >> `completing-read-multiple' upstream, at least making >> trimming optional. > > IIUC you always need a leading \, so you could simply always add > a leading backslash if one is missing. > Of course, I'm not sure that IUC. Unfortunately no, one can also insert the unit without using macros, so we can't always add the leading backslash Bye, Mos=C3=A8 From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 11 11:27:22 2015 Received: (at 19504) by debbugs.gnu.org; 11 Mar 2015 15:27:22 +0000 Received: from localhost ([127.0.0.1]:42931 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YViXa-0001aa-Gh for submit@debbugs.gnu.org; Wed, 11 Mar 2015 11:27:22 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:21712) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YViXY-0001aO-Ji for 19504@debbugs.gnu.org; Wed, 11 Mar 2015 11:27:21 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArsTAPOG1lRLd/Fx/2dsb2JhbABbgwaDX4VTwGUEAgKBDUQBAQEBAQF8hA0BBAFWIwULCzQSFBgNJIg4CM4jAQEBAQYBAQEBHo94B4QqBZlfhUmKSoFFIoQKIoJzAQEB X-IPAS-Result: ArsTAPOG1lRLd/Fx/2dsb2JhbABbgwaDX4VTwGUEAgKBDUQBAQEBAQF8hA0BBAFWIwULCzQSFBgNJIg4CM4jAQEBAQYBAQEBHo94B4QqBZlfhUmKSoFFIoQKIoJzAQEB X-IronPort-AV: E=Sophos;i="5.09,536,1418101200"; d="scan'208";a="113284053" Received: from 75-119-241-113.dsl.teksavvy.com (HELO pastel.home) ([75.119.241.113]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 11 Mar 2015 11:27:14 -0400 Received: by pastel.home (Postfix, from userid 20848) id E1BAEFEF; Wed, 11 Mar 2015 11:27:13 -0400 (EDT) From: Stefan Monnier To: =?windows-1252?Q?Mos=E8?= Giordano Subject: Re: bug#19504: 11.88; [siunitx] unit appears without backslash Message-ID: References: <84vbkmg596.fsf@tum.de> Date: Wed, 11 Mar 2015 11:27:13 -0400 In-Reply-To: (=?windows-1252?Q?=22Mos=E8?= Giordano"'s message of "Mon, 9 Mar 2015 21:25:31 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 19504 Cc: 19504 <19504@debbugs.gnu.org>, Uwe Siart 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: 0.3 (/) > Unfortunately no, one can also insert the unit without using macros, > so we can't always add the leading backslash So the user could enter "\second \per meter"? I'm getting the feeling that completing-read-multiple is just not the right tool for the job. Could it be that what you want instead is to have (in the minibuffer) completion that doesn't apply to the whole minibuffer (but that is instead more like in-buffer completion). So you'd want a `read-string' where you setup completion-at-point-functions inside the minibuffer and where you bind TAB to `completion-at-point'. Stefan PS: The plan is actually to move the minibuffer completion in that direction for normal minibuffer completion, so that TAB is bound to completion-at-point in the minibuffer as well. From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 11 18:00:24 2015 Received: (at 19504) by debbugs.gnu.org; 11 Mar 2015 22:00:24 +0000 Received: from localhost ([127.0.0.1]:43202 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YVofv-0006xB-4V for submit@debbugs.gnu.org; Wed, 11 Mar 2015 18:00:23 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:38128 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YVofs-0006x2-8X for 19504@debbugs.gnu.org; Wed, 11 Mar 2015 18:00:21 -0400 Received: from mail-oi0-f50.google.com ([209.85.218.50]:37071) by fencepost.gnu.org with esmtpsa (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1YVofr-0007qB-NN for 19504@debbugs.gnu.org; Wed, 11 Mar 2015 18:00:19 -0400 Received: by oigi138 with SMTP id i138so10632979oig.4 for <19504@debbugs.gnu.org>; Wed, 11 Mar 2015 15:00:18 -0700 (PDT) X-Received: by 10.50.29.68 with SMTP id i4mr69663472igh.4.1426111218494; Wed, 11 Mar 2015 15:00:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.216.71 with HTTP; Wed, 11 Mar 2015 14:59:38 -0700 (PDT) In-Reply-To: References: <84vbkmg596.fsf@tum.de> From: =?UTF-8?Q?Mos=C3=A8_Giordano?= Date: Wed, 11 Mar 2015 22:59:38 +0100 Message-ID: Subject: Re: bug#19504: 11.88; [siunitx] unit appears without backslash To: Stefan Monnier Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 19504 Cc: 19504 <19504@debbugs.gnu.org>, Uwe Siart 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-03-11 16:27 GMT+01:00 Stefan Monnier : >> Unfortunately no, one can also insert the unit without using macros, >> so we can't always add the leading backslash > > So the user could enter "\second \per meter"? Yes, something like that: you can enter units using macros (e.g. "\second\per\metre") but also literally (e.g. "s/m"). The package is useful because at least adjusts the spacing between the value and the unit. > I'm getting the feeling that completing-read-multiple is just not the > right tool for the job. Could it be that what you want instead is to > have (in the minibuffer) completion that doesn't apply to the whole > minibuffer (but that is instead more like in-buffer completion). > > So you'd want a `read-string' where you setup > completion-at-point-functions inside the minibuffer and where you bind > TAB to `completion-at-point'. > > > > Stefan > > > PS: The plan is actually to move the minibuffer completion in that > direction for normal minibuffer completion, so that TAB is bound to > completion-at-point in the minibuffer as well. Uh, thanks for the suggestion, but according to git blame `completion-at-point' exists since 2009, so Emacs <23 is left out. Bye, Mos=C3=A8 From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 12 04:51:32 2015 Received: (at 19504) by debbugs.gnu.org; 12 Mar 2015 08:51:32 +0000 Received: from localhost ([127.0.0.1]:43417 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YVyq4-0006Ls-BS for submit@debbugs.gnu.org; Thu, 12 Mar 2015 04:51:32 -0400 Received: from deliver.uni-koblenz.de ([141.26.64.15]:34196) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YVyq1-0006Lj-Oj for 19504@debbugs.gnu.org; Thu, 12 Mar 2015 04:51:30 -0400 Received: from thinkpad-t440p (dhcp27.uni-koblenz.de [141.26.71.27]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTPSA id 748921A84F4; Thu, 12 Mar 2015 09:51:27 +0100 (CET) From: Tassilo Horn To: =?utf-8?Q?Mos=C3=A8?= Giordano Subject: Re: bug#19504: 11.88; [siunitx] unit appears without backslash References: <84vbkmg596.fsf@tum.de> Date: Thu, 12 Mar 2015 09:51:26 +0100 In-Reply-To: (=?utf-8?Q?=22Mos=C3=A8?= Giordano"'s message of "Wed, 11 Mar 2015 22:59:38 +0100") Message-ID: <877fumd2ep.fsf@gnu.org> User-Agent: Gnus/5.130012 (Ma Gnus v0.12) 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: 19504 Cc: 19504 <19504@debbugs.gnu.org>, Stefan Monnier , Uwe Siart 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: >> PS: The plan is actually to move the minibuffer completion in that >> direction for normal minibuffer completion, so that TAB is bound to >> completion-at-point in the minibuffer as well. > > Uh, thanks for the suggestion, but according to git blame > `completion-at-point' exists since 2009, so Emacs <23 is left out. Sorry, I didn't follow this issue closely. But isn't it the case that some quite recent change in Emacs is the culprit? In that case, `TeX-completing-read-multiple' could have 3 versions instead of the current two (one for Emacs, one for XEmacs), i.e., one for Emacs <=3D 22, one for Emacs 23+, and one for XEmacs. Bye, Tassilo From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 12 18:06:12 2015 Received: (at 19504) by debbugs.gnu.org; 12 Mar 2015 22:06:12 +0000 Received: from localhost ([127.0.0.1]:44324 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YWBF5-0008L0-Og for submit@debbugs.gnu.org; Thu, 12 Mar 2015 18:06:12 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:50041 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YWBF4-0008Kt-2Q for 19504@debbugs.gnu.org; Thu, 12 Mar 2015 18:06:10 -0400 Received: from mail-ie0-f176.google.com ([209.85.223.176]:36419) by fencepost.gnu.org with esmtpsa (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1YWBF3-0003fL-OD for 19504@debbugs.gnu.org; Thu, 12 Mar 2015 18:06:09 -0400 Received: by iegc3 with SMTP id c3so65580903ieg.3 for <19504@debbugs.gnu.org>; Thu, 12 Mar 2015 15:06:09 -0700 (PDT) X-Received: by 10.50.66.198 with SMTP id h6mr79577799igt.22.1426197966812; Thu, 12 Mar 2015 15:06:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.216.71 with HTTP; Thu, 12 Mar 2015 15:05:26 -0700 (PDT) In-Reply-To: <877fumd2ep.fsf@gnu.org> References: <84vbkmg596.fsf@tum.de> <877fumd2ep.fsf@gnu.org> From: =?UTF-8?Q?Mos=C3=A8_Giordano?= Date: Thu, 12 Mar 2015 23:05:26 +0100 Message-ID: Subject: Re: bug#19504: 11.88; [siunitx] unit appears without backslash To: Tassilo Horn Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 19504 Cc: 19504 <19504@debbugs.gnu.org>, Stefan Monnier , Uwe Siart 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-03-12 9:51 GMT+01:00 Tassilo Horn : > Mos=C3=A8 Giordano writes: > >>> PS: The plan is actually to move the minibuffer completion in that >>> direction for normal minibuffer completion, so that TAB is bound to >>> completion-at-point in the minibuffer as well. >> >> Uh, thanks for the suggestion, but according to git blame >> `completion-at-point' exists since 2009, so Emacs <23 is left out. > > Sorry, I didn't follow this issue closely. But isn't it the case that > some quite recent change in Emacs is the culprit? Yes, with this commit http://git.savannah.gnu.org/gitweb/?p=3Demacs.git;a=3Dcommitdiff;h=3D9c4456= 9ea2a18099307e0571d523d8637000a153 `completing-read-multiple' ignores empty strings, which was essential for completion of `siunitx' units. > In that case, > `TeX-completing-read-multiple' could have 3 versions instead of the > current two (one for Emacs, one for XEmacs), i.e., one for Emacs <=3D 22, > one for Emacs 23+, and one for XEmacs. As I said some messages ago, the best I can think is to copy the last Emacs implementation before the mentioned commit (making sure return value for empty input is always nil) for all Emacs versions, so we should be able to keep the number of versions of `TeX-completing-read-multiple' as low as two. The problem will be of course some more work on our side to maintain the function, if needed. Bye, Mos=C3=A8 From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 14 17:17:45 2015 Received: (at 19504) by debbugs.gnu.org; 14 Apr 2015 21:17:45 +0000 Received: from localhost ([127.0.0.1]:56474 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yi8DI-0006Gr-Do for submit@debbugs.gnu.org; Tue, 14 Apr 2015 17:17:44 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:36166 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yi8DF-0006Gi-CH for 19504@debbugs.gnu.org; Tue, 14 Apr 2015 17:17:42 -0400 Received: from mail-ie0-f179.google.com ([209.85.223.179]:33057) by fencepost.gnu.org with esmtpsa (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1Yi8DB-0006ZL-LJ for 19504@debbugs.gnu.org; Tue, 14 Apr 2015 17:17:40 -0400 Received: by iecrt8 with SMTP id rt8so13588972iec.0 for <19504@debbugs.gnu.org>; Tue, 14 Apr 2015 14:17:37 -0700 (PDT) X-Received: by 10.50.43.231 with SMTP id z7mr27609872igl.22.1429046257035; Tue, 14 Apr 2015 14:17:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.216.71 with HTTP; Tue, 14 Apr 2015 14:16:56 -0700 (PDT) In-Reply-To: References: <84vbkmg596.fsf@tum.de> <877fumd2ep.fsf@gnu.org> From: =?UTF-8?Q?Mos=C3=A8_Giordano?= Date: Tue, 14 Apr 2015 23:16:56 +0200 Message-ID: Subject: Re: bug#19504: 11.88; [siunitx] unit appears without backslash To: Tassilo Horn Content-Type: multipart/mixed; boundary=089e01175f2984ce680513b5c2f6 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 19504 Cc: 19504 <19504@debbugs.gnu.org>, Stefan Monnier , Uwe Siart 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 (-----) --089e01175f2984ce680513b5c2f6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello, here is my take to fix the bug: there are three different versions of `TeX-completing-read-multiple' as suggested by Tassilo. I'm just not sure it works with all 24.* versions of Emacs. A serious problem is that there are a couple of internal functions (crm--*), and we had problems in the past with internal functions,[1] for which we still get bug reports nowadays. Actually, the change by Roland Winkler which caused this bug is the same which forced us to make `TeX-completing-read-multiple' always return nil,[2] so perhaps we could also revert that change, but in this way we would break backward compatibility in turn. Bye, Mos=C3=A8 Note: [1] http://comments.gmane.org/gmane.emacs.aquamacs.devel/240 [2] http://comments.gmane.org/gmane.emacs.auctex.devel/3375 2015-03-12 23:05 GMT+01:00 Mos=C3=A8 Giordano : > Hi Tassilo, > > 2015-03-12 9:51 GMT+01:00 Tassilo Horn : >> Mos=C3=A8 Giordano writes: >> >>>> PS: The plan is actually to move the minibuffer completion in that >>>> direction for normal minibuffer completion, so that TAB is bound to >>>> completion-at-point in the minibuffer as well. >>> >>> Uh, thanks for the suggestion, but according to git blame >>> `completion-at-point' exists since 2009, so Emacs <23 is left out. >> >> Sorry, I didn't follow this issue closely. But isn't it the case that >> some quite recent change in Emacs is the culprit? > > Yes, with this commit > http://git.savannah.gnu.org/gitweb/?p=3Demacs.git;a=3Dcommitdiff;h=3D9c44= 569ea2a18099307e0571d523d8637000a153 > `completing-read-multiple' ignores empty strings, which was essential > for completion of `siunitx' units. > >> In that case, >> `TeX-completing-read-multiple' could have 3 versions instead of the >> current two (one for Emacs, one for XEmacs), i.e., one for Emacs <=3D 22= , >> one for Emacs 23+, and one for XEmacs. > > As I said some messages ago, the best I can think is to copy the last > Emacs implementation before the mentioned commit (making sure return > value for empty input is always nil) for all Emacs versions, so we > should be able to keep the number of versions of > `TeX-completing-read-multiple' as low as two. The problem will be of > course some more work on our side to maintain the function, if needed. > > Bye, > Mos=C3=A8 --089e01175f2984ce680513b5c2f6 Content-Type: text/x-diff; charset=US-ASCII; name="tex-crm.patch" Content-Disposition: attachment; filename="tex-crm.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_i8hsibg10 ZGlmZiAtLWdpdCBhL3RleC5lbCBiL3RleC5lbAppbmRleCAzOTQ4MTRlLi4zYjU0ZDc5IDEwMDY0 NAotLS0gYS90ZXguZWwKKysrIGIvdGV4LmVsCkBAIC03MTYsMTggKzcxNiw1NyBAQCBvdmVybGF5 cy4iCiBlZGl0LXV0aWxzID49IDIuMzIgZm9yIFhFbWFjcy4iKSkpCiAKIChpZiAoZmJvdW5kcCAn Y29tcGxldGluZy1yZWFkLW11bHRpcGxlKQotICAgIChkZWZ1biBUZVgtY29tcGxldGluZy1yZWFk LW11bHRpcGxlCi0JKHByb21wdCB0YWJsZSAmb3B0aW9uYWwgcHJlZGljYXRlIHJlcXVpcmUtbWF0 Y2ggaW5pdGlhbC1pbnB1dAotCQloaXN0IGRlZiBpbmhlcml0LWlucHV0LW1ldGhvZCkKLSAgICAg ICJMaWtlIGBjb21wbGV0aW5nLXJlYWQtbXVsdGlwbGUnIHdoaWNoIHNlZS4KLUVuc3VyZXMgdGhh dCBlbXB0eSBpbnB1dCByZXN1bHRzIGluIG5pbCBhY3Jvc3MgZGlmZmVyZW50IGVtYWNzIHZlcnNp b25zLiIKLSAgICAgIChsZXQgKChyZXN1bHQgKGNvbXBsZXRpbmctcmVhZC1tdWx0aXBsZSBwcm9t cHQgdGFibGUgcHJlZGljYXRlCi0JCQkJCSAgICAgIHJlcXVpcmUtbWF0Y2ggaW5pdGlhbC1pbnB1 dAotCQk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BYRW1hY3MuCiBUaGUgWEVtYWNzIHBhY2thZ2UgZWRpdC11dGlscy0yLjMyIGluY2x1ZGVz IGBjcm0uZWwnLiIKICAgICAobXVsdGktcHJvbXB0IChpZiAoYm91bmRwICdjcm0tc2VwYXJhdG9y KSBjcm0tc2VwYXJhdG9yICIsIikgbmlsIHByb21wdAo= --089e01175f2984ce680513b5c2f6-- From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 18 17:18:03 2015 Received: (at 19504-done) by debbugs.gnu.org; 18 Oct 2015 21:18:03 +0000 Received: from localhost ([127.0.0.1]:55459 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZnvL8-00008R-NH for submit@debbugs.gnu.org; Sun, 18 Oct 2015 17:18:03 -0400 Received: from eggs.gnu.org ([208.118.235.92]:59342) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZnvL7-000083-2Q for 19504-done@debbugs.gnu.org; Sun, 18 Oct 2015 17:18:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZnvL3-0005Gw-RT for 19504-done@debbugs.gnu.org; Sun, 18 Oct 2015 17:18:01 -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,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:53174) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZnvL3-0005Gm-OG for 19504-done@debbugs.gnu.org; Sun, 18 Oct 2015 17:17:57 -0400 Received: from mail-wi0-f176.google.com ([209.85.212.176]:36813) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_ARCFOUR_SHA1:128) (Exim 4.82) (envelope-from ) id 1ZnvL1-0005r3-7w for 19504-done@debbugs.gnu.org; Sun, 18 Oct 2015 17:17:56 -0400 Received: by wicfx6 with SMTP id fx6so25342914wic.1 for <19504-done@debbugs.gnu.org>; Sun, 18 Oct 2015 14:17:53 -0700 (PDT) X-Received: by 10.194.93.229 with SMTP id cx5mr28508678wjb.62.1445203073964; Sun, 18 Oct 2015 14:17:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.188.9 with HTTP; Sun, 18 Oct 2015 14:17:14 -0700 (PDT) In-Reply-To: References: <84vbkmg596.fsf@tum.de> <877fumd2ep.fsf@gnu.org> From: =?UTF-8?Q?Mos=C3=A8_Giordano?= Date: Sun, 18 Oct 2015 23:17:14 +0200 Message-ID: Subject: Re: bug#19504: 11.88; [siunitx] unit appears without backslash To: Tassilo Horn Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 19504-done Cc: 19504-done@debbugs.gnu.org, Uwe Siart 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 all, this bug should be fixed now. Bye, Mos=C3=A8 2015-04-14 23:16 GMT+02:00 Mos=C3=A8 Giordano : > Hello, > > here is my take to fix the bug: there are three different versions of > `TeX-completing-read-multiple' as suggested by Tassilo. I'm just not > sure it works with all 24.* versions of Emacs. A serious problem is > that there are a couple of internal functions (crm--*), and we had > problems in the past with internal functions,[1] for which we still > get bug reports nowadays. > > Actually, the change by Roland Winkler which caused this bug is the > same which forced us to make `TeX-completing-read-multiple' always > return nil,[2] so perhaps we could also revert that change, but in > this way we would break backward compatibility in turn. > > Bye, > Mos=C3=A8 > > Note: > > [1] http://comments.gmane.org/gmane.emacs.aquamacs.devel/240 > [2] http://comments.gmane.org/gmane.emacs.auctex.devel/3375 > > 2015-03-12 23:05 GMT+01:00 Mos=C3=A8 Giordano : >> Hi Tassilo, >> >> 2015-03-12 9:51 GMT+01:00 Tassilo Horn : >>> Mos=C3=A8 Giordano writes: >>> >>>>> PS: The plan is actually to move the minibuffer completion in that >>>>> direction for normal minibuffer completion, so that TAB is bound to >>>>> completion-at-point in the minibuffer as well. >>>> >>>> Uh, thanks for the suggestion, but according to git blame >>>> `completion-at-point' exists since 2009, so Emacs <23 is left out. >>> >>> Sorry, I didn't follow this issue closely. But isn't it the case that >>> some quite recent change in Emacs is the culprit? >> >> Yes, with this commit >> http://git.savannah.gnu.org/gitweb/?p=3Demacs.git;a=3Dcommitdiff;h=3D9c4= 4569ea2a18099307e0571d523d8637000a153 >> `completing-read-multiple' ignores empty strings, which was essential >> for completion of `siunitx' units. >> >>> In that case, >>> `TeX-completing-read-multiple' could have 3 versions instead of the >>> current two (one for Emacs, one for XEmacs), i.e., one for Emacs <=3D 2= 2, >>> one for Emacs 23+, and one for XEmacs. >> >> As I said some messages ago, the best I can think is to copy the last >> Emacs implementation before the mentioned commit (making sure return >> value for empty input is always nil) for all Emacs versions, so we >> should be able to keep the number of versions of >> `TeX-completing-read-multiple' as low as two. The problem will be of >> course some more work on our side to maintain the function, if needed. >> >> Bye, >> Mos=C3=A8 From unknown Sat Jun 21 03:25:21 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 16 Nov 2015 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