unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: hemant <gethemant@gmail.com>
To: "Lennart Borgman" <lennart.borgman@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: multi mode for html editing
Date: Sun, 16 Nov 2008 09:49:33 +0530	[thread overview]
Message-ID: <fb283d5e0811152019md5a1432lb539a23a53dd7348@mail.gmail.com> (raw)
In-Reply-To: <fb283d5e0811150856p6270018bq41779d87d5e6187c@mail.gmail.com>

On Sat, Nov 15, 2008 at 10:26 PM, hemant <gethemant@gmail.com> wrote:
> Hi Lennart,
>
> On Thu, Nov 13, 2008 at 7:02 AM, Lennart Borgman >
>> nXhtml is not perfect (and I am going to fix some bugs), but what
>> problems have you encountered when you tried to use nXhtml? It would
>> be nice if you reported them as bugs on Launchpad. (See
>> http://www.emacswiki.org/emacs/NxhtmlMode)
>>
>
> I tried latest download of Nxhtml with Emacs 22 and emacs-snapshot,
> with ERB (rhtml) files. Here are the problems:
>
> 1. I was unable to get code inside <script> or <style> tag getting
> indented properly. Behavior was quite random.
>
> 2. for ERB code, I couldn't get, following snippet to indent properly:
>
> <% if a -%>
>  <%= "cats" -%> <!-- should be indented with 2 spaces than the last level -->
> <% end -%>
>
> Again here for larger blocks, it was quite problematic.
>
> Is there anything, I am missing here? I tried disabling my gigantic
> .emacs and loaded nxhtml with vanilla emacs and many other
> combinations I tried, without any success.
>

While indenting ERB lines, I got this:

mumamo-set-major-pre-command: Wrong type argument: number-or-marker-p, nil
** In buffer top_navigation.html.erb
  backtrace()
  (let ((standard-output standard-output)) (backtrace))
  (let ((standard-output ...)) (let (...) (backtrace))
(with-current-buffer standard-output (prog1 ... ...)))
  (with-output-to-string (backtrace))
  (let ((format-string2 ...) (bt ...)) (mumamo-message-with-face (concat ... "
" ... bt) (quote highlight)) (apply (quote message) format-string2
lwarn-type args) (run-with-idle-timer 1 nil (quote
mumamo-show-report-message)) (when mumamo-display-error-stop (setq
font-lock-mode nil) (when ... ...) (when ... ...) (apply ...
format-string2 lwarn-type args)))
  mumamo-display-error(mumamo-set-major-pre-command "%s" "Wrong type
argument: number-or-marker-p, nil")
  (condition-case err (let* (... ... ...) (if ... ... ...)) (error
(mumamo-display-error ... "%s" ...)))
  (if (not mumamo-use-condition-case) (let* (... ...) (let* ... ...))
(condition-case err (let* ... ...) (error ...)))
  (mumamo-condition-case err (let* (... ... ...) (if ... ... ...))
(error (mumamo-display-error ... "%s" ...)))
  mumamo-set-major-pre-command()
  run-hooks(pre-command-hook)

mumamo-set-major-pre-command: Wrong type argument: number-or-marker-p, nil
MuMaMo error, please look in the *Message* buffer


After which nxhtml switched to ruby mode and will refuse to indent html tags.

You prefer these as bug reports on launchpad?




      reply	other threads:[~2008-11-16  4:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-12 16:47 multi mode for html editing hemant kumar
2008-11-13  1:32 ` Lennart Borgman
2008-11-15 16:56   ` hemant
2008-11-16  4:19     ` hemant [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

  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=fb283d5e0811152019md5a1432lb539a23a53dd7348@mail.gmail.com \
    --to=gethemant@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=lennart.borgman@gmail.com \
    /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.
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).