From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pankaj Jangid Newsgroups: gmane.emacs.devel Subject: Hunting the culprit package Date: Wed, 31 Aug 2022 11:11:18 +0530 Message-ID: <87zgflc6m9.fsf@codeisgreat.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18292"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) To: Emacs Development Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Aug 31 07:43:25 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 1oTGVY-0004eO-BG for ged-emacs-devel@m.gmane-mx.org; Wed, 31 Aug 2022 07:43:24 +0200 Original-Received: from localhost ([::1]:51362 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oTGVX-0002Jk-79 for ged-emacs-devel@m.gmane-mx.org; Wed, 31 Aug 2022 01:43:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58270) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTGTf-0001ci-8Q for emacs-devel@gnu.org; Wed, 31 Aug 2022 01:41:27 -0400 Original-Received: from mail-pg1-x532.google.com ([2607:f8b0:4864:20::532]:40753) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oTGTc-0007Ih-SB for emacs-devel@gnu.org; Wed, 31 Aug 2022 01:41:26 -0400 Original-Received: by mail-pg1-x532.google.com with SMTP id b196so2915458pga.7 for ; Tue, 30 Aug 2022 22:41:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeisgreat-org.20210112.gappssmtp.com; s=20210112; h=mime-version:user-agent:message-id:date:mail-followup-to:subject:to :from:from:to:cc; bh=dmlsrxQxTlz2E3l01rgyBNbj+XynyAjAnkP1QkiFmtM=; b=gNiCEiyCy18qMJP1cf3bcK68LKxOCp5FYFrw3HSj0aQn6QrDNEgUW1rBzzXWUBbHm2 gPwjoWipZwRQnM0QR/SOrNsOzWTacppVJdPBw64T96SYjOcczaNG5Yi34IKlSiOKSQKx rbqgm3MGciIylFcJwXL5//rjA1wXCUwx6kQGXp2qQKdxdvVb5eQDsTIKZkaaXoTD/Rne mrXaK32fgtrxUBZKvfF5hFSBHTCBI085KRZlXwmAUWCfRHgQODSTjGO7b3EFXWSvxv9S V2hlr2xzaiTY20f55XbBHbfz1j4afnTbGihBWn9C0vkwxHJokgernimWtVEWipvwQxji +aPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:date:mail-followup-to:subject:to :from:x-gm-message-state:from:to:cc; bh=dmlsrxQxTlz2E3l01rgyBNbj+XynyAjAnkP1QkiFmtM=; b=XNe8bTvOzsCtRCMD5Lvn+SY107Yr6MIOZ+FU36a1aFLYW/oYMMJWUCn47NbgzpbnpC 7TGz9WKj4EVhpH8yUx4FTPMmnJYCB/Vtp17cwglTU5XIr6/AbcdFRkTc7rt4GsNJmd3H Et94FxsVbbdpH/OyAHIfh5gkmRv0gbOaL9Sxqn66GGLw4z0PNGrIOynFMc8u1kC+O7Q9 qifm9oT5g2tN6VlAl5cudF5DbBhdCHZ4Ewkr9I6M7T9fBR/McMOP/8EoQ+hj74bhfFDV EUgnQiR1rEBNcsO4LPIazVc0gVL+Fl3hEJFa0NWVPLEa86oKw3Z/rI2ccPrs3b778A6h XCKg== X-Gm-Message-State: ACgBeo2WRyxVorVlivRiy4GqlW9jnHgN4m5k54CRzz4NFXOs2w2TcdkA WZMvtMly3KsrhxRK+TBFhN2Wk3tTIcavkw== X-Google-Smtp-Source: AA6agR4gJxok22qYmDcTUQt9tRMcFkmuHk8Oo7yBElphsz2jeQq7XRM5yQ9w/+tb1uBbquGOBXjZ7Q== X-Received: by 2002:a65:5847:0:b0:42a:df5:1035 with SMTP id s7-20020a655847000000b0042a0df51035mr20673732pgr.248.1661924482758; Tue, 30 Aug 2022 22:41:22 -0700 (PDT) Original-Received: from anant ([49.36.236.45]) by smtp.gmail.com with ESMTPSA id y5-20020aa78f25000000b0052e82c7d91bsm10359363pfr.135.2022.08.30.22.41.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Aug 2022 22:41:22 -0700 (PDT) Mail-Followup-To: Emacs Development Received-SPF: none client-ip=2607:f8b0:4864:20::532; envelope-from=pankaj@codeisgreat.com; helo=mail-pg1-x532.google.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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" Xref: news.gmane.io gmane.emacs.devel:294402 Archived-At: I am trying to find out which package inside my ~/.emacs.d/elpa is the culprit. One of the packages is introducing a bug. I know this because when I move my ~/.emacs.d/elpa directory and launch emacs without any packages installed then it works fine. Also, when I install all the packages afresh, then also emacs works fine i.e. a freshly created ~/.emacs.d/elpa is *not* creating any issue. So something is wrong in my old ~/.emacs.d/elpa. So I tried to figure out what is happening in my old ~/.emacs.d/elpa directory. Before that I restored my old ~/.emacs.d/elpa and upgraded all the packages to latest. And then compared old an new directories using "diff -r". Strangely, the diff output is 900+ lines. My question is that - why there is a difference? I have refreshed all the packages in old ~/.emacs.d/elpa directory and comparing it with a freshly created ~/.emacs.d/elpa. And the difference is not in cache etc. "diff -r" is clearly showing differences in source files. Sample, --8<---------------cut here---------------start------------->8--- diff -r elpa/dash-20220608.1931/dash-autoloads.el elnew/dash-20220608.1931/dash-autoloads.el 42c42 < (fn &optional ARG)" t nil) --- > (fn &optional ARG)" t) 66c66 < (fn &optional ARG)" t nil) --- > (fn &optional ARG)" t) 69c69 < This allows Dash symbols to be looked up with \\[info-lookup-symbol]." t nil) --- > This allows Dash symbols to be looked up with \\[info-lookup-symbol]." t) ... diff -r elpa/yaml-mode-20220104.1503/yaml-mode-pkg.el elnew/yaml-mode-20220104.1503/yaml-mode-pkg.el 2c2 < (define-package "yaml-mode" "20220104.1503" "Major mode for editing YAML files" '((emacs "24.1")) :commit "535273d5a1eb76999d20afbcf4d9f056d8ffd2da" :authors '(("Yoshiki Kurihara" . "clouder@gmail.com") ("Marshall T. Vandegrift" . "llasram@gmail.com")) :maintainer '("Vasilij Schneidermann" . "mail@vasilij.de") :keywords '("data" "yaml") :url "https://github.com/yoshiki/yaml-mode") --- > (define-package "yaml-mode" "20220104.1503" "Major mode for editing YAML files" '((emacs "24.1")) :commit "a79d2a7b9281f8c56f461d717b1ba40fc58e22fd" :authors '(("Yoshiki Kurihara" . "clouder@gmail.com") ("Marshall T. Vandegrift" . "llasram@gmail.com")) :maintainer '("Vasilij Schneidermann" . "mail@vasilij.de") :keywords '("data" "yaml") :url "https://github.com/yoshiki/yaml-mode") --8<---------------cut here---------------end--------------->8--- Also, if this is not the correct way to approach then how to find which the old package that was creating the issue. This is in addition to my earlier question - why there are differences between refreshed upgraded packages and packages installed from scratch. All clues will help. Regards Pankaj