From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.auctex.devel,gmane.emacs.help Subject: A strange auto typesetting problem when using auctex. Date: Mon, 14 Jun 2021 11:45:52 +0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38409"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: auctex-devel@gnu.org Original-X-From: auctex-devel-bounces+gead-auctex-devel=m.gmane-mx.org@gnu.org Mon Jun 14 05:46:16 2021 Return-path: Envelope-to: gead-auctex-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lsdYE-0009in-Kx for gead-auctex-devel@m.gmane-mx.org; Mon, 14 Jun 2021 05:46:14 +0200 Original-Received: from localhost ([::1]:48658 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lsdYD-0000lk-Jx for gead-auctex-devel@m.gmane-mx.org; Sun, 13 Jun 2021 23:46:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39230) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lsdYB-0000lE-Gv; Sun, 13 Jun 2021 23:46:11 -0400 Original-Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]:40868) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lsdY6-00019G-Fr; Sun, 13 Jun 2021 23:46:11 -0400 Original-Received: by mail-lf1-x134.google.com with SMTP id k40so18676410lfv.7; Sun, 13 Jun 2021 20:46:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=q+4j5eefTitewEhAAeT4TqKR8JX0qxwaFctHcdPXaqM=; b=fOLZR1oeLpW6svoQbbF8mynYQhzW+wy35eWMSlkmWfKt4HEoPK+nS6xkzHr63dzxUh eD1Bxk5G6iMLrG7q4whqKkrEYaChqgwOzmOE+230js6nUIdPun2X5Zs6cb4MaNIDZjuB 9MMbS+F52Abn5L85EHsdpbcgRQUxu1X6rI06XSNZLzfmLPSOnDsxWwRGwVpejXcg+1Xw e9RiZhqAJY1C8CIpckOo39wWC+Sq1Zaw0kjoChKfIX68+YJhm4XW129qFfEBMkCTKGfX W/KYwH/lJMsvtZc4XnvtyIocIRfuGemrGV52i5m993X4FkY+EHiMzoeBM9JvvtyIGCbB Ifsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=q+4j5eefTitewEhAAeT4TqKR8JX0qxwaFctHcdPXaqM=; b=g8cfooV0IXDVFDVyrysAzykkN+aES92Hvj7avuF7/9lSNi45V5g1iTag0dcrIPduJu TXaMOcB8X8tTEdNty+PvH88X8Xy038Re5uEqjDdFl6b0iBrfPFonDJhJrF/yeWBSUeEw vBJtTQv6orZ+Vbs8KxlaQiuk9sZoPz7zCc1o3jwKBwPBxFs8wdbI43G6QgWcSO8vRcR8 uFKii5T/kNV6mTbjo6l6hiVcajXkmciA5aCO1MX9LFTUF9jnCV8b4nvIdpIU+h6JFvqp 6AOQxaIwOHyCP7uzyUCmHsrpmXppzbTGhaLJFefWEsGNpsuh/R5cZSJTz+noKeZLeRPJ n4dA== X-Gm-Message-State: AOAM530d+qeCg8R3PLaA1E+Vd1u8NhHYGOHe2U3V5SlfT1aNKcNm35iH XBbplrX386CzNWuo7gGBZlqjvzfAZtJ4b/fv5lQCTOcgcFUPEwcr9Dw= X-Google-Smtp-Source: ABdhPJydYyLtca7a3jiIINwlio3qGt94AYxEVdO/b2jC1WhvaKc9kQSc54Z6WbrKDSr+xAjvkI3vNXo73XaTTCDTsJU= X-Received: by 2002:a19:5e18:: with SMTP id s24mr10740069lfb.545.1623642363412; Sun, 13 Jun 2021 20:46:03 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::134; envelope-from=hongyi.zhao@gmail.com; helo=mail-lf1-x134.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: auctex-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussion list for AUCTeX developers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: auctex-devel-bounces+gead-auctex-devel=m.gmane-mx.org@gnu.org Original-Sender: "auctex-devel" Xref: news.gmane.io gmane.emacs.auctex.devel:6259 gmane.emacs.help:130802 Archived-At: On Ubuntu 20.04, I use the latest git master Emacs version compiled by myself. I install and load auctex's git master version with the following bootstrap code in `~/.emacs.d/init.el': ;;Bootstrap auctex via straight (straight-use-package `( auctex :type git :host nil :repo "https://git.savannah.gnu.org/git/auctex.git" :pre-build ,(pcase system-type (`berkeley-unix '("gmake")) (_ '( ;("bash" "-c" "cd ~/.emacs.d/straight/repos/auctex") ("./autogen.sh") ("./configure") ("make") ("sudo" "make" "install")))))) (load "auctex.el" nil t t) (load "preview-latex.el" nil t t) ;;; auctex config ends here Then I try to test auctex with the following LaTeX sample file: %% LaTeX sample file \documentclass{paper} \usepackage{hyperref} \begin{document} See \href{http://www.fulviofrisone.com/attachments/article/480/Ballentine%20L.%20Quantum%20mechanics%20-%20a%20modern%20development%20(1998)(T)(673s).pdf}{page 98} \end{document} %% LaTeX sample file ends here When I put the point after the `{page 98}' and hit RET, the LaTeX file will be automatically completed into the following: %% LaTeX sample file \documentclass{paper} \usepackage{hyperref} \begin{document} See \href{http://www.fulviofrisone.com/attachments/article/480/Ballentine%20L.%20Quantum%20mechanics%20-%20a%20modern%20development%20(1998)(T)(673s).pdf}{page % 98} \end{document} %% LaTeX sample file ends here As you can see, the auto-completed typesetting result is wrong due to the leading `%' before ` 98}'. Any hints for this problem? Regards -- Assoc. Prof. Hongyi Zhao Theory and Simulation of Materials Hebei Vocational University of Technology and Engineering NO. 552 North Gangtie Road, Xingtai, China