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: write-region & visit flag to shut the chatiness? Date: Thu, 03 Dec 2020 20:52:53 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18471"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Dec 03 21:08:59 2020 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 1kkuuR-0004g4-Hg for ged-emacs-devel@m.gmane-mx.org; Thu, 03 Dec 2020 21:08:59 +0100 Original-Received: from localhost ([::1]:32940 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kkuuQ-0002Pz-Iz for ged-emacs-devel@m.gmane-mx.org; Thu, 03 Dec 2020 15:08:58 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35570) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kkutW-0001vR-DX for emacs-devel@gnu.org; Thu, 03 Dec 2020 15:08:02 -0500 Original-Received: from mail-am7eur06olkn2038.outbound.protection.outlook.com ([40.92.16.38]:15447 helo=EUR06-AM7-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 1kkutT-00088G-VD for emacs-devel@gnu.org; Thu, 03 Dec 2020 15:08:01 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=X+qGlpL7Lj+SaAxSNjxdtGvPAKTRgveQ4lev9a5DOBg1C82oUktpUumtwppjHZbVJEQnwvCsBhUGOQVegupJv2C9oNIimIi+3n5S4Kbl/r0QQ1Ji8cctNTMcBCVzo4hQxbHa0KC1OSW+ivUf6SuXrJuH3iVT7mAc2PaXXlvNIix+Piak2rYzj/gJi8v1Oy3Wvq1YVxSMOShRawIQwVC0x9Yte6Dk0u/GBX9ffI+RsTLCEuoY+er9XTPh7XWkSRAYDicXSjK5eSyEoiChmQ3ooe9Sm888fhZhlDfp6jVzWF9AD5M7S6ytlRWkcwTenOyUwk3cYyI6SK1t93ziRta8MA== 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-SenderADCheck; bh=G4na7sOI05yN/JXGAu8kOB4uYm2O81DYC7z/6Yq/b9w=; b=RoJJpbQpZ1zKpjpLj/hucQlwdG3R13SDP6E6lB8AiaHHdFr/xaWjvibUmnaASwNmZlWbTelo2HPtnXApwvALa+OdZVxdC+BOQ8SKSnwvY+iBM5JZkxHQ/OlP3P0bH0Dx9YCscIgHbhnPeZViVqrIh6lrhXjImOHzPGDbdFjugGasSrMYjYk2IpD3tnQ9xb8TmFPG+iQy/QCnSLIvEL2SVcmdICiAsLcQ89S9KzkWe9HRavZEz8OE4+r+tFyJ50D6+lvl5pcJmkB1WOfxY6RtsYR2USVwJNjcc4cfrtHmBABx/apCs6IIGHpfdvfJIMB0wH5VfrJOnUVsgg61g2K4iQ== 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=G4na7sOI05yN/JXGAu8kOB4uYm2O81DYC7z/6Yq/b9w=; b=DjIFcFQBw2niMYuVYKJWGkX6Mz69iCxV6RkEfErsJ6t5I5RZ/UF2qWgI/fX+X+7JFBQriunIhhTCJeaAw1wRxTCkcKypE9f9LxsKi2Ybtf9Pv4hEqQPxoQF8EKgUtRISyPHChN/S0dRLngzW6jterq4Ij7TnQDnNN+B5UwheNV5aM1L84poPDWjLUD+mKvov8zLg6M8Bc1cACS4h/MzBQI6F4dIFyytSkYg0X11jUh/C2AI2ZXXrA3fu7IFbApU0awKLEWKYGZiaG5wrVXalTQXx15mebA6CYQvaTtLYmkEpHjDo1OXXz8kpDUSxGNNt1Rxm55ylYQX4nL1QauwCNg== Original-Received: from AM7EUR06FT017.eop-eur06.prod.protection.outlook.com (2a01:111:e400:fc36::4d) by AM7EUR06HT050.eop-eur06.prod.protection.outlook.com (2a01:111:e400:fc36::491) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.17; Thu, 3 Dec 2020 19:52:54 +0000 Original-Received: from AM0PR06MB6577.eurprd06.prod.outlook.com (2a01:111:e400:fc36::47) by AM7EUR06FT017.mail.protection.outlook.com (2a01:111:e400:fc36::263) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.17 via Frontend Transport; Thu, 3 Dec 2020 19:52:54 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:864E16A098A60C0F434D2B168782293E4B5F6AC40D6DABB821A054437055890D; UpperCasedChecksum:A869B62CD659D9D7AE6A5174D1E0BE2613987AD8E15B6F4C5395EE7DFA1AEB6A; SizeAsReceived:8382; Count:44 Original-Received: from AM0PR06MB6577.eurprd06.prod.outlook.com ([fe80::9487:8c7d:da00:4993]) by AM0PR06MB6577.eurprd06.prod.outlook.com ([fe80::9487:8c7d:da00:4993%7]) with mapi id 15.20.3632.018; Thu, 3 Dec 2020 19:52:54 +0000 X-TMN: [L6c3CxmwPL6vswONGLZeXzypPxAFclAd] X-ClientProxiedBy: AM6P191CA0059.EURP191.PROD.OUTLOOK.COM (2603:10a6:209:7f::36) To AM0PR06MB6577.eurprd06.prod.outlook.com (2603:10a6:208:19a::23) X-Microsoft-Original-Message-ID: <87eek6hdka.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from pascal.homepc (90.230.29.56) by AM6P191CA0059.EURP191.PROD.OUTLOOK.COM (2603:10a6:209:7f::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.17 via Frontend Transport; Thu, 3 Dec 2020 19:52:53 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 44 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 5a94a05b-1071-450a-94c1-08d897c50604 X-MS-TrafficTypeDiagnostic: AM7EUR06HT050: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4FhG6uakIm4COFkDy6cIjLfQdjwGeOiYsb5Rqd6w8TwvRuvPJF3SYvtcrY1dwzV7Dyxwv4/IMRKMOaMr6TXmd/OuXXhCwo23MrhYrpPfarViSAGsPtaZv00ckbuv0gA/DdsLemlZxBApX3WAwUCBQO2ruTTsxr3FDUmNCZBtoybrseZPl/hUUAdGKPEm/wqFH1kAX7QBQW5EdDrfEixhIw== X-MS-Exchange-AntiSpam-MessageData: MnWMhP/aW9+8nhkeX78MOP+wEIUgTjsWxGTPpviVBr4jdWKdpmNDFJEZL2AyOsixRXG5Loia5tm1+4h45mJ/0V7kApnUjpSpOrT10e2D0MLjmpN/WYgDn+xlepPZdk8hs8JunLHBuyhZ9/OhkQoQRA== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5a94a05b-1071-450a-94c1-08d897c50604 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Dec 2020 19:52:54.4034 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: AM7EUR06FT017.eop-eur06.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7EUR06HT050 Received-SPF: pass client-ip=40.92.16.38; envelope-from=arthur.miller@live.com; helo=EUR06-AM7-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, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:260237 Archived-At: I am building a file by appending lots of data to it. Write-region was literally flooding the message buffer, slowing down Emacs and making message buffer itself unuseful due to load of data. When I looked into info about write-region, it says I can set 'visit' option to something else then nil or t but not string to turn it off? :D :-= ) "Normally, =E2=80=98write-region=E2=80=99 displays the message =E2=80=98Wro= te FILENAME=E2=80=99 in the echo area. This message is inhibited if VISIT is neither =E2=80= =98t=E2=80=99 nor =E2=80=98nil=E2=80=99 nor a string, or if Emacs is operating in ba= tch mode (*note Batch Mode::). This feature is useful for programs that use files for internal purposes, files that the user does not need to know about." I tried and it works; but is that really a proper design? :-) What if someone would like to use visit flag for something else? Mybe it is never used for something else; i don't know :-). I don't even understand why write-region has to echo everything to message buffer by default? I don't expect a function to explicitly tell me "Hey look, I did what I am suppose to do!". I mean (+ x y) does not tell me "Added x and y!" Why that befaviour by default? If it is of interest I can send in a patch and add an optional flag like noverbose or similar; it is not =C3=BCber important, but I think it is ugly and unnecessary convoluted design as it is now.