From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.help Subject: Re: The problem of writing php code with emacs, Help!! Date: Mon, 29 Mar 2010 22:28:35 +0200 Message-ID: References: <3f667c87-c3fe-42ec-9c48-b791223ce139@u36g2000prn.googlegroups.com> <30332961.01269736061610.JavaMail.root@wombat> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1269895474 30667 80.91.229.12 (29 Mar 2010 20:44:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 29 Mar 2010 20:44:34 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: m.pontus@gmail.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 29 22:44:30 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NwLp0-0006Su-12 for geh-help-gnu-emacs@m.gmane.org; Mon, 29 Mar 2010 22:44:30 +0200 Original-Received: from localhost ([127.0.0.1]:41744 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NwLoz-0007qR-D2 for geh-help-gnu-emacs@m.gmane.org; Mon, 29 Mar 2010 16:44:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NwLa2-0004OZ-4m for help-gnu-emacs@gnu.org; Mon, 29 Mar 2010 16:29:02 -0400 Original-Received: from [140.186.70.92] (port=43376 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NwLa0-0004Nb-PV for help-gnu-emacs@gnu.org; Mon, 29 Mar 2010 16:29:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NwLZw-0004D7-E1 for help-gnu-emacs@gnu.org; Mon, 29 Mar 2010 16:29:00 -0400 Original-Received: from mail-fx0-f224.google.com ([209.85.220.224]:41445) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NwLZw-0004D1-7y for help-gnu-emacs@gnu.org; Mon, 29 Mar 2010 16:28:56 -0400 Original-Received: by fxm24 with SMTP id 24so11745fxm.26 for ; Mon, 29 Mar 2010 13:28:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:received:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=h1IJcvvf2aAqPKmm6wyRqtUpdQPY6afk2RcXIgpHS/s=; b=dUx/BmevN/k33O/K1H1fZksHWGfox1FWnwUzFp/D/xAsJttLqQlYJrM+XafiUasbLr 1I5iYX6qilUsYfY6fkIN22hMl9rRHQLcMmtlLDNDSrCTJcNjIEoWhMAPzUIyNIFJJeZI M8810oZ/0bIGGc4CkgkbNBb4095UBxiazuISQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=asxMgTsBv1mxKD3QCj1AcnCh38rcXQo7x0VubYsHRIJFI/JHBAXuyloyR3ddwpxHL1 xzWInDXyKh3ZUPbaQ5yU/QSaqkrx8l20pJeO+7/gJPFCKUmSqQVwbGnec4tn6iT7sKtq nP4WGGG5INf4/2WW0fQqWCW1oYkLNt1WvBgPk= Original-Received: by 10.239.169.18 with HTTP; Mon, 29 Mar 2010 13:28:35 -0700 (PDT) In-Reply-To: <30332961.01269736061610.JavaMail.root@wombat> Original-Received: by 10.239.189.141 with SMTP id t13mr499150hbh.194.1269894535152; Mon, 29 Mar 2010 13:28:55 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:72536 Archived-At: On Sun, Mar 28, 2010 at 1:27 AM, wrote: > Having the same problem. It may be better idea to put a bug into mmm-mode= bug tracker, but if anyone is familiar with this problem, the solution wou= ld me much appreciated. > > I managed to get backtrace on error occurrence, here is what it says: > =C2=A0Debugger entered--Lisp error: (wrong-type-argument stringp nil) > =C2=A0c-syntactic-skip-backward(nil nil t) > =C2=A0c-looking-at-decl-block(nil t) > =C2=A0c-guess-basic-syntax() > =C2=A0c-indent-line() > =C2=A0c-electric-semi&comma(nil) > =C2=A0call-interactively(c-electric-semi&comma nil nil) > > My lack of elisp knowledge doesn't let me to help in fixing this issue. > I looked deeply for solution to this problem, unfortunately I didn't find= anything but the advices of using mumamo instead. Well, I hesitate to acce= pt this solution. nXhtml is a great package with a lot of features, but wha= t i'm looking for is a simple multimode in a buffer which will let me jump = between php, javascript and css in html document for indention and highligh= ting. Omitting the fact that nXhtml had insufficient performance without by= te-compiling (i didn't try compiling it tbh) I don't like the idea of havin= g one package for all tasks. Sorry if i misunderstood the role of nXhtml an= d mumamo package. > > P.S. > I can not vouch for the reliability of next words, but as far as i can re= member, when i first installed and configured the package, i tried to write= a file combined of html, php, css and javascript and it worked well includ= ing highlighting and indention. I can not remember if I changed something s= ince that time, but now I'm having this annoying error just like the topic = starter. It is a bit unclear to me if you are using mmm-mode or nXhtml. If you want to test nXhtml I just uploaded a new beta 2.07 which may fix your problems. Byte compiling nXhtml can be done from the nXhtml menu in Emacs. For the problem that you do not wish to have everything in one package I have no cure ... ;-)