From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Towards a cleaner build: srecode/insert Date: Sat, 15 Jun 2019 18:33:19 +0200 Message-ID: References: <831rzvvsgp.fsf@gnu.org> <83y322vqvg.fsf@gnu.org> <83v9x6vpap.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="107212"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 15 18:34:33 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hcBdR-000Rjo-3c for ged-emacs-devel@m.gmane.org; Sat, 15 Jun 2019 18:34:33 +0200 Original-Received: from localhost ([::1]:33478 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hcBdQ-00027j-2k for ged-emacs-devel@m.gmane.org; Sat, 15 Jun 2019 12:34:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46562) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hcBcL-0001rz-HP for emacs-devel@gnu.org; Sat, 15 Jun 2019 12:33:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hcBcK-00040t-DV for emacs-devel@gnu.org; Sat, 15 Jun 2019 12:33:25 -0400 Original-Received: from quimby.gnus.org ([80.91.231.51]:33836) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hcBcK-0003zR-6K for emacs-devel@gnu.org; Sat, 15 Jun 2019 12:33:24 -0400 Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=stories) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hcBcF-0001Fc-LD for emacs-devel@gnu.org; Sat, 15 Jun 2019 18:33:22 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAD1BMVEVbSk4WCQ00IykkFhtF MjcvCCv0AAACPklEQVQ4jW1U0ZUjMQhzJjTg+ArIYhowTAE+L/3XdJJ9ebcf532bZCxAIJGU8v8j 5VEt8VZK5tyvPMsI5OR9Ucu/twwhMJOAdFcewkid5dnm/nSF8/bULzLL5WUlLq5Q3Sw8KbhQQVUU BWN+OuLHy1N1IfRwEpNUA0csVwPZnJJ/W0bRLM96gxSRuD5tSJrNDSy1a9/maQrxmOBZX0tTzmxM FDQ9d0ZLTds6bP5lxkHKc4BkQ+sIwoQNRH3Z0nUflVbs+5OBWmpGSltQbHfAOWpbCp3QQgYE++hy AVAA3lEwzqxo7XCkUhfrEXrM4UTgAIDortHCD7Osf4BHjIZKbzInVD3AAlBr9E0tQgkelZqwVB1x LIRsUwn8AoCuGrnpCQwoH4ATNpp7/J7yA1AAjjbFSsKrH0C47QV5Y8Q0Atahh3o4LqbIxN8i0Kz7 Soz9hqswviyIvQHI0Vd4oLgxvHRUBoA63rWDQghgOK5qebyQ6ZjZOeVZaiaUB52AsNpvIBAJwiWB 5zecsPC73wwGDzMhpTgEz94sbiQI9zNXRwf4XsDn3mCr7ZmX0ybBtt+AQF19cbsQ+GZj5Ur9AoAx /PTkUOZSx38MDx3aOpc8v1BSeo9yYa/cgbaBjaT13LoI7O6IqAGD3+gE+Z6IB/CoQbthMNxOALcg cgOvPiqW7r3NiJZXbWMDzRE/XuNGE5ASq1lHI1CdW3l+Hva2ld/1ADxOnfDdKcKnUT8AbP0OTG7y vR8/GVypL8S1pnjY0B/uuJ4Lq2IKKgAAAABJRU5ErkJggg== In-Reply-To: (Lars Ingebrigtsen's message of "Sat, 15 Jun 2019 18:11:37 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 80.91.231.51 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:237700 Archived-At: As with much in the eieio/CLOS confusion in CEDET, this left me scratching my head: cedet/srecode/insert.el:176:39:Warning: Obsolete name arg "TEMPLATE" to constructor srecode-template-inserted-region So the code is: ;; Create the field-driven editable area. (srecode-template-inserted-region "TEMPLATE" :start start :end (point)))) Let's try it: (srecode-template-inserted-region "TEMPLATE" :start 1 :end 2) => #s(srecode-template-inserted-region # nil) Is it literally complaining about that first parameter? (srecode-template-inserted-region :start 1 :end 2) => #s(srecode-template-inserted-region # nil) (equal (srecode-template-inserted-region "TEMPLATE" :start 1 :end 2) (srecode-template-inserted-region :start 1 :end 2)) => t Indeed? The name arg is just discarded? In which case, it seems like this could be fixed by just removing "TEMPLATE" from all these calls, but that seems too obvious, so I'm asking. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no