From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [PATCH 1/2] progmodes/vhdl-mode.el: Backported changes from 3.33. Date: Sun, 27 May 2012 23:43:39 -0400 Message-ID: References: <11841062.XUGkREX5ia@descartes> <2105906.3B6lUEmHhS@descartes> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1338176630 20227 80.91.229.3 (28 May 2012 03:43:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 28 May 2012 03:43:50 +0000 (UTC) Cc: emacs-devel@gnu.org To: =?iso-8859-1?Q?R=FCdiger?= Sonderfeld Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 28 05:43:49 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SYqs0-0005vI-WF for ged-emacs-devel@m.gmane.org; Mon, 28 May 2012 05:43:49 +0200 Original-Received: from localhost ([::1]:45522 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SYqs0-00051f-Kg for ged-emacs-devel@m.gmane.org; Sun, 27 May 2012 23:43:48 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39624) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SYqrx-00051Z-7i for emacs-devel@gnu.org; Sun, 27 May 2012 23:43:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SYqrv-0007cQ-FB for emacs-devel@gnu.org; Sun, 27 May 2012 23:43:44 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:14161) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SYqrv-0007by-An for emacs-devel@gnu.org; Sun, 27 May 2012 23:43:43 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAG6Zu09MCpYd/2dsb2JhbABEtBGBCIIVAQEEAVYjBQsLNBIUGA0kiBwFugmQRAOjM4FYgwWBQw X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="183054173" Original-Received: from 76-10-150-29.dsl.teksavvy.com (HELO ceviche.home) ([76.10.150.29]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 27 May 2012 23:43:40 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 70552660E0; Sun, 27 May 2012 23:43:39 -0400 (EDT) In-Reply-To: <2105906.3B6lUEmHhS@descartes> (=?iso-8859-1?Q?=22R=FCdiger?= Sonderfeld"'s message of "Thu, 24 May 2012 19:05:22 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:150662 Archived-At: > Oh sorry, I guess I forgot to deactivate wordwrap in KMail. I attached both > patches to this email. Thanks, I've installed the first. > I'm simply helping to sync the two versions. The vhdl-mode maintainer > is Reto Zimmermann. Good, your help is very appreciated. >> Regarding the code I haven't reviewed it, but I noticed that it >> advertises C-c C-c for commenting code, whereas it should advertise M-; >> instead. > We could change that downstream. That's not important enough to warrant a diversion. > The C-c C-c part is from the current vhdl-mode release. I know, and I think Reto should change it. M-; has been able to comment/uncomment since Emacs-21. Maybe the change can be made conditional on the existence of comment-dwim. >> Also, while I'm here, do you also sync changes from Emacs's repository >> back to the upstream version? E.g. the use of syntax-propertize-function. > I tried to send the patch to the vhdl-mode maintainer but he wants to stay > compatible to all kind of old and forked emacs and that's why the patch is > probably not acceptable for him. Which patch? Regarding syntax-propertize-function, I made an effort to write the vhdl code in such a way that it gracefully falls back on the old code if syntax-propertize-function doesn't exist, so it should be fully backward compatible (although I haven't tested it). > Maybe we could send at least the documentation fixes upstream. Sure. Do it in relatively small chunks, which makes it easier for Reto review, and maximizes the proportion he can accept. > Reducing the differences would be useful. Very much so. > It took a lot of time with diff-mode and git-blame to figure out what > was changed in Emacs and what is new in the vhdl-mode release. I know. That's why I did not install your second patch, which would increase the differences, without any significant improvement (while both are obsolete, they won't disappear soon, especially not `interactive-p'). You can try and submit a patch upstream to fix those warnings by changing to code to dynamically use either of the old or new code depending on what's available. > @@ -197,6 +197,21 @@ Examples: > "Customizations for modes." > :group 'vhdl) > +(defcustom vhdl-electric-mode t > + "Non-nil enables electrification (automatic template generation). > +If nil, template generators can still be invoked through key bindings and > +menu. Is indicated in the modeline by \"/e\" after the mode name and can be > +toggled by `\\[vhdl-electric-mode]'." > + :type 'boolean > + :group 'vhdl-mode) > + > +(defcustom vhdl-stutter-mode t > + "Non-nil enables stuttering. > +Is indicated in the modeline by \"/s\" after the mode name and can be toggled > +by `\\[vhdl-stutter-mode]'." > + :type 'boolean > + :group 'vhdl-mode) > + > (defcustom vhdl-indent-tabs-mode nil > "Non-nil means indentation can insert tabs. > Overrides local variable `indent-tabs-mode'." This is actually undoing a local change where those defcustoms are not needed any more, because we use define-minor-mode (further down) to define those vars. Stefan