From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Scott Otterson Newsgroups: gmane.emacs.bugs Subject: bug#51758: 27.2; Backtrace put in home dir, not current dir Date: Tue, 20 Sep 2022 10:02:00 -0700 Message-ID: References: <87bkrajkwj.fsf@gnus.org> <83r106w6x9.fsf@gnu.org> <87bkragpra.fsf@gnus.org> <83h712w2c8.fsf@gnu.org> <877d1ydro5.fsf@gnus.org> <83czbqvygn.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000088150605e91ecbca" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36027"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 51758@debbugs.gnu.org, Lars Ingebrigtsen To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 20 23:44:53 2022 Return-path: Envelope-to: geb-bug-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 1oal2x-0009C4-IM for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 20 Sep 2022 23:44:51 +0200 Original-Received: from localhost ([::1]:46714 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oal2w-0004E7-K9 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 20 Sep 2022 17:44:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53296) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oageF-0001Kj-6j for bug-gnu-emacs@gnu.org; Tue, 20 Sep 2022 13:03:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60432) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oageE-00070w-C7 for bug-gnu-emacs@gnu.org; Tue, 20 Sep 2022 13:03:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oageD-0002NT-UT for bug-gnu-emacs@gnu.org; Tue, 20 Sep 2022 13:03:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Scott Otterson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 20 Sep 2022 17:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51758 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 51758-submit@debbugs.gnu.org id=B51758.16636933659117 (code B ref 51758); Tue, 20 Sep 2022 17:03:01 +0000 Original-Received: (at 51758) by debbugs.gnu.org; 20 Sep 2022 17:02:45 +0000 Original-Received: from localhost ([127.0.0.1]:59510 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oagdx-0002My-Dd for submit@debbugs.gnu.org; Tue, 20 Sep 2022 13:02:45 -0400 Original-Received: from mail-vs1-f46.google.com ([209.85.217.46]:37818) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oagdu-0002Mk-Gt for 51758@debbugs.gnu.org; Tue, 20 Sep 2022 13:02:43 -0400 Original-Received: by mail-vs1-f46.google.com with SMTP id u189so3831946vsb.4 for <51758@debbugs.gnu.org>; Tue, 20 Sep 2022 10:02:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharpleaf-org.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=s9KLUfYIPUd5nRbUKcvNCQsXfWSX5WTb0HTbFmP9mtM=; b=rzLpMw1HkpUJzDRlGDFFyPPvHvNWYI8xq/07BFr8hurFK4xCmCPKI5/4un+QN+S0OH L53n7Ox4+j++k+7sL08lBBg4gB8wGJ+M0BuknwpoY87Hn1QfWdvMASHduKktuCTsE2NJ Ltzt8zwKtBMGT1e+4PVdVvydaj5MYTZTodNqTH5mYlgvnt7pnwSPU7DyW3Yxm+dMmUP+ QmS+yhqzQwrs4BqLa+d08HymD+Uaxi/7AZgLP9dyNF54E7DTHnDYMhK247dZIEzWEWOF 7ECQ5/NZusOMoLtCeOsGxpP7QEbkYAC3XJNbDJOqH7D28eEdQfYtu4UtEfznCIdKQg4/ fKYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=s9KLUfYIPUd5nRbUKcvNCQsXfWSX5WTb0HTbFmP9mtM=; b=isAGCf/Gkrt2oVNXo716hfON3r2gbok9RR6k2lIDWnRMFpmoImt0KLQauLCqs2RhnX Yh92WcG6rwm0q8AuiWqWC1ZLaagdUuK27QhyyXtikv9YN/zPnh5pn6HI4Oh+iaF6ZmXL f1oKFx/Mguck6/CIjjN7X6e6mNbOkvw5cLqtKF/B1FieVfJsVgO+l0z9a6xnJF8Z6tR4 s5HTG9iujm71yCJcna2LCfbk8DPhLQZ07jNvbJaUnqZNh7WhlVmP7aNA8SHh14+8Ll+P YVqXSJV4v7ycY4kwCeSrvV54RyYQJZfdYERq8AE2C/vUPdRXQA8WervCOvO/iC9gZ7ac DCEw== X-Gm-Message-State: ACrzQf3vAOl8oNhQTIOpyiTG5bBH/QJ+4iDiK9luOcwTIC/X78V9zzU9 6qSJw8+9Zs0+pAQoG36hi4E3coNpttZDILqhkxeBsg== X-Google-Smtp-Source: AMsMyM5KJD1MWk3btJzPg9x9ZnwJiHuhhySiKpdfUWuVsFrAPy/zdPBY4nBFKd6DsUzLvr99d2Lg69zv3iIbGYtLUvo= X-Received: by 2002:a05:6102:a84:b0:357:c234:8041 with SMTP id n4-20020a0561020a8400b00357c2348041mr8945321vsg.25.1663693356531; Tue, 20 Sep 2022 10:02:36 -0700 (PDT) In-Reply-To: <83czbqvygn.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:243238 Archived-At: --00000000000088150605e91ecbca Content-Type: text/plain; charset="UTF-8" Maybe the solution is to put it in some totally unambiguous place: ~/.emacs.crashdump (or whatever) and then change the docs to match. On Tue, Sep 20, 2022 at 8:48 AM Eli Zaretskii wrote: > > From: Lars Ingebrigtsen > > Cc: Scott Otterson , 51758@debbugs.gnu.org > > Date: Tue, 20 Sep 2022 16:52:26 +0200 > > > > Eli Zaretskii writes: > > > > >> That's right, I thought that the "current directory" was the > > >> `current-directory'. Like most people would, I'd > > >> guess. > > > > > > What is your interpretation of current-directory in this case? Where > > > do you think that is? > > > > "The value of `current-directory' where the user was when the crash > > happened" would be the natural interpretation. > > You mean default-directory, I presume? > > The problem, as I explained, is that there's a different one in every > buffer, and there could be many of them. As far as users are > concerned, Emacs doesn't have a well-defined notion of "current > directory", so saying "where the user was" makes little sense with > Emacs. > > > Why not just change the message to "the directory Emacs was started > > from"? That should be clear. > > I'm okay with that, I just fear that many users won't know where that > is. On MS-Windows, the starting directory can (and usually is) > determined by the desktop shortcut used to start Emacs, and people > rarely are aware where is that. > --00000000000088150605e91ecbca Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Maybe the solution is to put it in some totally unamb= iguous place:

