From: Alan Mackenzie <acm@muc.de>
To: help-gnu-emacs@gnu.org
Subject: Re: problem with ps-print-buffer-faces
Date: Fri, 11 Nov 2011 15:18:47 +0000 (UTC) [thread overview]
Message-ID: <j9jecn$2jg1$1@colin.muc.de> (raw)
In-Reply-To: mailman.137.1320864536.798.help-gnu-emacs@gnu.org
Jeffery Rancier <Jeffery.Rancier@wegmans.com> wrote:
> All:
> When I attempt to call ps-print-buffer-faces in jde-mode or c-mode, I
> get the follow error. Is this a problem with my ps-print module?
> Suggestions?
It looks very much like a bug in CC Mode which has already been fixed in
the upcoming Emacs 24. If so, sorry about it.
By the way, are you _sure_ that it happens in C Mode too?
Would you please apply the following patch, recompile cc-fonts.el, and
tell me whether or not it solves the problem. (If you're unsure about
patches or compiling lisp files, send me a private email.)
Here's the patch:
*** orig/cc-fonts.el 2011-10-02 10:20:24.000000000 +0000
--- cc-fonts.el 2011-10-07 17:02:54.000000000 +0000
***************
*** 1526,1532 ****
(setq decl-context (c-beginning-of-decl-1)
in-typedef (looking-at c-typedef-key))
(if in-typedef (c-forward-token-2))
! (when (looking-at c-opt-block-decls-with-vars-key)
(goto-char ps-elt)
(when (c-safe (c-forward-sexp))
(c-forward-syntactic-ws)
--- 1529,1536 ----
(setq decl-context (c-beginning-of-decl-1)
in-typedef (looking-at c-typedef-key))
(if in-typedef (c-forward-token-2))
! (when (and c-opt-block-decls-with-vars-key
! (looking-at c-opt-block-decls-with-vars-key))
(goto-char ps-elt)
(when (c-safe (c-forward-sexp))
(c-forward-syntactic-ws)
> Platform: Windows XP
> Emacs version: GNU Emacs 23.3.1 (i386-mingw-nt5.1.2600) of 2011-03-10 on 3249CTO
> ps-print version : 7.3.5
>
> Debugger entered--Lisp error: (wrong-type-argument stringp nil)
> looking-at(nil)
> c-font-lock-enclosing-decls(4773)
> font-lock-fontify-keywords-region(2163 4773 nil)
> font-lock-default-fontify-region(2163 4773 nil)
> font-lock-fontify-region(2163 4773)
> run-hook-with-args(font-lock-fontify-region 2163 4773)
> byte-code("\302\303^H #\207" [start next run-hook-with-args jit-lock-functions] 4)
> jit-lock-fontify-now(1 4773)
> ps-print-ensure-fontified(1 4773)
> ps-generate-postscript-with-faces(1 4773)
> ps-generate(#<buffer SQLTool.java> 1 4773 ps-generate-postscript-with-faces)
> ps-spool-with-faces(1 4773 nil)
> ps-print-with-faces(1 4773 nil)
> ps-print-buffer-with-faces(nil)
> call-interactively(ps-print-buffer-with-faces nil nil)
>
--
Alan Mackenzie (Nuremberg, Germany).
next parent reply other threads:[~2011-11-11 15:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.137.1320864536.798.help-gnu-emacs@gnu.org>
2011-11-11 15:18 ` Alan Mackenzie [this message]
2011-11-09 18:28 problem with ps-print-buffer-faces Jeffery Rancier
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='j9jecn$2jg1$1@colin.muc.de' \
--to=acm@muc.de \
--cc=help-gnu-emacs@gnu.org \
/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.