all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* New version of nXhtml available
@ 2008-03-07  0:12 Lennart Borgman (gmail)
  2008-04-07  1:58 ` Cezar Halmagean
  0 siblings, 1 reply; 7+ messages in thread
From: Lennart Borgman (gmail) @ 2008-03-07  0:12 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org

Just uploaded a new version of nXhtml, see

   http://www.emacswiki.org/cgi-bin/wiki/NxhtmlMode

There are rather big changes in this release.




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

* Re: New version of nXhtml available
       [not found] <mailman.8464.1204848778.18990.help-gnu-emacs@gnu.org>
@ 2008-03-07  3:49 ` Richard G Riley
  2008-03-07  5:44   ` Richard G Riley
  0 siblings, 1 reply; 7+ messages in thread
From: Richard G Riley @ 2008-03-07  3:49 UTC (permalink / raw)
  To: help-gnu-emacs

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

> Just uploaded a new version of nXhtml, see
>
>   http://www.emacswiki.org/cgi-bin/wiki/NxhtmlMode
>
> There are rather big changes in this release.

I created a new file, text.php,

<div src="hello"></div>
<img alt="angry" src="hello.gif"/>


and both div and img are underlined I can do no completion at any
point. How to set this up to work? I tried various validation
schemas. Maybe I am missing something?

Can you run through just what sequence of options I must select to make
this work (emacs 22).

I think I might be getting confused between the schema settings under
xml and the nxhtml completion.

But if you could run through from A to Z on getting completion working I
would be grateful.

Multiple major mode is working. if I add some embedded php it
switches. But I'm more interested in just getting basic nxhtml
completion working for a start.

Should everything be done from the nxhtml menu? Or a combination of the
xml and the nxhtml menu? The docs here:

http://ourcomments.org/Emacs/nXhtml/doc/nxhtml.html

are a little vague.

Possibly I have old "settings" files left lying around from the old
version? Should I delete my schemas.xml file?

Any help appreciated.








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

* Re: New version of nXhtml available
  2008-03-07  3:49 ` New version of nXhtml available Richard G Riley
@ 2008-03-07  5:44   ` Richard G Riley
  2008-03-07 17:24     ` Lennart Borgman (gmail)
  0 siblings, 1 reply; 7+ messages in thread
From: Richard G Riley @ 2008-03-07  5:44 UTC (permalink / raw)
  To: help-gnu-emacs

Richard G Riley <rileyrgdev@gmail.com> writes:

> "Lennart Borgman (gmail)" <lennart.borgman@gmail.com> writes:
>
>> Just uploaded a new version of nXhtml, see
>>
>>   http://www.emacswiki.org/cgi-bin/wiki/NxhtmlMode
>>
>> There are rather big changes in this release.
>
> I created a new file, text.php,
>
> <div src="hello"></div>
> <img alt="angry" src="hello.gif"/>
>
>
> and both div and img are underlined I can do no completion at any
> point. How to set this up to work? I tried various validation
> schemas. Maybe I am missing something?
>
> Can you run through just what sequence of options I must select to make
> this work (emacs 22).
>
> I think I might be getting confused between the schema settings under
> xml and the nxhtml completion.
>
> But if you could run through from A to Z on getting completion working I
> would be grateful.
>
> Multiple major mode is working. if I add some embedded php it
> switches. But I'm more interested in just getting basic nxhtml
> completion working for a start.
>
> Should everything be done from the nxhtml menu? Or a combination of the
> xml and the nxhtml menu? The docs here:
>
> http://ourcomments.org/Emacs/nXhtml/doc/nxhtml.html
>
> are a little vague.
>
> Possibly I have old "settings" files left lying around from the old
> version? Should I delete my schemas.xml file?
>
> Any help appreciated.

Just a little more info : I can see the fictive validation header. But
the actual php buffer appears not to be validated with it. If I remove
the 2 lines above and then select completion the first option is 

<html

even though I see that already in the fictive buffer. The only
conclusion  I can come to is that its not using the fictive visible
validation header for some reason. 



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

