From: Stefan Monnier <monnier@iro.umontreal.ca>
To: "Rüdiger Sonderfeld" <ruediger@c-plusplus.de>
Cc: emacs-devel@gnu.org
Subject: Re: [PATCH 1/2] progmodes/vhdl-mode.el: Backported changes from 3.33.
Date: Sun, 27 May 2012 23:43:39 -0400 [thread overview]
Message-ID: <jwvmx4tuigv.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <2105906.3B6lUEmHhS@descartes> ("Rüdiger Sonderfeld"'s message of "Thu, 24 May 2012 19:05:22 +0200")
> 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
prev parent reply other threads:[~2012-05-28 3:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-23 12:53 [PATCH 1/2] progmodes/vhdl-mode.el: Backported changes from 3.33 Rüdiger Sonderfeld
2012-05-24 4:33 ` Stefan Monnier
2012-05-24 17:05 ` Rüdiger Sonderfeld
2012-05-28 3:43 ` Stefan Monnier [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvmx4tuigv.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=ruediger@c-plusplus.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.