all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: John Smith <drefleladi@gmail.com>
To: Alan Mackenzie <acm@muc.de>
Cc: Chong Yidong <cyd@gnu.org>,
	13046@debbugs.gnu.org, Vadim K <vadimsks@gmail.com>
Subject: bug#13046: 23.4; Minimal Example to freeze emacs C++ mode (nasty interaction between templates & windows endline characters )
Date: Fri, 7 Dec 2012 05:34:32 +0100	[thread overview]
Message-ID: <CANfHaNtibdReLfDPDE0mC3JqYkbkqaStTZLn+9iQQjejLue9tA@mail.gmail.com> (raw)
In-Reply-To: <20121205201047.GA3656@acm.acm>

[-- Attachment #1: Type: text/plain, Size: 3159 bytes --]

Damn you.
I *told* you that I didn't have the time & skills to look into this further
and you being so-nice-and-all guilt forced me into doing it :)

ok, so a few take-aways from giving advices to an emacs noob:

-on ubuntu the distribution only packages compiled lisp files so one needs
to add a special package to get the sources

-*In either case you can find it for sure with C-h f c-mode <ret>, and
click/type CR on the file name.  Then do C-x C-v to see where it is.*
I could switch to the C-mode but never understood what "*click/type CR on
the file name"* was supposed to mean. Anyways I found the file.

-the patch didn't work since the lines you removed changed a bit between
23.4 and HEAD, but I worked around it.

-like all good things there are dependencies: cc-defs.el for one and
friends, I had to fetch them

-mmh, it doesn't byte compile. actually, even vanilla unpatched file
doesn't byte-compile:
In c-declare-lang-variables:
cc-engine.el:162:28:Warning: reference to free variable
    `c-lang-variable-inits'
cc-engine.el:163:1:Error: Symbol's value as variable is void:
c-lang-variable-inits

I tried commenting out that line but no such luck.
I guess this is a trivial problem and I need to build something else but
mmh what? I'm stuck.
Years of devs in heaps of languages and yet I'm so helpless with this one.

Cheers and thanks for the trip.
John



On Wed, Dec 5, 2012 at 9:10 PM, Alan Mackenzie <acm@muc.de> wrote:

> Hello, John.
>
> On Mon, Dec 03, 2012 at 09:54:51AM +0100, John Smith wrote:
> > Hello all,
>
> > I'm afraid my limited emacs knowledge will not allow me to test the
> patch.
> > (Building fresh from source + patching the lisp => too much :) )
> > I trust however that it does!
>
> If you want to test the patch, here's how to go about it:
> (i) Make sure you've got the program `patch' installed - it's in package
> "diffutils".  (I don't know the package manager in Ubuntu).
>
> (ii) Extract my email containing the patch to a file, say foo.diff.  You
> don't need to bother separating out the actual patch from all the other
> stuff.
>
> (iii) Locate cc-engine.el.  It will be somewhere like
> /usr/local/share/emacs/24.2/lisp/progmodes/cc-engine.el.gz if you
> installed Emacs from source, or
> /usr/share/emacs/24.2/lisp/progmodes/cc-engine.el.gz if you installed
> Emacs from a package manager.  In either case you can find it for sure with
> C-h f c-mode <ret>, and click/type CR on the file name.  Then do C-x C-v
> to see where it is.
>
> (iv) Unzip the source file: cd <above directory>; gunzip cc-engine.el.gz
>
> (v) Patch that file: patch < /path/to/foo.diff
>
> (vi) Byte compile the file: (in emacs)
> M-x byte-compile-file <ret> /path/to/cc-engine.el
>
> (vii) Load the file (or restart Emacs):
> M-x load-file /path/to/cc-engine.elc
> (note the 'c' at the end of ".elc")
>
> (viii) Advisable: gunzip, byte compile, and load cc-cmds.el.gz too.
> This is because it uses the "defsubst" (inline function) changed in
> cc-engine.el.
>
> > Thanks for being so responsive.
>
> Thank you for such a high quality bug report.
>
> > Yours Sincerely,
> > John
>
> --
> Alan Mackenzie (Nuremberg, Germany).
>

[-- Attachment #2: Type: text/html, Size: 3914 bytes --]

  parent reply	other threads:[~2012-12-07  4:34 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAA0CNY4S6hOa=dzq8pu8wtibaemEUTx4rs0m4+BKyCk5ohRO2w@mail.gmail.com>
2012-12-01 15:22 ` bug#13046: 23.4; Minimal Example to freeze emacs C++ mode (nasty interaction between templates & windows endline characters ) John Smith
2012-12-02  2:13   ` Chong Yidong
2012-12-02 15:46     ` Alan Mackenzie
2012-12-02 18:16     ` Alan Mackenzie
2012-12-03  8:54       ` John Smith
2012-12-05 20:10         ` Alan Mackenzie
     [not found]         ` <20121205201047.GA3656@acm.acm>
2012-12-07  4:34           ` John Smith [this message]
2012-12-09 16:58             ` Alan Mackenzie
2012-12-15 18:01               ` John Smith
2012-12-09  4:06       ` Chong Yidong
2012-12-09 13:40       ` Vadim K

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CANfHaNtibdReLfDPDE0mC3JqYkbkqaStTZLn+9iQQjejLue9tA@mail.gmail.com \
    --to=drefleladi@gmail.com \
    --cc=13046@debbugs.gnu.org \
    --cc=acm@muc.de \
    --cc=cyd@gnu.org \
    --cc=vadimsks@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.