From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#59309: 29.0.50; `M-x rust-run' is invoking `save-some-buffers' Date: Wed, 16 Nov 2022 15:34:25 +0100 Message-ID: <874juzc6j2.fsf@gmail.com> References: <871qq32du5.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="5129"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59309@debbugs.gnu.org To: Pankaj Jangid Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 16 15:35:27 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 1ovJVe-00014b-NY for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 16 Nov 2022 15:35:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ovJVH-0005Jn-0Q; Wed, 16 Nov 2022 09:35:03 -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 1ovJVG-0005JH-CL for bug-gnu-emacs@gnu.org; Wed, 16 Nov 2022 09:35:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ovJVG-0005Oa-3D for bug-gnu-emacs@gnu.org; Wed, 16 Nov 2022 09:35:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ovJVF-0001sI-R5 for bug-gnu-emacs@gnu.org; Wed, 16 Nov 2022 09:35:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 16 Nov 2022 14:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59309 X-GNU-PR-Package: emacs Original-Received: via spool by 59309-submit@debbugs.gnu.org id=B59309.16686092757165 (code B ref 59309); Wed, 16 Nov 2022 14:35:01 +0000 Original-Received: (at 59309) by debbugs.gnu.org; 16 Nov 2022 14:34:35 +0000 Original-Received: from localhost ([127.0.0.1]:56487 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovJUp-0001rV-5h for submit@debbugs.gnu.org; Wed, 16 Nov 2022 09:34:35 -0500 Original-Received: from mail-wr1-f48.google.com ([209.85.221.48]:46982) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovJUn-0001rI-Jz for 59309@debbugs.gnu.org; Wed, 16 Nov 2022 09:34:34 -0500 Original-Received: by mail-wr1-f48.google.com with SMTP id d9so25508377wrm.13 for <59309@debbugs.gnu.org>; Wed, 16 Nov 2022 06:34:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=dmoXroMVDBKltIcBlZr+31XWR7sxUMbU9trIXcaJeqQ=; b=LUcG/mn62sLKlN2+KrwwO7cM/C8xICydeNk3o/kHyP0J9dJX5bUDHoXO+piXzubAnq RB0DSoICxtLssgytXB6Gd9b09RfEahnwjMZddykqya6FQQ54d6YSG8bj71EY28QkOf+X facDCJyh+K9Kmdq6D4FkuDPjs8mMrCRxRpqF980K0chgfaYisqqlVPdeoQ7wum+trQZV inIKcQS4B2nEiN2DGF3/OsmYx3nkUPoOZ18W/lHGCzG/q+7WCXb0uD2V3Dbtp6/uxN6V Y4kPHqaf/RF0WKbH9UTVn49g/HkEoecmC8Zbo3T2mvGvbK4SwdqUcfbMxRmRhshDGpB+ 0iYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=dmoXroMVDBKltIcBlZr+31XWR7sxUMbU9trIXcaJeqQ=; b=4aDkGM221KsfQuVZL1U4Fp+gxTipQQk6CK3Qvl60qTooUb1eeCVhw7jCmaxi8U/zMS R3tYuAW9529IIqYg8sbkW3CBuocumZgB1KBOehH/vPYN/unZgB1qmUZLCVDqiJu5OcGl OZsC+SP0NUr+dC0Vky+TGYeJ7te4ToO0qnE7i2oT7r3MGU2zTSGNvANKad2t47YLbvJu hmMMXkWHI/NtXop7rAKgBrmu2oowJOaf1CeUJ/dOzMrcnPBwRoeZsuKFuFFuevxKMChY 3LTu3E2E4zb5XezmQqrMOmGZHWJXHfxF2rvCaiup8+hKQFj0uF+/3d0wzSAg56sGGJXf iN8A== X-Gm-Message-State: ANoB5pk3Mi10VLauNgxdzX0zb5FwdH5V468i60xqjUGhMhd7TGLZbz/k 0pGc/TS0AUciSko5jMWnJVZ3YDe5uSY= X-Google-Smtp-Source: AA0mqf7FwlmP6ItlKT3c7XlYlcM+gbSz1mn62IKmYeO3Sdp0uB9D0+wVyMSDg3gj3FLE0FtAXldCYg== X-Received: by 2002:a5d:4c82:0:b0:236:56a6:823e with SMTP id z2-20020a5d4c82000000b0023656a6823emr13961923wrs.495.1668609266947; Wed, 16 Nov 2022 06:34:26 -0800 (PST) Original-Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id k18-20020a05600c1c9200b003b47b80cec3sm2641255wms.42.2022.11.16.06.34.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 06:34:26 -0800 (PST) In-Reply-To: <871qq32du5.fsf@codeisgreat.org> (Pankaj Jangid's message of "Wed, 16 Nov 2022 19:36:42 +0530") 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:248018 Archived-At: >>>>> On Wed, 16 Nov 2022 19:36:42 +0530, Pankaj Jangid said: Pankaj> I added a new task to my configured org file (tasks.org) by invoking Pankaj> org-capture. This makes changes to tasks.org and it remains unsaved Pankaj> until I explicitly save it. But I haven't saved it yet. Pankaj> After adding the task I returned to the rust-mode buffer where I was Pankaj> working. After making changes in my program I pressed `C-c C-c' to Pankaj> invoke `rust-run'. Pankaj> => Emacs asks me to save tasks.org Pankaj> i.e. it invokes `save-some-buffers'. Pankaj> This could be a bug in `rust-mode'. `rust-run' invokes `compile', which runs `save-some-buffers'. You can control that with: compilation-ask-about-save is a variable defined in `loaddefs.el'. Its value is t Non-nil means asks which buffers to save before compiling. Otherwise, it saves all modified buffers without asking. I guess you could ask the `rust-mode' developers to bind that to nil, but the default setting has saved me on numerous occasions. Robert --