* Editing PHP/HTML and nxHTML
@ 2016-06-15 8:54 Andrea Venturoli
2016-06-15 17:05 ` Andreas Röhler
` (3 more replies)
0 siblings, 4 replies; 14+ messages in thread
From: Andrea Venturoli @ 2016-06-15 8:54 UTC (permalink / raw)
To: help-gnu-emacs
Hello.
I'm in need to edit HTML code and mixed PHP/HTML code.
I'm not in for anything fancy: synthax highlighting, tags mismatch
detection and proper indenting is enough for me.
I searched the web for the suggested best option and it seems nxHTML is
highly backed.
However I'm getting tons of problems with it (see details at the end if
you want)...
I think I've got the latest version (2.08), which seems quite old
anyway. Is this still a supported package? Is it compatible with the
latest emacs?
Any pointer on how to make it work or any suggestion for a replacement?
bye & Thanks
av.
Details
As soon as I start emacs on an HTML file I get the following warnings:
> Warning: `comment-use-global-state' is an obsolete variable (as of 24.4); use
> `comment-use-syntax' instead.
> Warning: `font-lock-beginning-of-syntax-function' is an obsolete variable (as
> of 23.3); use `syntax-begin-function' instead.
> Warning: `font-lock-syntactic-keywords' is an obsolete variable (as of 24.1);
> use `syntax-propertize-function' instead.
> Warning: `comment-use-global-state' is an obsolete variable (as of 24.4); use
> `comment-use-syntax' instead.
> Warning: `font-lock-beginning-of-syntax-function' is an obsolete variable (as
> of 23.3); use `syntax-begin-function' instead.
> Warning: `font-lock-syntactic-keywords' is an obsolete variable (as of 24.1);
> use `syntax-propertize-function' instead.
> Warning: `comment-use-global-state' is an obsolete variable (as of 24.4); use
> `comment-use-syntax' instead.
> Warning: `font-lock-beginning-of-syntax-function' is an obsolete variable (as
> of 23.3); use `syntax-begin-function' instead.
> Warning: `font-lock-syntactic-keywords' is an obsolete variable (as of 24.1);
> use `syntax-propertize-function' instead.
I could live with these, but others come up every so often.
The bell is constantly ringing with some messages like "Wrong number of
arguments..." or "Error running timer..." or a lot of others.
Indentation rarely works properly.
"ediff-buffers" or "ediff-revision" is a risk, since it won't work
properly (deleting codes it shouldn't delete or adding some code where
it should *replace* some code).
And I could go on...
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Editing PHP/HTML and nxHTML
2016-06-15 8:54 Editing PHP/HTML and nxHTML Andrea Venturoli
@ 2016-06-15 17:05 ` Andreas Röhler
[not found] ` <mailman.1548.1466010062.1216.help-gnu-emacs@gnu.org>
` (2 subsequent siblings)
3 siblings, 0 replies; 14+ messages in thread
From: Andreas Röhler @ 2016-06-15 17:05 UTC (permalink / raw)
To: help-gnu-emacs
On 15.06.2016 10:54, Andrea Venturoli wrote:
> Hello.
>
> I'm in need to edit HTML code and mixed PHP/HTML code.
> I'm not in for anything fancy: synthax highlighting, tags mismatch
> detection and proper indenting is enough for me.
>
> I searched the web for the suggested best option and it seems nxHTML
> is highly backed.
> However I'm getting tons of problems with it (see details at the end
> if you want)...
> I think I've got the latest version (2.08), which seems quite old
> anyway. Is this still a supported package? Is it compatible with the
> latest emacs?
>
> Any pointer on how to make it work or any suggestion for a replacement?
>
> bye & Thanks
> av.
>
>
>
> Details
>
> As soon as I start emacs on an HTML file I get the following warnings:
>> Warning: `comment-use-global-state' is an obsolete variable (as of
>> 24.4); use
>> `comment-use-syntax' instead.
>> Warning: `font-lock-beginning-of-syntax-function' is an obsolete
>> variable (as
>> of 23.3); use `syntax-begin-function' instead.
>> Warning: `font-lock-syntactic-keywords' is an obsolete variable (as
>> of 24.1);
>> use `syntax-propertize-function' instead.
>> Warning: `comment-use-global-state' is an obsolete variable (as of
>> 24.4); use
>> `comment-use-syntax' instead.
>> Warning: `font-lock-beginning-of-syntax-function' is an obsolete
>> variable (as
>> of 23.3); use `syntax-begin-function' instead.
>> Warning: `font-lock-syntactic-keywords' is an obsolete variable (as
>> of 24.1);
>> use `syntax-propertize-function' instead.
>> Warning: `comment-use-global-state' is an obsolete variable (as of
>> 24.4); use
>> `comment-use-syntax' instead.
>> Warning: `font-lock-beginning-of-syntax-function' is an obsolete
>> variable (as
>> of 23.3); use `syntax-begin-function' instead.
>> Warning: `font-lock-syntactic-keywords' is an obsolete variable (as
>> of 24.1);
>> use `syntax-propertize-function' instead.
>
> I could live with these, but others come up every so often.
>
> The bell is constantly ringing with some messages like "Wrong number
> of arguments..."
Which would indicate a more serious error, resp. bug.
Please take in account Emacs being a volunteer effort.
A precise bug-reporting will be helpful.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Editing PHP/HTML and nxHTML
[not found] ` <mailman.1548.1466010062.1216.help-gnu-emacs@gnu.org>
@ 2016-06-15 18:18 ` Andrea Venturoli
0 siblings, 0 replies; 14+ messages in thread
From: Andrea Venturoli @ 2016-06-15 18:18 UTC (permalink / raw)
To: help-gnu-emacs
On 06/15/16 19:05, Andreas Röhler wrote:
> Please take in account Emacs being a volunteer effort.
> A precise bug-reporting will be helpful.
I'll happily fill one, once I understand what to report.
My first question was if nxHTML (from 2008) is still supported... no use
complaining otherwise.
Are you using it? Is it *expected* to work?
Second question: this would be an nxHTML bug, not an emacs one, right?
Last, I usually try and seek help before posting an official bug:
understanding whether it's a problem on my side should help keeping the
noise/signal ratio lower on the bug-tracker.
bye & Thanks
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Editing PHP/HTML and nxHTML
2016-06-15 8:54 Editing PHP/HTML and nxHTML Andrea Venturoli
2016-06-15 17:05 ` Andreas Röhler
[not found] ` <mailman.1548.1466010062.1216.help-gnu-emacs@gnu.org>
@ 2016-06-15 18:31 ` Dmitry Gutov
2016-06-16 9:55 ` Chris Van Dusen
[not found] ` <mailman.1555.1466015502.1216.help-gnu-emacs@gnu.org>
3 siblings, 1 reply; 14+ messages in thread
From: Dmitry Gutov @ 2016-06-15 18:31 UTC (permalink / raw)
To: Andrea Venturoli, help-gnu-emacs
On 06/15/2016 11:54 AM, Andrea Venturoli wrote:
> I think I've got the latest version (2.08), which seems quite old
> anyway. Is this still a supported package? Is it compatible with the
> latest emacs?
Looks like no: https://answers.launchpad.net/nxhtml/+question/236477
Its website is also down (I can't find it).
> Any pointer on how to make it work or any suggestion for a replacement?
Try http://web-mode.org/ maybe.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Editing PHP/HTML and nxHTML
2016-06-15 18:31 ` Dmitry Gutov
@ 2016-06-16 9:55 ` Chris Van Dusen
2016-06-17 22:38 ` Stefan Monnier
0 siblings, 1 reply; 14+ messages in thread
From: Chris Van Dusen @ 2016-06-16 9:55 UTC (permalink / raw)
To: Dmitry Gutov; +Cc: Andrea Venturoli, help-gnu-emacs
> On Jun 15, 2016, at 13:31, Dmitry Gutov <dgutov@yandex.ru> wrote:
>
>> On 06/15/2016 11:54 AM, Andrea Venturoli wrote:
>>
>> I think I've got the latest version (2.08), which seems quite old
>> anyway. Is this still a supported package? Is it compatible with the
>> latest emacs?
>
> Looks like no: https://answers.launchpad.net/nxhtml/+question/236477
>
> Its website is also down (I can't find it).
>
>> Any pointer on how to make it work or any suggestion for a replacement?
>
> Try http://web-mode.org/ maybe.
>
>
Yes, we-mode is the closest thing to standard mode for mixed-language editing.
IIRC, nxhtml hasn't worked well/at all since 24.1.
Hth,
Chris.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Editing PHP/HTML and nxHTML
2016-06-16 9:55 ` Chris Van Dusen
@ 2016-06-17 22:38 ` Stefan Monnier
2016-06-18 22:11 ` Chris Van Dusen
0 siblings, 1 reply; 14+ messages in thread
From: Stefan Monnier @ 2016-06-17 22:38 UTC (permalink / raw)
To: help-gnu-emacs
> IIRC, nxhtml hasn't worked well/at all since 24.1.
FWIW, it should be easy to adapt it to Emacs-24.1.
I really wish Lennart had installed it into GNU ELPA. I surely would
have adapted it to Emacs-24 by now if it were in elpa.git.
Stefan
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Editing PHP/HTML and nxHTML
2016-06-17 22:38 ` Stefan Monnier
@ 2016-06-18 22:11 ` Chris Van Dusen
2016-06-18 22:36 ` Emanuel Berg
` (2 more replies)
0 siblings, 3 replies; 14+ messages in thread
From: Chris Van Dusen @ 2016-06-18 22:11 UTC (permalink / raw)
To: Stefan Monnier; +Cc: help-gnu-emacs
On Jun 17, 2016, at 17:38, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
>> IIRC, nxhtml hasn't worked well/at all since 24.1.
>
> FWIW, it should be easy to adapt it to Emacs-24.1.
>
> I really wish Lennart had installed it into GNU ELPA. I surely would
> have adapted it to Emacs-24 by now if it were in elpa.git.
>
>
> Stefan
Is there any reason it can't be moved or forked to elpa.git?
Chris.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Editing PHP/HTML and nxHTML
2016-06-18 22:11 ` Chris Van Dusen
@ 2016-06-18 22:36 ` Emanuel Berg
2016-06-19 0:12 ` John Mastro
2016-06-19 21:14 ` Stefan Monnier
[not found] ` <mailman.1824.1466370906.1216.help-gnu-emacs@gnu.org>
2 siblings, 1 reply; 14+ messages in thread
From: Emanuel Berg @ 2016-06-18 22:36 UTC (permalink / raw)
To: help-gnu-emacs
Chris Van Dusen <cavandusen@gmail.com> writes:
>> FWIW, it should be easy to adapt it to
>> Emacs-24.1.
>>
>> I really wish Lennart had installed it into
>> GNU ELPA. I surely would have adapted it to
>> Emacs-24 by now if it were in elpa.git.
>
> Is there any reason it can't be moved or
> forked to elpa.git?
Well, as it is called, FWIW, I checked out
the page for nxHTML on git [1] and found a mail
to Lennart Borgman. The note is from 2006.
I sent him a mail as he is Swedish, and I don't
meet Swedes like ever, which is the reason by
the way I have such good posture and speak in
a loud and steady voice :) No, actually it is
depressing to say the least, and alarming.
But anyway. The name "Lennart" suggests he is
in his 50s or 60s, but that might be wrong, of
course. His mail is like mine, only "lu"
instead of "uu", so he went to Lund University,
not Uppsala. Anyway the mail bounced so there
is no writing to him that way.
[1] https://github.com/jwiegley/nxhtml/blob/master/nxhtml/ChangeLog
--
underground experts united .... http://user.it.uu.se/~embe8573
Emacs Gnus Blogomatic ......... http://user.it.uu.se/~embe8573/blogomatic
- so far: 52 Blogomatic articles -
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Editing PHP/HTML and nxHTML
2016-06-18 22:36 ` Emanuel Berg
@ 2016-06-19 0:12 ` John Mastro
2016-06-19 1:51 ` Emanuel Berg
0 siblings, 1 reply; 14+ messages in thread
From: John Mastro @ 2016-06-19 0:12 UTC (permalink / raw)
To: help-gnu-emacs@gnu.org
Emanuel Berg <embe8573@student.uu.se> wrote:
> Anyway the mail bounced so there is no writing to
> him that way.
>
> [1] https://github.com/jwiegley/nxhtml/blob/master/nxhtml/ChangeLog
If you feel like trying again, he lists a different email address in the
"Author:" header[1].
[1] https://github.com/jwiegley/nxhtml/blob/master/nxhtml/nxhtml.el
John
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Editing PHP/HTML and nxHTML
2016-06-19 0:12 ` John Mastro
@ 2016-06-19 1:51 ` Emanuel Berg
0 siblings, 0 replies; 14+ messages in thread
From: Emanuel Berg @ 2016-06-19 1:51 UTC (permalink / raw)
To: help-gnu-emacs
John Mastro <john.b.mastro@gmail.com> writes:
>> Anyway the mail bounced so there is no
>> writing to him that way. [1]
>> https://github.com/jwiegley/nxhtml/blob/master/nxhtml/ChangeLog
>
> If you feel like trying again, he lists
> a different email address in the "Author:"
> header[1].
>
> [1]
> https://github.com/jwiegley/nxhtml/blob/master/nxhtml/nxhtml.el
Yes, that worked. I got a reply one hour ago.
He said he was unaware of this discussion but
didn't have time to work on nxHTML anymore.
But I take it he'll check out the discussion
now and God willing the code will be adapted
somehow...
--
underground experts united .... http://user.it.uu.se/~embe8573
Emacs Gnus Blogomatic ......... http://user.it.uu.se/~embe8573/blogomatic
- so far: 52 Blogomatic articles -
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Editing PHP/HTML and nxHTML
2016-06-18 22:11 ` Chris Van Dusen
2016-06-18 22:36 ` Emanuel Berg
@ 2016-06-19 21:14 ` Stefan Monnier
[not found] ` <mailman.1824.1466370906.1216.help-gnu-emacs@gnu.org>
2 siblings, 0 replies; 14+ messages in thread
From: Stefan Monnier @ 2016-06-19 21:14 UTC (permalink / raw)
To: Chris Van Dusen; +Cc: help-gnu-emacs
>>> IIRC, nxhtml hasn't worked well/at all since 24.1.
>> FWIW, it should be easy to adapt it to Emacs-24.1.
>> I really wish Lennart had installed it into GNU ELPA. I surely would
>> have adapted it to Emacs-24 by now if it were in elpa.git.
> Is there any reason it can't be moved or forked to elpa.git?
I don't know. I asked Lennart several times to do it. I don't know if
all the copyright is assigned, for example.
We could add it to elpa.git if Lennart agrees and the copyright
is clear.
Stefan
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Editing PHP/HTML and nxHTML
[not found] ` <mailman.1824.1466370906.1216.help-gnu-emacs@gnu.org>
@ 2016-06-20 1:10 ` Emanuel Berg
2016-06-20 3:33 ` Stefan Monnier
0 siblings, 1 reply; 14+ messages in thread
From: Emanuel Berg @ 2016-06-20 1:10 UTC (permalink / raw)
To: help-gnu-emacs
Stefan Monnier <monnier@iro.umontreal.ca>
writes:
> I don't know. I asked Lennart several times
> to do it. I don't know if all the copyright
> is assigned, for example. We could add it to
> elpa.git if Lennart agrees and the copyright
> is clear.
I CC'd my previous message in this thread to
him and he said he'd check out the discussion
when he got around. Sometimes when people say
that it doesn't happen tho. It's just the way
it goes. If you tell him you plan to include
nxHTML in vanilla Emacs, I'd think that would
make him motivated.
--
underground experts united .... http://user.it.uu.se/~embe8573
Emacs Gnus Blogomatic ......... http://user.it.uu.se/~embe8573/blogomatic
- so far: 52 Blogomatic articles -
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Editing PHP/HTML and nxHTML
2016-06-20 1:10 ` Emanuel Berg
@ 2016-06-20 3:33 ` Stefan Monnier
0 siblings, 0 replies; 14+ messages in thread
From: Stefan Monnier @ 2016-06-20 3:33 UTC (permalink / raw)
To: help-gnu-emacs
> If you tell him you plan to include nxHTML in vanilla Emacs,
I can't tell him that. I only want it included in GNU ELPA, in the
hopes that it will make sure it stays usable, and in the hopes that it
will encourage other Emacs contributors to take the good ideas and
designs and code from it, and maybe merge some parts, who knows.
It will also make it much more easily installable for end-users.
I'd also like to see web-mode in GNU ELPA for the same kinds of reasons.
Stefan
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Editing PHP/HTML and nxHTML
[not found] ` <mailman.1555.1466015502.1216.help-gnu-emacs@gnu.org>
@ 2017-01-25 11:39 ` Andrea Venturoli
0 siblings, 0 replies; 14+ messages in thread
From: Andrea Venturoli @ 2017-01-25 11:39 UTC (permalink / raw)
To: help-gnu-emacs
On 06/15/16 20:31, Dmitry Gutov wrote:
>> Any pointer on how to make it work or any suggestion for a replacement?
>
> Try http://web-mode.org/ maybe.
Sorry for answering so late :)
I've been using web-mode and I'm quite happy with it.
Thanks for the suggestion.
bye
av.
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2017-01-25 11:39 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-15 8:54 Editing PHP/HTML and nxHTML Andrea Venturoli
2016-06-15 17:05 ` Andreas Röhler
[not found] ` <mailman.1548.1466010062.1216.help-gnu-emacs@gnu.org>
2016-06-15 18:18 ` Andrea Venturoli
2016-06-15 18:31 ` Dmitry Gutov
2016-06-16 9:55 ` Chris Van Dusen
2016-06-17 22:38 ` Stefan Monnier
2016-06-18 22:11 ` Chris Van Dusen
2016-06-18 22:36 ` Emanuel Berg
2016-06-19 0:12 ` John Mastro
2016-06-19 1:51 ` Emanuel Berg
2016-06-19 21:14 ` Stefan Monnier
[not found] ` <mailman.1824.1466370906.1216.help-gnu-emacs@gnu.org>
2016-06-20 1:10 ` Emanuel Berg
2016-06-20 3:33 ` Stefan Monnier
[not found] ` <mailman.1555.1466015502.1216.help-gnu-emacs@gnu.org>
2017-01-25 11:39 ` Andrea Venturoli
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).