all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* mmm-mode/html-mode/php-mode issues
@ 2009-05-21  9:58 Yuri D'Elia
  2009-05-22 23:05 ` Lennart Borgman
       [not found] ` <mailman.7653.1243033551.31690.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 8+ messages in thread
From: Yuri D'Elia @ 2009-05-21  9:58 UTC (permalink / raw)
  To: help-gnu-emacs

Hi everyone. I'm having some problems when using php-mode as a submode
of html-mode.

I'm using emacs 23.1, and this is my relevant config:

(mmm-add-group
  'mmm-html
  '( (html-php-embedded
       :submode php-mode
       :face mmm-code-submode-face
       :front "<[\?]"
       :back "[\?]>") ))

(add-to-list 'mmm-mode-ext-classes-alist
  '(html-mode nil mmm-html))

I use html-mode on php files. mmm-mode correctly switches
the relevant parts to php, but when I type [tab] I get:

Wrong type argument: stringp, nil

A file as short as

<?php
test
?>

will trigger the error. Is php-mode not playing nice with mmm-mode?
How this can be fixed?

I don't really want to use mumamo/nX*.

Thanks






^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: mmm-mode/html-mode/php-mode issues
  2009-05-21  9:58 mmm-mode/html-mode/php-mode issues Yuri D'Elia
@ 2009-05-22 23:05 ` Lennart Borgman
  2009-05-23  7:52   ` Yuri D'Elia
       [not found] ` <mailman.7653.1243033551.31690.help-gnu-emacs@gnu.org>
  1 sibling, 1 reply; 8+ messages in thread
From: Lennart Borgman @ 2009-05-22 23:05 UTC (permalink / raw)
  To: Yuri D'Elia; +Cc: help-gnu-emacs

On Thu, May 21, 2009 at 11:58 AM, Yuri D'Elia <wavexx@users.sf.net> wrote:
> I don't really want to use mumamo/nX*.

Why? If you happen to change your mind I have just uploaded the
probably last beta 1.77 of nXhtml.




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: mmm-mode/html-mode/php-mode issues
  2009-05-22 23:05 ` Lennart Borgman
@ 2009-05-23  7:52   ` Yuri D'Elia
  2009-05-23  8:47     ` Lennart Borgman
  0 siblings, 1 reply; 8+ messages in thread
From: Yuri D'Elia @ 2009-05-23  7:52 UTC (permalink / raw)
  To: help-gnu-emacs

In article 
<e01d8a50905221605g3078862bt2d1bd03ec4bb1699@mail.gmail.com>,
 Lennart Borgman <lennart.borgman@gmail.com> wrote:

> On Thu, May 21, 2009 at 11:58 AM, Yuri D'Elia <wavexx@users.sf.net> wrote:
> > I don't really want to use mumamo/nX*.
> 
> Why? If you happen to change your mind I have just uploaded the
> probably last beta 1.77 of nXhtml.

It's slow, very slow compared to html-mode, which is the mayor problem.

I had trouble editing html templates, and/or pseudo-html files where the 
html is interspersed with non-html code. Overall mumamo/nXhtml has 
*tons* of features which I would simply turn off.

This is not a critique to nXhtml, it's just that I want basic 
font-locking with indent for 99% of the files I work with, and html-mode 
is much more than enough.

I just want to understand why php-mode is behaving badly here.

Can I use *just* mumamo and use html-mode with php as a submode? I 
somewhat tried months ago, but it seemed that mumamo was always loading 
nXhtml. I would happily replace mmm-mode if I could.

Thanks





^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: mmm-mode/html-mode/php-mode issues
  2009-05-23  7:52   ` Yuri D'Elia
@ 2009-05-23  8:47     ` Lennart Borgman
  2009-05-23 11:34       ` Yuri D'Elia
  0 siblings, 1 reply; 8+ messages in thread
From: Lennart Borgman @ 2009-05-23  8:47 UTC (permalink / raw)
  To: Yuri D'Elia; +Cc: help-gnu-emacs

On Sat, May 23, 2009 at 9:52 AM, Yuri D'Elia <wavexx@users.sf.net> wrote:

> Can I use *just* mumamo and use html-mode with php as a submode? I
> somewhat tried months ago, but it seemed that mumamo was always loading
> nXhtml. I would happily replace mmm-mode if I could.


Nearly. All features in nXhtml are autoloaded. Without byte compiling
nXhtml it loads in 5 sec on my old pc. (Byt that I mean it runs
nxhtml/autostart.el in 5 sec.) Nearly all of that time is for loading
mumamo.el. After byte compiling nXhtml (there is an entry for doing
that in the nXhtml menu) nxhtml/autostart.el takes 0.1 sec.

But what do you mean with that "mumamo was always loading nXhtml"?
There is no supported way to use mumamo.el without loading nXhtml (ie
running nxhtml/autostart.el).




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: mmm-mode/html-mode/php-mode issues
  2009-05-23  8:47     ` Lennart Borgman
@ 2009-05-23 11:34       ` Yuri D'Elia
  2009-05-23 13:12         ` Lennart Borgman
  0 siblings, 1 reply; 8+ messages in thread
From: Yuri D'Elia @ 2009-05-23 11:34 UTC (permalink / raw)
  To: help-gnu-emacs

In article 
<e01d8a50905230147k2fd75df4q1ec6ad81ef5381d4@mail.gmail.com>,
 Lennart Borgman <lennart.borgman@gmail.com> wrote:

> > Can I use *just* mumamo and use html-mode with php as a submode? I
> > somewhat tried months ago, but it seemed that mumamo was always loading
> > nXhtml. I would happily replace mmm-mode if I could.
> 
> Nearly. All features in nXhtml are autoloaded. Without byte compiling
> nXhtml it loads in 5 sec on my old pc. (Byt that I mean it runs
> nxhtml/autostart.el in 5 sec.) Nearly all of that time is for loading
> mumamo.el. After byte compiling nXhtml (there is an entry for doing
> that in the nXhtml menu) nxhtml/autostart.el takes 0.1 sec.

I will try again then. I remember editing a normal xhtml+php file on my 
powerbook G4 took around ~4 seconds when bytecompiled, and then again 
indenting/font-locking was unbearable.

However I *still* want to know what's the issue with mmm-mode :).
Should I post to emacs.devel? The mmm-mode mailing list seems dead.

> But what do you mean with that "mumamo was always loading nXhtml"?
> There is no supported way to use mumamo.el without loading nXhtml (ie
> running nxhtml/autostart.el).

That's precisely what I meant: can I use mumamo as a *replacement* for 
mmm-mode? (for example, for completely different kind of files?)





^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: mmm-mode/html-mode/php-mode issues
  2009-05-23 11:34       ` Yuri D'Elia
@ 2009-05-23 13:12         ` Lennart Borgman
  0 siblings, 0 replies; 8+ messages in thread
From: Lennart Borgman @ 2009-05-23 13:12 UTC (permalink / raw)
  To: Yuri D'Elia; +Cc: help-gnu-emacs

On Sat, May 23, 2009 at 1:34 PM, Yuri D'Elia <wavexx@users.sf.net> wrote:
> In article
> <e01d8a50905230147k2fd75df4q1ec6ad81ef5381d4@mail.gmail.com>,
>  Lennart Borgman <lennart.borgman@gmail.com> wrote:
>
>> > Can I use *just* mumamo and use html-mode with php as a submode? I
>> > somewhat tried months ago, but it seemed that mumamo was always loading
>> > nXhtml. I would happily replace mmm-mode if I could.
>>
>> Nearly. All features in nXhtml are autoloaded. Without byte compiling
>> nXhtml it loads in 5 sec on my old pc. (Byt that I mean it runs
>> nxhtml/autostart.el in 5 sec.) Nearly all of that time is for loading
>> mumamo.el. After byte compiling nXhtml (there is an entry for doing
>> that in the nXhtml menu) nxhtml/autostart.el takes 0.1 sec.
>
> I will try again then. I remember editing a normal xhtml+php file on my
> powerbook G4 took around ~4 seconds when bytecompiled, and then again
> indenting/font-locking was unbearable.

That sounds very strange. I would be glad for a bug report with an example.


> However I *still* want to know what's the issue with mmm-mode :).
> Should I post to emacs.devel? The mmm-mode mailing list seems dead.

mmm-mode has nothing to do with emacs devel. You might have a look at
EmacsWiki. I think I saw that someone said he had got it to work with
Emacs 22.


>> But what do you mean with that "mumamo was always loading nXhtml"?
>> There is no supported way to use mumamo.el without loading nXhtml (ie
>> running nxhtml/autostart.el).
>
> That's precisely what I meant: can I use mumamo as a *replacement* for
> mmm-mode? (for example, for completely different kind of files?)

Of course you can use it for different kind of files. You can define
your own "multi major mode" if you need to. There are however a lot of
predifined ones, for mako, mjt, jsp, laszlo, eruby etc.

Maybe the name "nXhtml" is a bit unfortunate for the package. It all
started with that I wanted a good major mode for writing (x)html
files. The first thing I wrote was nxhtml-mode (based on nxml-mode).
But then I discovered that what I really needed was a multi major
mode. I tried mmm-mode, but it could not handle that together with
nxhtml-mode. That is how it all started, and that is why it is named
nXhtml...




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: mmm-mode/html-mode/php-mode issues
       [not found] ` <mailman.7653.1243033551.31690.help-gnu-emacs@gnu.org>
@ 2009-05-24 13:05   ` Richard Riley
  2009-05-24 13:12     ` Richard Riley
  0 siblings, 1 reply; 8+ messages in thread
From: Richard Riley @ 2009-05-24 13:05 UTC (permalink / raw)
  To: help-gnu-emacs

Lennart Borgman <lennart.borgman@gmail.com> writes:

> On Thu, May 21, 2009 at 11:58 AM, Yuri D'Elia <wavexx@users.sf.net> wrote:
>> I don't really want to use mumamo/nX*.
>
> Why? If you happen to change your mind I have just uploaded the
> probably last beta 1.77 of nXhtml.
>
>

Hi Lennart,

Your site indicates 1.76

,----
| Download latest nXhtml (zip file) nXhtml: editing web files
|     This will download a zip file with the latest nXhtml. This is the
|     same nXhtml that is included in EmacsW32+Emacs - but the version
|     here may be newer. nXhtml is version 1.76, zipping date is
|     20090226. Approx 1701 kB.
`----

regards

r.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: mmm-mode/html-mode/php-mode issues
  2009-05-24 13:05   ` Richard Riley
@ 2009-05-24 13:12     ` Richard Riley
  0 siblings, 0 replies; 8+ messages in thread
From: Richard Riley @ 2009-05-24 13:12 UTC (permalink / raw)
  To: help-gnu-emacs

Richard Riley <rileyrgdev@googlemail.com> writes:

> Lennart Borgman <lennart.borgman@gmail.com> writes:
>
>> On Thu, May 21, 2009 at 11:58 AM, Yuri D'Elia <wavexx@users.sf.net> wrote:
>>> I don't really want to use mumamo/nX*.
>>
>> Why? If you happen to change your mind I have just uploaded the
>> probably last beta 1.77 of nXhtml.
>>
>>
>
> Hi Lennart,
>
> Your site indicates 1.76
>
> ,----
> | Download latest nXhtml (zip file) nXhtml: editing web files
> |     This will download a zip file with the latest nXhtml. This is the
> |     same nXhtml that is included in EmacsW32+Emacs - but the version
> |     here may be newer. nXhtml is version 1.76, zipping date is
> |     20090226. Approx 1701 kB.
> `----
>
> regards
>
> r.

I see its available via directory browsing:

http://ourcomments.org/Emacs/DL/elisp/nxhtml/beta/


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-05-24 13:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-21  9:58 mmm-mode/html-mode/php-mode issues Yuri D'Elia
2009-05-22 23:05 ` Lennart Borgman
2009-05-23  7:52   ` Yuri D'Elia
2009-05-23  8:47     ` Lennart Borgman
2009-05-23 11:34       ` Yuri D'Elia
2009-05-23 13:12         ` Lennart Borgman
     [not found] ` <mailman.7653.1243033551.31690.help-gnu-emacs@gnu.org>
2009-05-24 13:05   ` Richard Riley
2009-05-24 13:12     ` Richard Riley

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.