From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Steinar Bang Newsgroups: gmane.emacs.help Subject: Re: Get "Args out of range" on remote file loaded with tramp on emacs 27 on debian Date: Sun, 19 Sep 2021 12:18:07 +0200 Message-ID: <86k0jcvpgg.fsf@dod.no> References: <87tuirqhqx.fsf@dod.no> <87ilz5rb8c.fsf@gmx.de> <86wnndufnk.fsf@dod.no> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40605"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (windows-nt) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 19 12:19:04 2021 Return-path: Envelope-to: geh-help-gnu-emacs@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 1mRtua-000ALt-9V for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 19 Sep 2021 12:19:04 +0200 Original-Received: from localhost ([::1]:48080 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mRtuY-0001i0-Ui for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 19 Sep 2021 06:19:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56990) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRtts-0001fn-G5 for help-gnu-emacs@gnu.org; Sun, 19 Sep 2021 06:18:21 -0400 Original-Received: from cadalora.default.sbang.bv.iomart.io ([2001:41c9:1:424::90]:35584 helo=cadalora.default.sbang.uk0.bigv.io) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mRttn-0007jX-UN for help-gnu-emacs@gnu.org; Sun, 19 Sep 2021 06:18:20 -0400 Original-Received: from mccoy (unknown [84.210.87.211]) by cadalora.default.sbang.uk0.bigv.io (Postfix) with ESMTPSA id DA8241000E7 for ; Sun, 19 Sep 2021 11:18:09 +0100 (BST) In-Reply-To: <86wnndufnk.fsf@dod.no> (Steinar Bang's message of "Sun, 19 Sep 2021 10:35:11 +0200") Received-SPF: none client-ip=2001:41c9:1:424::90; envelope-from=sb@dod.no; helo=cadalora.default.sbang.uk0.bigv.io X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, KHOP_HELO_FCRDNS=0.399, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:133105 Archived-At: >>>>> Steinar Bang : >>>>> Michael Albinus : >> Does it also happen if you call "emacs -Q"? > No, it does not. With "emacs -Q" the file loads fine. >> If not, bisect your ~/.emacs in order to find the >> culprit. Otherwise, enable backtraces, and show them. > Whew... my .emacs has a history that goes back to 1987 or 1989 or > thereabouts... lots of obsolete config that has never been cleaned up. :-) > But I will try! Ok, I found the culprit, and it was kind of unexpected, in config not related to tramp at all: It's the line (push (concat git-gnus-directory "/lisp") load-path) in ;; Git version of Gnus: ;; Not in actual use but can't be removed as long as I use gnus-sync because ;; gnus-sync use gnus-gethash and this macro has been removed from gnus in emacs 27 (if (not running-emacs25-or-emacs26) (let ((git-gnus-directory (if running-xemacs (concat git-workspace "/gnus.xemacs") (concat git-workspace "/gnus")))) (push (concat git-gnus-directory "/lisp") load-path) (let ((git-gnus-info-dir (concat git-gnus-directory "/texi"))) (push git-gnus-info-dir Info-directory-list)))) The ~/git/gnus/ clone is an obsolete clone from 2016, and as the comment says, have been left alone because I have code that uses gnus-gethash from here. The code that uses is, is something called gnus-sync.el from 2011 (or therabouts), that was a stopgap solution for what is solved by cloud gnus. However, cloud gnus has never worked for me, and since gnus-sync continued to work, I've procrastinated on the troubleshooting. But I guess I have to figure it out now. The author of gnus-sync is also the author (AFAIK) of the cloudy gnusy stuff (Hi Ted!), so I'm probably the only user, 10 years on...?