From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 29 21:11:41 2014 Received: (at submit) by debbugs.gnu.org; 30 Jun 2014 01:11:41 +0000 Received: from localhost ([127.0.0.1]:37235 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X1Q8C-0001n6-Gr for submit@debbugs.gnu.org; Sun, 29 Jun 2014 21:11:40 -0400 Received: from eggs.gnu.org ([208.118.235.92]:38364) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X1Q89-0001ms-Dk for submit@debbugs.gnu.org; Sun, 29 Jun 2014 21:11:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X1Q7u-0005c7-JY for submit@debbugs.gnu.org; Sun, 29 Jun 2014 21:11:31 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:57620) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1Q7u-0005bx-G5 for submit@debbugs.gnu.org; Sun, 29 Jun 2014 21:11:22 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39860) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1Q7k-0001vt-UZ for bug-gnu-emacs@gnu.org; Sun, 29 Jun 2014 21:11:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X1Q7b-0005Ue-Pp for bug-gnu-emacs@gnu.org; Sun, 29 Jun 2014 21:11:12 -0400 Received: from mail-pa0-x22c.google.com ([2607:f8b0:400e:c03::22c]:35741) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1Q7b-0005UR-Ex for bug-gnu-emacs@gnu.org; Sun, 29 Jun 2014 21:11:03 -0400 Received: by mail-pa0-f44.google.com with SMTP id rd3so7608356pab.17 for ; Sun, 29 Jun 2014 18:11:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type; bh=ux31696rprmLblhoqUmOHjeuZH6xpQ/x0kihVZQclho=; b=V/s7bGosbzpboTdG7290cDyOpjxMEPEqZFTBpa/OLTTncbeKZFB6Lz1axM7nWl+f2y NL7qWiadSkDfqBNFX/mCzjS9umhGk3Lv1ShmcC0HoTX1nLBxynVDOaUX4cnbzN6laEbN 1juJgNn7k2VhaVXOJp4CsulSKUL9oyxk6jNfA+Hhd41m/oHQn/ShHwHuKfss7vj4+DRL qWRFfhJvB4fmZ7IkTRoOpjPlpzbbuFXl5WV0pU6Z4Yi/3e6WILkQLnehqTXhtXwysjet oM65qkGKWTkOpGX8ci1Dgw3wDooPlEld1KYb+N+8f1fZqYOgXDjIzMDWlnj9grIXv/vo 8MFw== X-Received: by 10.68.139.36 with SMTP id qv4mr48343686pbb.82.1404090662248; Sun, 29 Jun 2014 18:11:02 -0700 (PDT) Received: from fortuna ([221.222.159.57]) by mx.google.com with ESMTPSA id zn9sm90844303pac.31.2014.06.29.18.11.00 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Sun, 29 Jun 2014 18:11:01 -0700 (PDT) From: Leo Liu To: bug-gnu-emacs@gnu.org Subject: 24.4.50; [FEATURE] abbrev with skeleton X-Debbugs-CC: Stefan Monnier Date: Mon, 30 Jun 2014 09:10:58 +0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) I was looking for packages to obsolete and find this expand.el. The skeleton DSL is certainly more powerful. Comments? BTW, we should be able to extend skeleton to cover snippet.el or whatever nicely. I mean snippet.el/yas-snippet.el might not be the one we want to converge to. === modified file 'lisp/abbrev.el' --- lisp/abbrev.el 2014-05-27 01:09:45 +0000 +++ lisp/abbrev.el 2014-06-30 01:02:15 +0000 @@ -776,7 +776,7 @@ (let ((value abbrev)) ;; If this abbrev has an expansion, delete the abbrev ;; and insert the expansion. - (when (stringp (symbol-value abbrev)) + (cond ((stringp (symbol-value abbrev)) (goto-char wordstart) ;; Insert at beginning so that markers at the end (e.g. point) ;; are preserved. @@ -806,6 +806,9 @@ ;; Change just that. (upcase-initials-region (point) (1+ (point))) (goto-char end)))))) + ((consp (symbol-value abbrev)) + (delete-char (- wordstart wordend)) + (skeleton-insert (symbol-value abbrev)))) ;; Now point is at the end of the expansion and the beginning is ;; in last-abbrev-location. (when (symbol-function abbrev) From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 30 09:44:03 2014 Received: (at 17880) by debbugs.gnu.org; 30 Jun 2014 13:44:03 +0000 Received: from localhost ([127.0.0.1]:37544 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X1bsE-00081o-62 for submit@debbugs.gnu.org; Mon, 30 Jun 2014 09:44:03 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:14270) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X1bs7-00081W-Sb for 17880@debbugs.gnu.org; Mon, 30 Jun 2014 09:43:56 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArYGAIDvNVNLd+D9/2dsb2JhbABZgwaDSr0vgw6BFxd0giUBAQEBAgFWIwULCw4mEhQYDSSIBAjSGReOegeEOASpGYFqg0wh X-IPAS-Result: ArYGAIDvNVNLd+D9/2dsb2JhbABZgwaDSr0vgw6BFxd0giUBAQEBAgFWIwULCw4mEhQYDSSIBAjSGReOegeEOASpGYFqg0wh X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="69969262" Received: from 75-119-224-253.dsl.teksavvy.com (HELO pastel.home) ([75.119.224.253]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 30 Jun 2014 09:43:46 -0400 Received: by pastel.home (Postfix, from userid 20848) id C354C602EE; Mon, 30 Jun 2014 09:43:45 -0400 (EDT) From: Stefan Monnier To: Leo Liu Subject: Re: bug#17880: 24.4.50; [FEATURE] abbrev with skeleton Message-ID: References: Date: Mon, 30 Jun 2014 09:43:45 -0400 In-Reply-To: (Leo Liu's message of "Mon, 30 Jun 2014 09:10:58 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 17880 Cc: 17880@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) > I was looking for packages to obsolete and find this expand.el. The > skeleton DSL is certainly more powerful. Comments? Yes, expand.el might be a good candidate for obsolescence. > BTW, we should be able to extend skeleton to cover snippet.el or > whatever nicely. I mean snippet.el/yas-snippet.el might not be the one > we want to converge to. The discussion with Joao convinced me that "extending skeleton" is not going to work quite right (IOW, it won't "cover it nicely"). So the idea is rather to introduce yet-another thingy, but try to make sure that skeleton.el can be rewritten as a "compatibility front-end", and same for tempo.el. Stefan From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 30 19:09:48 2014 Received: (at 17880) by debbugs.gnu.org; 30 Jun 2014 23:09:48 +0000 Received: from localhost ([127.0.0.1]:38311 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X1kho-0006UH-5m for submit@debbugs.gnu.org; Mon, 30 Jun 2014 19:09:48 -0400 Received: from mail-pa0-f46.google.com ([209.85.220.46]:47668) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X1khk-0006Tz-SK for 17880@debbugs.gnu.org; Mon, 30 Jun 2014 19:09:46 -0400 Received: by mail-pa0-f46.google.com with SMTP id eu11so9467381pac.33 for <17880@debbugs.gnu.org>; Mon, 30 Jun 2014 16:09:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:face:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=qd3AXRbXA2h2JH9EV2DdnPnmFi1r+rsPgb0L6ASLd/s=; b=ZZCt24wn1CDR2b+zumOJuLIFmxBZE8X8Dr7dMU3CXqp+TQPFGD+7inszYIbM2sWOVI GMFYlFpQrKsvkqvuTawyIufmhFrn9+Hs/fLonXD72XdH2dVMj8L/J+qxc4s61ojAcK4B u5ETBRibt1br9sTfdIXnNHUCJK8w7PB2PV7cD/dlPy4h6JldE26LqbTKpSsrA9szyOYN qoXFGCUmjCZ2TnEmRz9h1jo4ysVGnj0DN8khEoWf6FCYPgCYTJtX1J4NVQ43afHv25KO PcINuttsbVKJcW+Pq3CivfCoShAypwStBIbo2EVep4e165z7wZFYxH01qiJFlVP0yAbM ZELA== X-Received: by 10.68.131.230 with SMTP id op6mr56275886pbb.55.1404169778599; Mon, 30 Jun 2014 16:09:38 -0700 (PDT) Received: from fortuna ([221.222.159.223]) by mx.google.com with ESMTPSA id ez1sm13755297pbd.91.2014.06.30.16.09.36 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Mon, 30 Jun 2014 16:09:38 -0700 (PDT) From: Leo Liu To: Stefan Monnier Subject: Re: bug#17880: 24.4.50; [FEATURE] abbrev with skeleton References: Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoAgMAAADxkFD+AAAADFBMVEUvT09qWs3/pQD///+J kUVcAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9cBBwMLOd3veKQA AACuSURBVBjTldE9CgIxEAXgB+lEyFUC2wo5ikdZ8DSypxhMY7H9VuIVwlqkGRgnm59VsHGafIQ3 CZlAtmKIRaHETgYa12lqvEsPYKf8wXHsPGfqPaUM0g9aJPKFXkmNQmSDqwzz4Fpgpz+6WAPY2z5o uPJJpu0uypcl4nyCibMLQ8lCiVjayLoQvw5LsVKQuHPRR958HZbOcVsKeepcLxpByjycGvnKmY+c MBvrtyjfe0vmuLvdq/kAAAAASUVORK5CYII= Date: Tue, 01 Jul 2014 07:09:34 +0800 In-Reply-To: (Stefan Monnier's message of "Mon, 30 Jun 2014 09:43:45 -0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (CentOS 6.5) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 17880 Cc: 17880@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On 2014-06-30 09:43 -0400, Stefan Monnier wrote: > The discussion with Joao convinced me that "extending skeleton" is not > going to work quite right (IOW, it won't "cover it nicely"). So the > idea is rather to introduce yet-another thingy, but try to make sure > that skeleton.el can be rewritten as a "compatibility front-end", and > same for tempo.el. Is the discussion available somewhere? The original snippet.el (the one that stirred the whole interest of textmate snippet feature in emacs) is string-based and the core concept is linking similar fields with naming i.e. multiple occurences of $${filed_name} are changed together. So if we introduce [field-name] (or :field-name) as a new element to skeleton to do the same that would seem to offer the core of snippet. Just thinking though. I have never used anything beyond the original snippet.el which is only a few hundred lines. Leo From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 14 05:40:29 2021 Received: (at 17880) by debbugs.gnu.org; 14 Jul 2021 09:40:29 +0000 Received: from localhost ([127.0.0.1]:42929 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3bNV-0006zA-Il for submit@debbugs.gnu.org; Wed, 14 Jul 2021 05:40:29 -0400 Received: from quimby.gnus.org ([95.216.78.240]:41440) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3bNS-0006ys-Vp for 17880@debbugs.gnu.org; Wed, 14 Jul 2021 05:40:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=eIQ/oO3OV2l2Oj7pPk/QDxtpGs+rUadjwcKBqEKByU0=; b=sAVW/6aZT/x2Fx+wTFozKUwx9I d/4dDB6Nl29iU2HMK2cmHqbc7zOdBAJPNeh7m6fURdd8X1gRpu3mD2fhxPMTjQXXDdJXwSiFaLWYB cu6BQN8OsL9j/+kg06CddYqFIA+0SlxaVVmthgdPZ/nNO1zV12JiAmJ+Xe7Ht0ET547c=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m3bNJ-00020M-4d; Wed, 14 Jul 2021 11:40:19 +0200 From: Lars Ingebrigtsen To: Leo Liu Subject: Re: bug#17880: 24.4.50; [FEATURE] abbrev with skeleton References: X-Now-Playing: Kid Sister's _Ultra Violet_: "Get Fresh" Date: Wed, 14 Jul 2021 11:40:16 +0200 In-Reply-To: (Leo Liu's message of "Mon, 30 Jun 2014 09:10:58 +0800") Message-ID: <87mtqpkzcv.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Leo Liu writes: > I was looking for packages to obsolete and find this expand.el. The > skeleton DSL is certainly more powerful. Comments? [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 17880 Cc: 17880@debbugs.gnu.org, Stefan Monnier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Leo Liu writes: > I was looking for packages to obsolete and find this expand.el. The > skeleton DSL is certainly more powerful. Comments? [...] > === modified file 'lisp/abbrev.el' > --- lisp/abbrev.el 2014-05-27 01:09:45 +0000 > +++ lisp/abbrev.el 2014-06-30 01:02:15 +0000 > @@ -776,7 +776,7 @@ [...] > + ((consp (symbol-value abbrev)) > + (delete-char (- wordstart wordend)) > + (skeleton-insert (symbol-value abbrev)))) I think the conclusion here was that we don't really want to make abbrev.el depend on skeleton here, so the patch was never applied. For the other issue -- I'm going to go ahead and guess that expand.el is still used by people (because it's so simple that some people might prefer it), so obsoleting it would be controversial, I think. So I'm closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 14 05:40:31 2021 Received: (at control) by debbugs.gnu.org; 14 Jul 2021 09:40:32 +0000 Received: from localhost ([127.0.0.1]:42932 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3bNX-0006zP-Q9 for submit@debbugs.gnu.org; Wed, 14 Jul 2021 05:40:31 -0400 Received: from quimby.gnus.org ([95.216.78.240]:41452) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3bNW-0006yy-Bu for control@debbugs.gnu.org; Wed, 14 Jul 2021 05:40:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=1SaqI7+nIFMXUy0OWPH4eF9kE/5JS5D1NWOabEw0f8I=; b=bXLBNTjjfK10dOtgW6EKEPdq9+ sV7FWvS5s5h96bAvCVSW7/Bskv/sx+NtHAXWVofZm5idGQZeo90W0UJxORMjzmIPCRvjbnjm+FqDh 5WaAj+s3QIfG7D4mCOw38aJL4EhsCPUbZb9gSXBt3K89d3Zf6IyogzvzWtE7yNzvQQWo=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m3bNO-00020V-Pf for control@debbugs.gnu.org; Wed, 14 Jul 2021 11:40:24 +0200 Date: Wed, 14 Jul 2021 11:40:22 +0200 Message-Id: <87lf69kzcp.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #17880 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 17880 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 17880 quit From unknown Sun Jun 22 08:06:31 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 11 Aug 2021 11:24:12 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator