unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: mac@brushroad.com
Cc: Dan Nicolaescu <dann@ics.uci.edu>,
	emacs-devel@gnu.org, Wilson Snyder <wsnyder@wsnyder.org>
Subject: Re: verilog-mode.el
Date: Sat, 13 Oct 2007 22:41:15 -0400	[thread overview]
Message-ID: <jwvfy0e30i7.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <47111236.5020402@verilog.com> (Michael McNamara's message of "Sat\, 13 Oct 2007 11\:45\:10 -0700")

>>>>> "Michael" == Michael McNamara <mac@brushroad.com> writes:

> Colleagues: Attached is version 366 of verilog-mode.el, a lisp file that
> I and Wilson Snyder have been developing and publishing for the last ten
> years or so, releasing it under the GPL at http://www.verilog.com and at
> http://www.veripool.com.

> We have completed paper work to assign copyright to the FSF so that editing
> mode could be included in a future emacs distribution.

> We are actively maintaining the mode, as the hardware description language,
> Verilog, which this mode supports is under active development itself.  (see
> http://www.systemverilog.org/)

> Dan suggested that I post the mode here to get your feedback, constructive
> criticism, and hopefully support for including this in the
> emacs distribution.

> And so, here it is.

> Please send any comments to mac@verilog.com and to wsnyder@wsnyder.org

> Thank you!

- Remove verilog-running-on-xemacs and use (featurep 'xemacs) instead
  (without storing its value in a variable): the byte-compiler will then
  be able to optimize away the unapplicable code (and correspondingly skip
  some silly warnings).
- Rather than create a new syntax-table in each buffer, just do

   (defvar verilog-mode-syntax-table
     (let ((st (make-syntax-table)))
       (modify-syntax-table ...)
       ...
       st))

  once and forall (inlining the only calls to verilog-setup-dual-comments
  and verilog-populate-syntax-table).
  Regarding verilog-setup-dual-comments, even if you consider the XEmacs
  solution cleaner, the Emacs solution is not only equivalent but it also
  works under XEmacs, so you can use it everywhere and remove an
  emacs-version check.
- in verilog-modi-cache-results, you check (memq 'v19 verilog-emacs-features)
  additionally to (boundp 'font-lock-mode) which is redundant (same thing
  in verilog-auto).
- You can then remove the verilog-emacs-features abomination.
- The part

         (require 'verilog-mode)

  is pretty hideous and deserves either to be fixed (i.e. removed), or large
  comments justifying each part.
  Also some of the subsequent requires are unneeded (e.g. the `imenu' one).
- Use easy-menu-add rather than add-submenu so it works on both Emacs
  and XEmacs.
- the code in the major mode function which sets up the menu has a comment
  claiming this is about font-lock ;-)
- Emacs-21's comment-region and uncomment-region should work correctly
  (including mangling nested comments, although in a different way from the
  one you chose).


        Stefan

  reply	other threads:[~2007-10-14  2:41 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-13 18:45 verilog-mode.el Michael McNamara
2007-10-14  2:41 ` Stefan Monnier [this message]
2007-10-15  1:36   ` verilog-mode.el Richard Stallman
2007-10-15  3:22     ` verilog-mode.el Stefan Monnier
2007-10-15 13:56   ` verilog-mode.el Michael McNamara
2007-10-14 17:49 ` verilog-mode.el Dan Nicolaescu
  -- strict thread matches above, loose matches on Subject: below --
2007-12-18 15:55 verilog-mode.el Richard Stallman
2007-12-18 19:23 ` verilog-mode.el Glenn Morris
2007-12-20  0:53   ` verilog-mode.el Richard Stallman

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvfy0e30i7.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=dann@ics.uci.edu \
    --cc=emacs-devel@gnu.org \
    --cc=mac@brushroad.com \
    --cc=wsnyder@wsnyder.org \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).