From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bob Rogers Newsgroups: gmane.emacs.devel Subject: Verifying tags in the wrong file Date: Wed, 9 Nov 2022 12:57:18 -0800 Message-ID: <25452.5166.879297.777509@orion.rgrjr.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15319"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Emacs developers To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Nov 09 21:57:50 2022 Return-path: Envelope-to: ged-emacs-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 1oss8q-0003op-EM for ged-emacs-devel@m.gmane-mx.org; Wed, 09 Nov 2022 21:57:48 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oss8T-00063C-OZ; Wed, 09 Nov 2022 15:57:26 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oss8S-00062q-DI for emacs-devel@gnu.org; Wed, 09 Nov 2022 15:57:24 -0500 Original-Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oss8Q-0002pB-Gr for emacs-devel@gnu.org; Wed, 09 Nov 2022 15:57:24 -0500 Original-Received: by mail-pj1-x1034.google.com with SMTP id m14-20020a17090a3f8e00b00212dab39bcdso3038869pjc.0 for ; Wed, 09 Nov 2022 12:57:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rgrjr-com.20210112.gappssmtp.com; s=20210112; h=references:in-reply-to:subject:cc:to:from:date:message-id :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=AJbK/RAxGji/DIQdBvsYLJsY/AI24L4cEVQ2YDRgf/I=; b=Wz40SXKL940LxhGT34It7CZh8gLTtNJ3vYhSjW7rLGX22/TZtjSDD0fpKUpW6a+M2z ZyIZCtPm9hIXFb7bqB9bbqLPbf87zEygqR5YjWfs6bSgQpYoqd5uvrUCxvKKwPvBfuhO q1HuaN0m83OZHInTi8yZMgnny8qmStrq7c6ex9o6lEoy45WeAHoHhaen4TDTZ7L+djL2 dh/69aMOnGzt2ZQSZNMxsZ7bf+1DfW0ekzS5r/QRwV481guqPmIrYVaC9nKHnieMOkVq vQWhzZ+SDPLH4CDXXrbluHSpiKW/MPn4LYwrpezgYuoK666LgShmKHMnzVOVRcA9nXsI /yUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=references:in-reply-to:subject:cc:to:from:date:message-id :content-transfer-encoding:mime-version:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=AJbK/RAxGji/DIQdBvsYLJsY/AI24L4cEVQ2YDRgf/I=; b=0kPTDTxCsbNOWKhlYIyxVp2ih1eBGNgysU7OeYZrahqic1h4jkeiV5lQyy0CYNHt0V NzCk8N5mrm95yDvrvauwva1x+Y3zFgRym4g5VO6Ra+GAlpxquPRPcaiFfouZDbbcWVEu i8bTvvrJ40wW88yQBJrXTW8NgtsykbkbJ52aU48wXH+3ocLsshC4QQLMIiWkI+4/K4I9 wgD9mXZDNi9j5o8BioSM3eZVbNWhABnzSipuDwXig2GZvH3UaIxsxF1Z1Nro8RMbqtdY rbpVeB4L72RRVHEuXKClSQ95ua3EnqKiqryg3AFpT9Ss9lAoYIxFeWcLVj6XLbTUCnlY moxg== X-Gm-Message-State: ACrzQf27rpS1ong7ITDuPa7KkcSlmtHWZiylZMN09A8d5hOLUxw40ZoV mRF9mlz9qJtFAR7t4cqdKOCTVA== X-Google-Smtp-Source: AMsMyM72qn8/8JXqSQ0xiM0CCae6Hob/k7prUMKsrXGwfAgYBLUlPdRbRvbP8liuFVTLGEj19VMwEw== X-Received: by 2002:a17:903:32cb:b0:187:4b3a:15f3 with SMTP id i11-20020a17090332cb00b001874b3a15f3mr39868631plr.5.1668027440596; Wed, 09 Nov 2022 12:57:20 -0800 (PST) Original-Received: from orion.rgrjr.com ([2600:1700:7c2c:e000::24]) by smtp.gmail.com with ESMTPSA id b30-20020a62a11e000000b0056dde9895e2sm8691994pff.30.2022.11.09.12.57.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Nov 2022 12:57:20 -0800 (PST) In-Reply-To: X-Mailer: VM 8.2.0b under 29.0.50 (x86_64-pc-linux-gnu) Received-SPF: none client-ip=2607:f8b0:4864:20::1034; envelope-from=rogers@rgrjr.com; helo=mail-pj1-x1034.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:299435 Archived-At: From: Juanma Barranquero Date: Wed, 9 Nov 2022 12:46:58 +0100 M-x load-library etags M-: (tags-verify-table "any-file-not-tags") It returns nil and leaves behind a buffer visiting the file, in Tags Table mode. Not nice, but more or less as expected. Not a bug. However, if you verify a (no tags) file already being visited in a buffer, it returns nil and *leaves* the buffer in Tags Table mode! Well, you'll say, "don't do that". Ok, except that you can do it by accident, for example if you're using bs-show and happen to type "t" in the wrong line. Which, arguably, could be fixed in bs (though I think it's a bug in etags.el, not bs.el), except that I don't think there's a tags-table-buffer-p or equivalent to check that the buffer contains a Tags Table. The way to test it seems to be `tags-verify-table'... I had a similar issue recently (see bug#54133 [1]) though coming from buffer-menu-mode. I would recommend filing a bug report, though the upshot was that in some situations putting the buffer into tags-table-mode is TRT, but making it harder to do by accident is also a good thing. -- Bob Rogers http://www.rgrjr.com/ [1] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=54133