From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: [External] : Re: Printing alist pairs to a dedicated buffur Date: Thu, 25 Apr 2024 15:55:36 +0000 Message-ID: References: <87bk65fpsz.fsf@ledu-giraud.fr> <87plukbbod.fsf@ledu-giraud.fr> <87jzkss5w8.fsf@dataswamp.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9921"; mail-complaints-to="usenet@ciao.gmane.io" To: Emanuel Berg , "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 25 17:56:22 2024 Return-path: Envelope-to: geh-help-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 1s01SP-0002Lx-QZ for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 25 Apr 2024 17:56:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s01S0-0008Dk-JW; Thu, 25 Apr 2024 11:55:56 -0400 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 1s01Rv-0008Bj-92 for help-gnu-emacs@gnu.org; Thu, 25 Apr 2024 11:55:51 -0400 Original-Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s01Rt-00010D-5O for help-gnu-emacs@gnu.org; Thu, 25 Apr 2024 11:55:51 -0400 Original-Received: from pps.filterd (m0333521.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 43PFBarG003296; Thu, 25 Apr 2024 15:55:41 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2023-11-20; bh=Kxhg+EEG0rfO7AOrxi7kmUUq25RrIhsGayq7vZgBpE8=; b=cgockZnjy7qQnhM5TXUBDPVjH2HKh10H5bT29efliNDfUIz3lHJEd19kcADQBnO2bQTs PBEgJfLt8kAOjyxZpBI8gbcwOHqMo4M1gx51wO45991+syElhaizeOC3RqyF9dpsAUTw 0Mgb7uSCLoEuIZ0gUa4oFr2stzhqNODb4LwQI9WMdgPu2iYZqwxd0s8LOPsCsEPbV3kB sCofB7YoscaXcm5n4Tjqt0ZFY6rBURxVGAJWVLX/80fMvFGZPlXok343bH1FCNYgKs/A RbMhyh/FCzBNXijXzYzb7ZjEHpYZZaR/LLqgx/RURpGMpSw+xMVdbVQbfPv1aUQ6wYwr vw== Original-Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3xm4mdcb8j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 25 Apr 2024 15:55:41 +0000 Original-Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 43PEmr0T006152; Thu, 25 Apr 2024 15:55:39 GMT Original-Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2168.outbound.protection.outlook.com [104.47.59.168]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3xm45amhrq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 25 Apr 2024 15:55:39 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=F/OFwg2RFmiST42GpeGDHaAycXOka7nEAbXx4VP4O7rrAWJ1MJ1Jup1pJHhuFeApIO3QNRfGvPLzmUqyXXV4ZwyFllDse18xcToWrANE5NwqksE7wnecOFncr/cxYfytlqUjow6CkhI1U5W3XOgeqRR7wwgZc15ogkv3FTR2wQKhMzPshh/tLhatr21wV5hMnYu/FCiCPjXlIIg2FwZz9uqs2k3ieeZYLeoFRXdUKByBIBtTvnXp6ntgztDEjmssvTW241VPwZiTd7YXuKHWO2NPECGrnpb/tSTBkD/VT9cL+GKtSoihIHdjieyxZNN3nKV8VkFvyL1qhjf7Inii5Q== 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=Kxhg+EEG0rfO7AOrxi7kmUUq25RrIhsGayq7vZgBpE8=; b=lm6y4uB9A99bag8HaQdkH5ys/pX98X6MDlMFxKJsNbpYxZL9AHs+mukh6Pls8nod++QB2AFhvEz9SQKdrGXtJfjxH7eCedZjfWTOSz9BK9U2e09uX0MXvfXc9e49y0Yu0XAkdRTm9nXSBsPS9dUBM+4AyPRM4dQZs6XV58xFPHTAtVJQmNHuKElkS7bQ4hvl037TXKstf0K7RUfXcEHrWT3E7KwE+XtLmXNIVHk9DfKNfo5HMpptdHjhwVAVwsedAt85t/IZc35VfIq3ZCe8tY/BdIxp/6V7lpZUuFvFsIUJQQKG9y01b2z7i3LgyDBStARFr0xI5r4dij2b8UsXeg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Kxhg+EEG0rfO7AOrxi7kmUUq25RrIhsGayq7vZgBpE8=; b=gswlracZcPO3KqMwpiK3UfjE6iNZWn6upQnIo2auHgtl8Y7KbFjKyBfZ9MGXTPq9sJ1Ynb1AhQrfvt6ZMRQLHUszx26Od+jdxZ6psYl8OuH9dA9Z1vE5UiPS01aQalBmE6U8VE8uSEtWTVznEZpGqC2/c5oDolZgknP1LQ2Ozzo= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by CYXPR10MB7924.namprd10.prod.outlook.com (2603:10b6:930:e6::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.44; Thu, 25 Apr 2024 15:55:36 +0000 Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::380d:4e6d:faae:a72a]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::380d:4e6d:faae:a72a%7]) with mapi id 15.20.7519.023; Thu, 25 Apr 2024 15:55:36 +0000 Thread-Topic: [External] : Re: Printing alist pairs to a dedicated buffur Thread-Index: AQHaltydGup8aVwZv0OZHenWOHWmR7F5HZWw In-Reply-To: <87jzkss5w8.fsf@dataswamp.org> Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SJ0PR10MB5488:EE_|CYXPR10MB7924:EE_ x-ms-office365-filtering-correlation-id: 4d770c60-6d7f-46a9-e68e-08dc654025cd x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: =?us-ascii?Q?GKeICxlMdfM4Wlx76T0UeWR8w0MUF8l7UD35CjCqGmfwmSlLghSMExwMgpFt?= =?us-ascii?Q?WAagOYQPUIVlLyliq5NlaWSf7CjrsgUT8JR2TziRxuAyY0Zqf403e2ZM69jO?= =?us-ascii?Q?7CNLlt/AtBQ281UvYjS79uTf8/86Lf50sKAFr9S4/GqmCBHK10fBvveWZKKV?= =?us-ascii?Q?Wdixuiz+fuScEJmmGIrIUKCUBuKK1p1vIuxbRZQSjKDqo5cjEdTodDqB3urL?= =?us-ascii?Q?gqsXyyLZP80SdSHYL8q5e54BnJuiZcf9kXy1RuMhPxy4ox9cA2QoAl0elHQS?= =?us-ascii?Q?3G5vIEHt4adKCBenrc3rs9WoMdlvrEkvjhF+V/O5qa7J0poj5IGc8NX6CQcO?= =?us-ascii?Q?dnjmIfcA7dna5FRC9xJ78TL9qE4MrDfR/z4g2BUESrfQCj6B1hYhNQUHKy2L?= =?us-ascii?Q?3oJ9iUGtjDiXb7UyHnW89GRaB6S/izOu3SnsUbLpEc3I+oXX4L7chPpZAOY9?= =?us-ascii?Q?uD9mA5btBvojnvOXxZvDTcuxR3vm3ZRK8R+wEAWIjlGU09oqGEO+/uHFEs9K?= =?us-ascii?Q?IXoso3B4xbyUGemg4iQJczYcZrupAZY0vjmyUJffUXt4581GXkHQGvoX9Xqm?= =?us-ascii?Q?NvOVGFYsNEiKzaX/uOmMB4IImyKWNcoDBuOkpVf1ucIV1VC2/sHsxYMPpD0p?= =?us-ascii?Q?ix3GN x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(376005)(1800799015)(366007)(38070700009); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?0s075/OH/th3WAzgE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calJVxg9pxEqYuiyXlyDXEqPdN6FenuD3Yh52xbnd/n/VcTQzQ73WotxTwTWmLczvKyPDIX2/J8L/WHiv7UWMcruCFvAPVsFJMIHsLMWGN2nQ9M4CXXTJhEGcokszHS6saDuYX/dI7IIQknWO0biVBmXUIX/7Viohx4qmUkp+ZqRylJKjK+5ePpT2q7iZ1SW7db/cXjpztDZ9T7FQjFMUGG3M9CYkNrQTvH5kivk/iWyE+bR9r1oh3LG/MmwgXGErnxMEnSYraej53YPUEqtYWKg5oCVWwX/fcBKbIxMzjrkcWhmBPAxYX9bmRNoQ+blO3hf79AXtYDJO+VnYYLWFRiMLwG7tC2+dY5imdz5CNm+vNlqHHsmckT+vX7mJo8igDIGd/tlQGOdUGtg7Z3xY4HWC/0leN9cDZ7kOF5UJc= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4d770c60-6d7f-46a9-e68e-08dc654025cd X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Apr 2024 15:55:36.5811 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: nFcaOjmX3iCyo95xeJGfVurHIJIAhZmBLqX4f7mc08Q3Mqp0NMHdMa405SafmofGvSRN44wlYYqInw8lLrjQIA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CYXPR10MB7924 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1011,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-04-25_15,2024-04-25_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 mlxscore=0 spamscore=0 bulkscore=0 suspectscore=0 mlxlogscore=967 adultscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2404010000 definitions=main-2404250115 X-Proofpoint-ORIG-GUID: dSkHW2QNbj6hkGF26QLT-fAGwLTRkycy X-Proofpoint-GUID: dSkHW2QNbj6hkGF26QLT-fAGwLTRkycy Received-SPF: pass client-ip=205.220.165.32; envelope-from=drew.adams@oracle.com; helo=mx0a-00069f02.pphosted.com X-Spam_score_int: 0 X-Spam_score: -0.1 X-Spam_bar: / X-Spam_report: (-0.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, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URI_DOTEDU=1.999 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:146474 Archived-At: > Don't use `defvar' if it can be avoided > as that creates global dynamic/special > variables, By that logic, don't use defun because it creates global dynamic functions. Or defadvice or defalias or defcustom or defconst or defface or defgeneric or defgroup or defmacro or defmethod or defstruct or deftheme or ... They all create global, dynamic bindings. Try to use Emacs (or Haskell or ... pretty much anything else, for that matter) without using global, dynamic bindings. Then tell us about your adventure. ;-) It _can_ be "avoided" entirely. But no one does so. > `setq' creates global static/lexical variables Not true. This is what CLTL2 says about setq in Common Lisp, which uses lexical binding by default, for variables: "The variables are represented as symbols,=20 of course, and are interpreted as=20 referring to static or dynamic instances=20 according to the usual rules. Therefore=20 setq may be used for assignment of both=20 lexical and special variables." https://www.cs.cmu.edu/Groups/AI/html/cltl/clm/node79.html And Elisp isn't even "as lexical" as Common Lisp yet. As (elisp) "Scoping Rules for Variable Bindings" says: "By default, the local bindings that Emacs=20 creates are "dynamic bindings". ... The dynamic binding was (and still is) the default in Emacs for many years, but=20 lately Emacs is moving towards using=20 lexical binding in more and more places,=20 with the goal of eventually making that=20 the default." IOW, Elisp hopes to eventually do what Common Lisp does - and has done - for 40 years.