=C2=A0 ~/.emacs.crashdump (or whatev= er)

=C2=A0and then change the docs to match.

On Tue, Sep 20, 2022 at 8:48 AM Eli Zaretskii <eliz@gnu.org> wrote:
> From: Lars Ingebrigtsen <larsi@gnus.org>
> Cc: Scott Otterson <scotto@sharpleaf.org>,=C2=A0 51758@debbugs.gnu.org
> Date: Tue, 20 Sep 2022 16:52:26 +0200
>
> Eli Zaretskii <el= iz@gnu.org> writes:
>
> >> That's right, I thought that the "current directory&= quot; was the
> >> `current-directory'.=C2=A0 Like most people would, I'= d
> >> guess.
> >
> > What is your interpretation of current-directory in this case?=C2= =A0 Where
> > do you think that is?
>
> "The value of `current-directory' where the user was when the= crash
> happened" would be the natural interpretation.

You mean default-directory, I presume?

The problem, as I explained, is that there's a different one in every buffer, and there could be many of them.=C2=A0 As far as users are
concerned, Emacs doesn't have a well-defined notion of "current directory", so saying "where the user was" makes little sens= e with
Emacs.

> Why not just change the message to "the directory Emacs was start= ed
> from"?=C2=A0 That should be clear.

I'm okay with that, I just fear that many users won't know where th= at
is.=C2=A0 On MS-Windows, the starting directory can (and usually is)
determined by the desktop shortcut used to start Emacs, and people
rarely are aware where is that.
--00000000000088150605e91ecbca--