nxhtml php chunk indent weirdl

Bug #709684 reported by lborgman on 2011-01-29
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

I'm using emacs23 with nxhtml 2.08.
I have tried many modes before to edit php files with mixed code part, nxhtml is the most `bug free' one I have already tried.
Now it seems everything works fine but one indentation problem.
Below is the how it looks:
                                                            if ($var == 1)
                                                                  // blabla
                                                            // blabla
The php chunk is indented to the right side, which looks very weird.
Is there any customization to fix this?

lborgman (lennart-borgman) wrote :

So now we have a bug report instead of just a question. Which means we can give it a status and tell when a fix is submitted and so on.

Could you please try the latest beta 2.09 from the repository here at Launchpad? Do you still see the problem there?

Changed in nxhtml:
importance: Undecided → Medium
status: New → In Progress
cuiaoxiang (cuiaoxiang-gmail) wrote :

Where can I find beta 2.09 to DOWNLOAD?
I searched this site for a while, only find some modification logs about current version 2.09; can't find a package to download.

cuiaoxiang (cuiaoxiang-gmail) wrote :

I mean, for example, in this page http://bazaar.launchpad.net/~nxhtml/nxhtml/main/files/772
I can only download individual files one by one, isn't there a tar.gz file to download?

lborgman (lennart-borgman) wrote :

You can download all the files using bazaar.

However I have just uploaded a zip file here: http://ourcomments.org/Emacs/DL/elisp/nxhtml/beta/

cuiaoxiang (cuiaoxiang-gmail) wrote :

It seems correct now.
The first time I opened emacs, a bunch of error message flooded in the *Message* buffer, and I can't even edit files, font highlights are also messed up.
So I reopened emacs, this time everything seems O.K. The weird indenting problem is solved.
I checked *Message* buffer, there is an error:
    File mode specification error: (file-error "Cannot open load file" "sb-html")
But it seems doesn't matter, I'm not sure.

Another question, when edit php files in emacs php-mode, the comment style is C++,
// comment line 1
// comment line 2
now nxhtml's comment style is C
/* comment line 1 */
/* comment line 2 */

How can I change the comment style?

cuiaoxiang (cuiaoxiang-gmail) wrote :

I happened again :(
The echo area says:
    Assertion failed: (fuctionp (symbol-value fun-var-sym)), nil
    - Please try M-: (mumamo-post-command-1) to see what happened.

Almost crashed

lborgman (lennart-borgman) wrote :

cuiaoxiang, could you please enable debug-on-error and try the above? I would like to see the backtrace.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related questions