* Re: New version of nXhtml available
  2008-03-07  5:44   ` Richard G Riley
@ 2008-03-07 17:24     ` Lennart Borgman (gmail)
  2008-03-08 11:40       ` Lennart Borgman (gmail)
  0 siblings, 1 reply; 7+ messages in thread
From: Lennart Borgman (gmail) @ 2008-03-07 17:24 UTC (permalink / raw)
  To: Richard G Riley; +Cc: help-gnu-emacs

Richard G Riley wrote:
> Richard G Riley <rileyrgdev@gmail.com> writes:
> 
>> "Lennart Borgman (gmail)" <lennart.borgman@gmail.com> writes:
>>
>>> Just uploaded a new version of nXhtml, see
>>>
>>>   http://www.emacswiki.org/cgi-bin/wiki/NxhtmlMode
>>>
>>> There are rather big changes in this release.
>> I created a new file, text.php,
>>
>> <div src="hello"></div>
>> <img alt="angry" src="hello.gif"/>
>>
>>
>> and both div and img are underlined I can do no completion at any
>> point. How to set this up to work? I tried various validation
>> schemas. Maybe I am missing something?

Hi Richard,

Yes, but I can see that you have found it: Fictive XHTML validation 
headers. They are supposed to tell the XHTML parser (from nxml-mode) the 
state beginning parsing state.

As you surely know now they are in the menus under

   nXhtml
     Completion and Validation
       Validation helpers (for php etc)

>> Can you run through just what sequence of options I must select to make
>> this work (emacs 22).
>>
>> I think I might be getting confused between the schema settings under
>> xml and the nxhtml completion.
>>
>> But if you could run through from A to Z on getting completion working I
>> would be grateful.

It is just that validation header which you need in a buffer where there 
is no or just a partial "document header".

>> Multiple major mode is working. if I add some embedded php it
>> switches. But I'm more interested in just getting basic nxhtml
>> completion working for a start.
>>
>> Should everything be done from the nxhtml menu? Or a combination of the
>> xml and the nxhtml menu? The docs here:
>>
>> http://ourcomments.org/Emacs/nXhtml/doc/nxhtml.html
>>
>> are a little vague.

Most things you need are in the nXhtml menu. You should not need to do 
things like "Set Schema" from the XML menu. However if you PHP code is 
just using <?php ... ?> tags (and does not do those things inside an 
attribute or as part of an opening tag) then "First Error"/"Next Error" 
can of course be useful.

If you think the docs can be improved then maybe you have some suggestion?

>> Possibly I have old "settings" files left lying around from the old
>> version? Should I delete my schemas.xml file?

You should not need any such file just to edit PHP. Everything needed 
should be there with nXhtml.

>> Any help appreciated.
> 
> Just a little more info : I can see the fictive validation header. But
> the actual php buffer appears not to be validated with it. If I remove
> the 2 lines above and then select completion the first option is 
> 
> <html
> 
> even though I see that already in the fictive buffer. The only
> conclusion  I can come to is that its not using the fictive visible
> validation header for some reason. 

That does not happen for me here. It could be a bug. (A difficult one. 
The parser could be in a bad state.)

Could you just close the file and reopen it? Then add the validation 
header again.

Does it work for you now? Otherwise please send me more detailed 
information. Exactly what do you do etc.




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

* Re: New version of nXhtml available
  2008-03-07 17:24     ` Lennart Borgman (gmail)
@ 2008-03-08 11:40       ` Lennart Borgman (gmail)
  0 siblings, 0 replies; 7+ messages in thread
From: Lennart Borgman (gmail) @ 2008-03-08 11:40 UTC (permalink / raw)
  To: Richard G Riley; +Cc: help-gnu-emacs

Lennart Borgman (gmail) wrote:
> Richard G Riley wrote:
>> Just a little more info : I can see the fictive validation header. But
>> the actual php buffer appears not to be validated with it. If I remove
>> the 2 lines above and then select completion the first option is
>> <html
>>
>> even though I see that already in the fictive buffer. The only
>> conclusion  I can come to is that its not using the fictive visible
>> validation header for some reason. 
> 
> That does not happen for me here. It could be a bug.

There was a bug when turning off the validation header. I do not know if 
this has affected you, but I have uploaded a new version (1.11) where I 
hope I have fixed this.





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

* Re: New version of nXhtml available
  2008-03-07  0:12 Lennart Borgman (gmail)
@ 2008-04-07  1:58 ` Cezar Halmagean
  0 siblings, 0 replies; 7+ messages in thread
From: Cezar Halmagean @ 2008-04-07  1:58 UTC (permalink / raw)
  To: help-gnu-emacs

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

> Just uploaded a new version of nXhtml, see
>
>   http://www.emacswiki.org/cgi-bin/wiki/NxhtmlMode
>
> There are rather big changes in this release.

Hi Lennart,

  First of all, let me say thank you for this mode.
  Second, I would like to ask if there is a way to use this mode as a
  rails html edit mode instead of the html-mode provided by emacs-rails.

  If you are not familiar with emacs-rails, here it is:

  http://rubyforge.org/projects/emacs-rails/

  It would be nice to have this mode for working with rails html.erb
  files.

Best regards,
Cezar





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

* New version of nXhtml available
@ 2008-05-10 22:33 Lennart Borgman (gmail)
  0 siblings, 0 replies; 7+ messages in thread
From: Lennart Borgman (gmail) @ 2008-05-10 22:33 UTC (permalink / raw)
  To: Help-gnu-emacs

See EmacsWiki.




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

end of thread, other threads:[~2008-05-10 22:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.8464.1204848778.18990.help-gnu-emacs@gnu.org>
2008-03-07  3:49 ` New version of nXhtml available Richard G Riley
2008-03-07  5:44   ` Richard G Riley
2008-03-07 17:24     ` Lennart Borgman (gmail)
2008-03-08 11:40       ` Lennart Borgman (gmail)
2008-05-10 22:33 Lennart Borgman (gmail)
  -- strict thread matches above, loose matches on Subject: below --
2008-03-07  0:12 Lennart Borgman (gmail)
2008-04-07  1:58 ` Cezar Halmagean

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.