From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arthur Miller Newsgroups: gmane.emacs.devel Subject: Re: Missing snprintf in ucrt mingw + vc-refresh in find-file hook? Date: Tue, 13 Feb 2024 15:30:00 +0100 Message-ID: References: <6aed5106-b78c-49f1-8caa-a7f9d34c161b@gutov.dev> <207528e2-6bec-436e-8868-8e7b707133f6@gutov.dev> <86sf1wpjui.fsf@gnu.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="36233"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: dmitry@gutov.dev, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Feb 13 21:09:44 2024 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 1rZz67-0009FS-90 for ged-emacs-devel@m.gmane-mx.org; Tue, 13 Feb 2024 21:09:44 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rZyzy-0003fE-3b; Tue, 13 Feb 2024 15:03:23 -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 1rZtnc-0005ib-1t for emacs-devel@gnu.org; Tue, 13 Feb 2024 09:30:16 -0500 Original-Received: from mail-db8eur05olkn2070.outbound.protection.outlook.com ([40.92.89.70] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rZtnW-0006MU-8Y; Tue, 13 Feb 2024 09:30:15 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AP0qiVUPa89jlxBjKGwPrXJemMMnUk/2/nL7eNexjTvaGHS9TUKIbE7MhsD5f+v+xa7nkbAjuKdqat6rI3vwQAOJGvigfyHtYn9DDnZJhwVuZv0QcRppF1ZhdDT6O/BBnx2mupuDh5+vDJbiLtKXBPZ1T/JzzxrU/J3X4K8YIzeOOFQQu6edAViFtgV1Hjzzs39TC+G6Szvyh8LtVNxlJuaV5qKoDR4717HiqL5mnCgLy2mLDK0iEsygONMPIq3BG/Oze9IJbztlhBLMSiM1jgW6nn0KGPdsKHpyeX2UabvmBm/Qf35akYCa7G0akMXzVAWlFTh35cGZoPZ+BkLs/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=wxSHmJ1CQg++/PF4WDbD9QwzN8Ky/dRBOmruOln04PQ=; b=nKigzIwZsHFdVXQnZHM4wa8KuWJEBNzYNshSCwmEw2sYB02iDR+UnnPAEC+mBItisueRhdl8ygv3sWk7ExnhDvv3rGp/DAnvuawe+eqzL6MSxdvGWxenEWGDP8NGn1gfgiQL7iFTQvqO7JzRJN504I8JirmQKroYw3AvwCEpUOdfJV8aO0ZCCZKbNVZXfduwc+/lbAro8PiwQwIg4Ad1k/u7XOPRHVjl7vrTRFrDQ4tDSGzNznHnX9vk6PMbnx0BBRHYE6zEZmIqPhpaySPMY6qYPx1g+oS2BGXpJ7lslpErhZ7IuKZYc4t/KFPk7H2L+VkyfqiJmJM0G32vQiiagg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wxSHmJ1CQg++/PF4WDbD9QwzN8Ky/dRBOmruOln04PQ=; b=IKShWSjyvkvIWKDLVoCWTwiGzKH0MYOxkrduqOVnnGH5n5t68jCn+o80V2e1t2UtK05YfD3/vZNdrwnM5Ailhg2d1hQ/pVY3mMcYhO7Nn4RmQWIllWewt7TlYEM10NtQaR09OLHlnxJPj+2HG94A01ASJb/bSGf/AWTHEOrKsZpHhEWhZftxXs642MW9776mMr5SvEQw4fROkpIJ5lsmrOqv+/gy4vIj3V8xFC463E4mv5HPcKRHmP81s3NlO10EeHqy+x4zWqW0LTIQwVzetP9BDACILEDzrGXPNYEn7cmuUGjA9pSRiCIzf60gVZHEATB8J5KVwEyA5CUUVpazPg== Original-Received: from DU2PR02MB10109.eurprd02.prod.outlook.com (2603:10a6:10:497::14) by DBBPR02MB10796.eurprd02.prod.outlook.com (2603:10a6:10:530::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7270.39; Tue, 13 Feb 2024 14:30:04 +0000 Original-Received: from DU2PR02MB10109.eurprd02.prod.outlook.com ([fe80::1752:9b0:4c48:15f8]) by DU2PR02MB10109.eurprd02.prod.outlook.com ([fe80::1752:9b0:4c48:15f8%7]) with mapi id 15.20.7270.036; Tue, 13 Feb 2024 14:30:04 +0000 In-Reply-To: <86sf1wpjui.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 13 Feb 2024 08:36:08 -0500") X-TMN: [2iaNQk3U8p0iJZDINLJuuk7FmYhkO6Cn] X-ClientProxiedBy: OS6P279CA0038.NORP279.PROD.OUTLOOK.COM (2603:10a6:e10:32::11) To DU2PR02MB10109.eurprd02.prod.outlook.com (2603:10a6:10:497::14) X-Microsoft-Original-Message-ID: <867cj8igif.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR02MB10109:EE_|DBBPR02MB10796:EE_ X-MS-Office365-Filtering-Correlation-Id: 1e971d58-dd88-4460-a1e0-08dc2ca04495 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: HjuG9XgTjw/7LKs31BvX16hBdAaOUOUmJewQkZeRfP4+kRDu+WNIxd9RHPsC5AEI/dwl41aCb1iUDZz0RpyRORGITRPwF0+TJGK+d5naRZdbSe0MhmwvNjLBeRX6aNEQb0WU8J07ysP9VHxn1NRuxpQhYYKtIUDG6aYGDUTb9lvh+Fhrq7KM8kwzmPvGpi8idDkWv4aoQugtvyZI1qizgPUYLq0a9SFT7vfiiVTBkmWzq6oBrIxxz9vaPkUyDYr5hYON+4DnkfR5cY94PWKG+qYdxlEqeUKJhwqCWIChWmwoMEPdWeVwyM17IsgCpE9Uw78u4dGu1Q3RE1YaSdE+CTYp7Wj9t4tHueL8ngl0bWskGz4jMCVzkyi0+GjeIr73iFFQ7pZMi17Flmvf8as0jERTWU1ugynbfzAvPJDHERN3OWvuUefvLgHvB5/n2cjpucMJzstr//oCtjhcwGCvqcKz1QsY59AZDPNzvdK1WmDiUjKv08vdQorfOdEKmJEEJEhkpjkEBg9ax/ayDA54Cq370we4aUH5PnIl467J5kYnUX0+wUUT4hHbc8J477uf7Ik5/NH3gNIpJctvTjQebNwWZ0b+qWZ8HzP57JHWkdY= X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?cc397isOLkPdRCciTD8maROxH+dsH+9VlbLj5GRsVD3C7CVpVXVSUWOhbxaU?= =?us-ascii?Q?ePEI4KQIUDIAz7Wq9xAz94EiQRlwVhEvmkFwh4jpdLWJ4Pbp6fWCBAfxHCYj?= =?us-ascii?Q?x/ogDpmtb4dIQ4eJsymwHtdWyphIL4oBkee0Nc8R7YlQoz2ZIC+BscwmnVes?= =?us-ascii?Q?EfViC1p74BwDezYqIz6xoy/jCIpzbuj5M5O1rbMC0esUSRGy/PdSEgvKyzCd?= =?us-ascii?Q?XndtfmSzDcfHNHefZ/jILy18tix2U9x8Ak7LLLNL/0h629usUH4NBiyjfarp?= =?us-ascii?Q?l/8n5oBt1/Q8aiBxouZ5RsWIV7eVbZN0tK7utdhO/vvAQwYkKhp2PT2vyjCk?= =?us-ascii?Q?lxs5bIK+ai9O43qnr93I69FropULiT6JsoNVHQaP8Zu0r4s2LUW21NxKR9J5?= =?us-ascii?Q?RKm1N1Cq+mOtv27irsHoo4B9qlY5bpFSnpwMNA3F6QWbhHurcbh6p6/cNm2f?= =?us-ascii?Q?30eUUrXefr6A6H6q36VPECukivPPVXS82hy7rIRF2IJ1FIZs8kUZwqJNf1zy?= =?us-ascii?Q?J/pB8qIeoTzeAYILqHto4orjiXWKCq902Y0Mb02ikT+qOKSttheXmqihO5Jf?= =?us-ascii?Q?zqE7cCcIgmRioPxozCQ6/l9MRzP20iMYN7drqX1esh/tLQti9ijnSe4loVHN?= =?us-ascii?Q?OP X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-ab7de.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 1e971d58-dd88-4460-a1e0-08dc2ca04495 X-MS-Exchange-CrossTenant-AuthSource: DU2PR02MB10109.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Feb 2024 14:30:04.1069 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR02MB10796 Received-SPF: pass client-ip=40.92.89.70; envelope-from=arthur.miller@live.com; helo=EUR05-DB8-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 13 Feb 2024 15:02:04 -0500 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:316186 Archived-At: Eli Zaretskii writes: >> From: Arthur Miller >> Cc: emacs-devel@gnu.org >> Date: Tue, 13 Feb 2024 10:47:33 +0100 >> >> I wasn't even aware this was going on, untill yesterday. I understand that some >> users like to see diverse stuff in their modeline, statusbars, powerlines, >> command prompts and other widgets. That is fine; if users want it, give it to >> them. >> >> But I am not such a user, and this feels a bit too much to have it auto >> on. This can get triggered automatically in save places; for example I have save >> place on, so when I open a file, Emacs will display cursor at the same place >> where I left. I see that it gets triggred in some places with Helm >> completion. Basically everything I have nowdays is in Git, inclusive my entire >> emacs.d folder. That means I am constantly starting and killing git processes, >> and I don't even care about that info on my modeline. I look barely at modeline; >> sometimes I take a look at the clock or line/column number. > > I understand your POV, but this is turned on by default in Emacs long > ago. So the default cannot be changed just because you personally Yes, I have already understood that from the replies ysterday :). I never realized that was going on under the hood. If you don't want to change the defualt at least let us have an easy way to disable it. > dislike it. Instead, I suggest that you change the default value of > mode-line format locally. Or remove vc-refresh-state from I don't think it even shows on my modeline; I have no idea even where in the modline to look for it. My modeline is already very simplified, with most of the stuff diminished or removed. As said, I noticed first from that backtrace yesterday. > find-file-hook. Or try playing with the value of vc-display-status. > Or some other change that could do what you want; look in vc-hooks.el > for ideas. Yes, I did play with vc-display-status; setting it to nil does not do what you suggest it will do. It still triggers git process. I have to manually remove the vc-refresh from the hook for find-file. At least in 29.2_1 or turn-off everything by setting backends to nil. I see in the master that code for vc-display-status has changed and there are some options now, but there is no :set function and option to completely disable it. I haven't built yet from the master, so I can't tell how well it works to just choose 'backend as an option in this regards. There is also the save file stuff which is implemented differently. As I asked Dmitry, is there any special reason why is it not implemented via after-save-hook? If it isn't I can hack it and use after-save-hook instead which than lets me to simply hack defcustom for vd-display-status with :set function to add/remove vc-refresh to/from relevant hooks. >> If you consider that people are complaining quite a lot about Emacs been too >> slow on Windows, than I would consider if this is something that has to be on by >> default. > > Git is not slow on MS-Windows; I posted the numbers I measured to show > that. Git is just much faster on GNU/Linux, so people who are > accustomed to its speed on the latter complain when they need to work > on the former. IOW, it's a "relative complaint", not an "absolute > complaint". Yesterday, about an hour after I sent email here, someone posted this claiming that git interactions slow down vc-mode: https://www.reddit.com/r/emacs/comments/1ahx90f/if_you_would_like_a_new_feature_in_emacs_v30_what/kq2sxml/?context=3 It could be a moot or it could be something in it; I don't know. I don't know why people experience that Emacs is slow on Windows.I experience it myself too and I haven't blamed it on anything specific yet. I have thoughts that it perhaps is mingw/msys runtime; but I don't know. I didn't say Git specific is slow. Perhaps it is a combination of things that make Emacs slow. I don't know. You are monitoring Reddit every day more or less, and see yourself that people are not complaining on anything specifically. Anyway, regardless of how fast Git or Emacs are, if I do not value to see some statusline update, I don't think I should spend CPU cycles and battery life on it, regardless how slow or fast it may be.