From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Gerd_M=C3=B6llmann?= Newsgroups: gmane.emacs.devel Subject: Re: Incorporate package macrostep into Emacs core Date: Tue, 19 Mar 2024 10:48:48 +0100 Message-ID: References: <87zfvl8r4e.fsf@jeremybryant.net> <874jdspsqb.fsf@bernoul.li> <877cio8fzf.fsf@jeremybryant.net> <87y1b46vhg.fsf@jeremybryant.net> <878r336lvb.fsf@jeremybryant.net> <86y1b1p1ni.fsf@gnu.org> <87y1b0mi4b.fsf@jeremybryant.net> <8734sobkdj.fsf@jeremybryant.net> <87il1jdhzd.fsf@posteo.net> <87le6f9m8b.fsf@jeremybryant.net> <87o7basp70.fsf@posteo.net> <87jzlysmvp.fsf@posteo.net> <87frwmsgzo.fsf@posteo.net> 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="40710"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Jeremy Bryant , Jeremy Bryant via "Emacs development discussions." , Eli Zaretskii , monnier@iro.umontreal.ca, j.j.oddie@gmail.com, stefankangas@gmail.com, jonas@bernoul.li To: Philip Kaludercic Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Mar 19 10:49:36 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 1rmW6C-000AMT-2p for ged-emacs-devel@m.gmane-mx.org; Tue, 19 Mar 2024 10:49:36 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rmW5Y-00086Y-Pc; Tue, 19 Mar 2024 05:48: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 1rmW5V-000868-Ui for emacs-devel@gnu.org; Tue, 19 Mar 2024 05:48:54 -0400 Original-Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rmW5U-0000zJ-DI; Tue, 19 Mar 2024 05:48:53 -0400 Original-Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-568d323e7fbso2860405a12.3; Tue, 19 Mar 2024 02:48:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710841730; x=1711446530; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=NC45n8kZ3JeDomqJ3DWHtebqTosp8aj054KDtc8c0xY=; b=jHh5lsp4YvjqHsmAaZSeC4GOn6lAH+RWDTX7mdYWFZoTkbNa1OpdsP7dy0A1IKq3We 4U21i6wub5W1bAWMschybsXUpyBJotSrR1I/WW54CI9em4ZHwA7QFfQarfIyPJwxauxh 8PFnKZ436BfgNRUgNovAooDeeUgeZZmUpF5KUipRtBHV+sTXWUeUD2yoVgfBq3OhnX1W lC78JEF8IJyG1hXxHwhGgu74HIPd+0q8thkbF+y26oBhhG7TF+rN+kqjsX/5CcsViM67 HuQBYSW5AmiNJofoG/AmeKomcIMzdMY37iocDlPIz2nwnuUH7xXgLbFw60t9p+T3EDt/ KJWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710841730; x=1711446530; h=content-transfer-encoding:mime-version:user-agent: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=NC45n8kZ3JeDomqJ3DWHtebqTosp8aj054KDtc8c0xY=; b=uLK5lSs8SPrNrWSh7BW6cnFMpAejRzvCqToWaL144NsJ3BtTCNNEbDTFKvX7o19WCk zV5r1K41feHwjD1mbBY8kfCnyuvLCAuTbEq6dLWHdFIksS2w+BBGE8u3MRq6e9ur959Y vwQ0WxGVUVzJeRmN7TQcmMJ1fvvwLzZ8iyrD8iwrFn9K15c2yp0JlMvuDCpCX53zxvOL 6+S9PyZk/P/nRR3l4GafPnDa6aMvAZrFKzX7D75qYqyo/99135/qzAlMKeES0IYVFxns LY5tK+P3ABFM6JXq81hhT1w8B/NGsoYp/9kZ8kT4lJUQ/sQbxUcepVT+tiALYBjAILft plhA== X-Forwarded-Encrypted: i=1; AJvYcCVBj9tMdM/lbr0bDIytvFdGPw5mvf1lohIZjTpDL4XwxO1jDvlf8D27P/puV+sdDnMGDBCbV5NOA+Z1il+hWVPkFdetn4qwE/JC/+xVkqhCoAM= X-Gm-Message-State: AOJu0Yz5t8vQlhKNRJoWYdWrMNU3qAK8a/M+5PknLFhtFjfaasszl2Mg BUQfn38ghz6UUrT/uOR+/uK2Cmh9Q+fSIzgRKsrHosnCylwsj86p X-Google-Smtp-Source: AGHT+IFb+PfSeGLD1km2P6WdbdfCSFQK1kfAVP1lRYiEUAzBx1GSQWFEF7nX9UiLQdIpCboAm0xZeg== X-Received: by 2002:a17:906:ef04:b0:a46:bdc0:38b4 with SMTP id f4-20020a170906ef0400b00a46bdc038b4mr4589944ejs.33.1710841730328; Tue, 19 Mar 2024 02:48:50 -0700 (PDT) Original-Received: from Pro.fritz.box (p4fe3a1bc.dip0.t-ipconnect.de. [79.227.161.188]) by smtp.gmail.com with ESMTPSA id be5-20020a1709070a4500b00a46a9425fe5sm3601567ejc.212.2024.03.19.02.48.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 02:48:50 -0700 (PDT) In-Reply-To: <87frwmsgzo.fsf@posteo.net> (Philip Kaludercic's message of "Tue, 19 Mar 2024 09:33:47 +0000") Received-SPF: pass client-ip=2a00:1450:4864:20::52a; envelope-from=gerd.moellmann@gmail.com; helo=mail-ed1-x52a.google.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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:317186 Archived-At: Philip Kaludercic writes: > Gerd M=C3=B6llmann writes: > >> Philip Kaludercic writes: >> >>> Gerd M=C3=B6llmann writes: >>> >>>> Philip Kaludercic writes: >>>> >>>>>> (add-hook 'c-mode-hook #'macrostep-c-mode-hook) >>>>> >>>>> This part is suspicious. First of all, it looks like one is adding a >>>>> hook to a hook, but this would unconditionally modify >>>>> c-mode-hook, which I don't think is reliable. Can we find some other >>>>> way to update the variables, depending on the major mode? E.g. in >>>>> macrostep.el one could try to intern (format "macrostep-%s-init" >>>>> major-mode) and check if the symbol is fboundp? >>>> >>>> Also, it would be nice to support C++ and Objc, which we have in Emacs >>>> (c-mode-common-hook). >>> >>> From what I understand, this feature is based on cmacexp, which in turn >>> just uses cpp.=20=20 >> >> What's the problem using cpp? > > I don't know what Objc does, but in the case of C++ my understanding was > that for example Templates were not expanded by C++. Of course, if that > is not the intention, then never mind my comment. The preprocessor is the same for all three languages.=20 If by templates, you mean C++ templates -- these have nothing to do with the preprocessor. They don't work on the level of text.