From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#30075: etags misdetects ruby sharp-bang sequence Date: Thu, 11 Jan 2018 02:36:55 +0300 Message-ID: <808f90cf-3fa8-a72b-35ea-c0e549d96f43@yandex.ru> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------E51E2B87FDF59F12868CEBBD" X-Trace: blaine.gmane.org 1515627380 20363 195.159.176.226 (10 Jan 2018 23:36:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 10 Jan 2018 23:36:20 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:58.0) Gecko/20100101 Thunderbird/58.0 To: 30075@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 11 00:36:16 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eZPuk-0004Z1-Sl for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Jan 2018 00:36:11 +0100 Original-Received: from localhost ([::1]:49688 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZPwi-00030a-Om for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Jan 2018 18:38:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38644) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZPwc-0002zD-ED for bug-gnu-emacs@gnu.org; Wed, 10 Jan 2018 18:38:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eZPwZ-0007kK-3V for bug-gnu-emacs@gnu.org; Wed, 10 Jan 2018 18:38:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43610) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eZPwY-0007jh-PY for bug-gnu-emacs@gnu.org; Wed, 10 Jan 2018 18:38:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eZPwY-0007zC-Fj for bug-gnu-emacs@gnu.org; Wed, 10 Jan 2018 18:38:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 Jan 2018 23:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 30075 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.151562743430640 (code B ref -1); Wed, 10 Jan 2018 23:38:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 Jan 2018 23:37:14 +0000 Original-Received: from localhost ([127.0.0.1]:51507 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eZPvl-0007y6-Iw for submit@debbugs.gnu.org; Wed, 10 Jan 2018 18:37:13 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:47293) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eZPvj-0007xs-O2 for submit@debbugs.gnu.org; Wed, 10 Jan 2018 18:37:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eZPvd-0006uL-Ol for submit@debbugs.gnu.org; Wed, 10 Jan 2018 18:37:06 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:33519) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eZPvd-0006u9-Lc for submit@debbugs.gnu.org; Wed, 10 Jan 2018 18:37:05 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38227) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZPvc-0002io-Kr for bug-gnu-emacs@gnu.org; Wed, 10 Jan 2018 18:37:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eZPvZ-0006qn-FM for bug-gnu-emacs@gnu.org; Wed, 10 Jan 2018 18:37:04 -0500 Original-Received: from mail-lf0-x232.google.com ([2a00:1450:4010:c07::232]:33298) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eZPvZ-0006pl-2z for bug-gnu-emacs@gnu.org; Wed, 10 Jan 2018 18:37:01 -0500 Original-Received: by mail-lf0-x232.google.com with SMTP id j143so746925lfg.0 for ; Wed, 10 Jan 2018 15:37:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:to:from:subject:message-id:date:user-agent:mime-version :content-language; bh=0BZHlQ/BoB5LAsgkSZjhwVP/WKqU4phLYOMc58pg4pc=; b=BWoKCVmhXCjt57qSu824+MQKNsC0BpnwfPqiajFV0fVyBwuWfVkUBT/OpOZAUrne1S JAKVNkJTmLS/Cofr7M7U7QO46BdOpKVTZP9epsvE3mQgcYYLxKfXWgOkKncugH0EKghe iRtKsvbmV4croVedMIqnESKJ4sfT28qN2zDPEoz+uGrgCSZXDLFNOonOesX2cqXS15Kw BZTF/WNr3wK9QnkEnGOuecdger3FJYs8d9PmUMZ7zME63Q7tp9QZo/vzTK0G9J4asNU+ j9ndr/gcxo9yNKOugESQV94+2WR4uonMy2AKHzpwQO9vBaP1ZyiXya7WcaRhPKkU/w6+ ZyIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:to:from:subject:message-id:date :user-agent:mime-version:content-language; bh=0BZHlQ/BoB5LAsgkSZjhwVP/WKqU4phLYOMc58pg4pc=; b=KH8d77kFq/ZFs7iW28dIVDH5v43C8oLU6P7n/6fAbEcAjDhOaL+pEdS80XyCy9bnLZ YzqgjrwDcIA7neMFZ+HAaPXGHxe6xJksCvmmvvRTYEmHI9Hfw7tve96fPbTtdLD/X22B BUxLwcUy+ZnjTTfY2uuvRHNFWpm2+7X1k/B5Er5pBWTIIFDKG7Rfm0qIed37IAxJevm9 n+nGO3TU35mjmXajIej9J0gauPlnlsRGwV/VdEmAjydaUZjPcaMCAMak9ytALqvDPmmu ehMLc6Ti4kRgHmwg2mj3kv/qNJozB6YhavMSt2oTRMj++wCHFO7TJT+6CtzOkBC6lWwk irlQ== X-Gm-Message-State: AKGB3mIS2WaK0oWGPnixaKa+1KYnOXwxHdS/eDKBEPJVgHTeQE5u54I/ WVNkOy0vED0fAKF8cjIp1CUA6kwT X-Google-Smtp-Source: ACJfBourYqTQCCsDfMtZTEQ/8WPiZuGkTprQCCeSx8GNkvkjVBQcrRFCWbIVSOLwEEmgxWgSqodAsA== X-Received: by 10.46.50.25 with SMTP id y25mr12390503ljy.24.1515627419101; Wed, 10 Jan 2018 15:36:59 -0800 (PST) Original-Received: from [192.168.1.174] ([178.252.127.239]) by smtp.googlemail.com with ESMTPSA id q27sm1552750lfa.85.2018.01.10.15.36.57 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Jan 2018 15:36:57 -0800 (PST) Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:142015 Archived-At: This is a multi-part message in MIME format. --------------E51E2B87FDF59F12868CEBBD Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Here's a file that is parsed wrongly when it has no .rb extension. The sharp-bang sequence at the top looks correct to me. Attaching both the input file and the generated tags file. The problem is present both in emacs-26 and master. --------------E51E2B87FDF59F12868CEBBD Content-Type: application/octet-stream; name="BAD_TAGS" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="BAD_TAGS" DApub19leHRfcnVieV90ZXN0LDc2CiAgICAgICAgRGlyLmdsb2Iof2dsb2IBNywxMDQKICAg ICAgICByZXN1bHRzZXRfaGFzaGVzLnJlZHVjZSh/cmVkdWNlATIxLDMzMQo= --------------E51E2B87FDF59F12868CEBBD Content-Type: text/plain; charset=UTF-8; name="no_ext_ruby_test" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="no_ext_ruby_test" IyEvdXNyL2Jpbi9lbnYgcnVieQoKbW9kdWxlIFNpbXBsZUNvdgogIG1vZHVsZSBSZXN1bHRN ZXJnZXIKICAgIGNsYXNzIDw8IHNlbGYKICAgICAgZGVmIHJlc3VsdHNldF9maWxlcwogICAg ICAgIERpci5nbG9iKCkKICAgICAgZW5kCgogICAgICBkZWYgZm9vCiAgICAgICAgcmVzdWx0 c2V0X2ZpbGVzLm1hcCBkbyB8cGF0aHwKICAgICAgICAgIGJlZ2luCiAgICAgICAgICAgIEpT T04ucGFyc2UoRmlsZS5yZWFkKHBhdGgpKQogICAgICAgICAgcmVzY3VlCiAgICAgICAgICAg IHt9CiAgICAgICAgICBlbmQKICAgICAgICBlbmQKICAgICAgZW5kCgogICAgICBkZWYgcmVz dWx0c2V0CiAgICAgICAgcmVzdWx0c2V0X2hhc2hlcy5yZWR1Y2Uoe30sIDptZXJnZSkKICAg ICAgZW5kCiAgICBlbmQKICBlbmQKZW5kCg== --------------E51E2B87FDF59F12868CEBBD--