From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Roland Reichenberg" Newsgroups: gmane.emacs.help Subject: Re: C-x C-f /path/to/file returns "wrong type argument: stringp, nil" Date: Thu, 11 Sep 2003 10:08:26 +0200 Organization: CSL - Computer Service Langenbach GmbH Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1063269684 20107 80.91.224.253 (11 Sep 2003 08:41:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 11 Sep 2003 08:41:24 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 11 10:41:22 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19xN10-0002lE-00 for ; Thu, 11 Sep 2003 10:41:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 19xMvP-0000vk-J8 for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Sep 2003 04:35:35 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.stueberl.de!news.csl-gmbh.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 123 Original-NNTP-Posting-Host: kk158.aachen.utimaco.de Original-X-Trace: news.nrw.net 1063268557 10673 194.245.91.158 (11 Sep 2003 08:22:37 GMT) Original-X-Complaints-To: news@csl-gmbh.net Original-NNTP-Posting-Date: Thu, 11 Sep 2003 08:22:37 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Original-Xref: shelby.stanford.edu gnu.emacs.help:116533 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:12455 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:12455 Hi Jean-Philippe, > > Can you do M-x toggle-debug-on-error, then try to open a file like > above, (to provoque the error) then send the content of the > *backtrace* buffer here? > here is the backtrace. Note, that the file /tmp/test.c was created before! I hope this helps! Regards, Roland Debugger entered--Lisp error: (wrong-type-argument stringp nil) internal-set-lisp-face-attribute(blue/grey :font nil 0) set-face-attribute(blue/grey nil :font nil) set-face-font(blue/grey nil) (progn (set-face-font face nil) (set-face-underline-p face (string-match "underline" fn)) (if (string-match ".*bold" fn) (progn ... ...)) (if (string-match ".*italic" fn) (progn ... ...))) (or error (progn (set-face-font face nil) (set-face-underline-p face ...) (if ... ...) (if ... ...))) (cond ((or ... ...)) ((or force ... ...) (copy-face ... ...) (if ... ...) (if ... ... ...) (if ... ...) (and ... ...) (and ... ...) (condition-case nil ... ...) (or error ...))) (let* ((fn ...) (frame ...) (basefont ...) error fgcolor bgcolor) (cond (...) (... ... ... ... ... ... ... ... ...))) hilit-lookup-face-create(fold-open) (let ((face ...)) (setq rv (cons ... rv))) (cond ((symbolp pp) (setq rv ...)) ((not ...) (error "bad pattern %S" pp)) ((eq ... ...) (setq pp ...) (if local-pats ...) (if hilit-new-style-patterns ... ...)) (t (let ... ...))) (while pats (setq pp (car pats) pats (cdr pats)) (cond (... ...) (... ...) (... ... ... ...) (t ...))) (let (rv pp) (while pats (setq pp ... pats ...) (cond ... ... ... ...)) (setq rv (nreverse rv)) (or (symbolp ...) (setq rv ...)) (or hilit-quietly (message "")) (setq lcp rv)) hilit-compile-patterns((nil ("/\\*" "\\*/" comment) ("//.*$" 0 comment) ("^/.*$" 0 comment) (hilit-string-find 39 string) ^#[ ]*\\(undef\\|define\\).*$" "[^\\]$" define) ("^#.*$" 0 include) ("^\\(\\(\\w\\|[$_]\\)+::\\)?\\(\\w\\|[$_]\\)+\\s *\\(\\(\\w\\|[$_]\\)+\\s *((\\|(\\)[^)]*)+" 0 defun) \(\\(\\w\\|[$_]\\)+[ ]*::[ ]*\\)?\\(\\(\\w\\|[$_]\\)+\\|operator.*\\)\\s *\\(\\(\\w\\|[$_]\\)+\\s *((\\|(\\)[^)]*)+" 0 defun) ("^\\(template\\|typedef\\|struct\\|union\\|class\\|enum\\|public\\|private\ \|protected\\).*$" 0 decl) ("[ \n ({]\\(\\(const\\|register\\|volatile\\|unsigned\\|extern\\|static\\)\\s +\\)*\\(\\(\\w\\|[$_]\\)+_t\\|const\\|float\\|float&\\|float*\\|double\\|dou ble&\\|double*\\|void\\|char\\|short\\|int\\|int&\\|int*\\|long\\|FILE\\|FIL E*\\|\\(\\(struct\\|union\\|enum\\|class\\|inline\\|friend\\|static\\)\\([ ]+\\(\\w\\|[$_]\\)*\\)\\)\\)\\(\\s +\\*+)?\\|[ \n ;()]\\)" 0 type) ("[^_]\\<\\(return\\|goto\\|if\\|else\\|case\\|default\\|switch\\|break\\|co ntinue\\|while\\|do\\|for\\|public\\|protected\\|private\\|delete\\|new\\)\\ >[^_]" 1 keyword) ("//.{{{[^.\n]* " ".." fold-folded) ("//.{{{[^.\n]*" ".." fold-open)) nil) (cond ((null patterns) (or hilit-buffer-compiled-patterns ...) hilit-buffer-compiled-patterns) ((symbolp patterns) (let ... ...)) ((and ... ...) (cdr patterns)) (t (hilit-compile-patterns patterns ...))) hilit-get-compiled-patterns((nil ("/\\*" "\\*/" comment) ("//.*$" 0 comment) ("^/.*$" 0 comment) (hilit-string-find 39 string) ^#[ ]*\\(undef\\|define\\).*$" "[^\\]$" define) ("^#.*$" 0 include) ("^\\(\\(\\w\\|[$_]\\)+::\\)?\\(\\w\\|[$_]\\)+\\s *\\(\\(\\w\\|[$_]\\)+\\s *((\\|(\\)[^)]*)+" 0 defun) \(\\(\\w\\|[$_]\\)+[ ]*::[ ]*\\)?\\(\\(\\w\\|[$_]\\)+\\|operator.*\\)\\s *\\(\\(\\w\\|[$_]\\)+\\s *((\\|(\\)[^)]*)+" 0 defun) ("^\\(template\\|typedef\\|struct\\|union\\|class\\|enum\\|public\\|private\ \|protected\\).*$" 0 decl) ("[ \n ({]\\(\\(const\\|register\\|volatile\\|unsigned\\|extern\\|static\\)\\s +\\)*\\(\\(\\w\\|[$_]\\)+_t\\|const\\|float\\|float&\\|float*\\|double\\|dou ble&\\|double*\\|void\\|char\\|short\\|int\\|int&\\|int*\\|long\\|FILE\\|FIL E*\\|\\(\\(struct\\|union\\|enum\\|class\\|inline\\|friend\\|static\\)\\([ ]+\\(\\w\\|[$_]\\)*\\)\\)\\)\\(\\s +\\*+)?\\|[ \n ;()]\\)" 0 type) ("[^_]\\<\\(return\\|goto\\|if\\|else\\|case\\|default\\|switch\\|break\\|co ntinue\\|while\\|do\\|for\\|public\\|protected\\|private\\|delete\\|new\\)\\ >[^_]" 1 keyword) ("//.{{{[^.\n]* " ".." fold-folded) ("//.{{{[^.\n]*" ".." fold-open))) (and mpats (hilit-get-compiled-patterns mpats)) (let ((mpats ...)) (and mpats (hilit-get-compiled-patterns mpats))) (cond ((null patterns) (or hilit-buffer-compiled-patterns ...) hilit-buffer-compiled-patterns) ((symbolp patterns) (let ... ...)) ((and ... ...) (cdr patterns)) (t (hilit-compile-patterns patterns ...))) hilit-get-compiled-patterns(c++-mode) (setq hilit-buffer-compiled-patterns (hilit-get-compiled-patterns major-mode)) (or hilit-buffer-compiled-patterns (setq hilit-buffer-compiled-patterns (hilit-get-compiled-patterns major-mode))) (cond ((null patterns) (or hilit-buffer-compiled-patterns ...) hilit-buffer-compiled-patterns) ((symbolp patterns) (let ... ...)) ((and ... ...) (cdr patterns)) (t (hilit-compile-patterns patterns ...))) hilit-get-compiled-patterns(nil) (setq patterns (hilit-get-compiled-patterns patterns)) hilit-highlight-region(1 5943 nil nil) (save-restriction (widen) (setq start (save-excursion ... ... ...) start (apply ... start ...) end (save-excursion ... ... ...) end (apply ... end ...)) (hilit-unhighlight-region start end quietly) (hilit-highlight-region start end nil quietly)) hilit-rehighlight-region(1 5943 nil) (if parse-fn (funcall parse-fn quietly) (hilit-rehighlight-region (point-min) (point-max) quietly)) (let ((parse-fn ...)) (if parse-fn (funcall parse-fn quietly) (hilit-rehighlight-region ... ... quietly))) (if (/= (point-min) (point-max)) (let (...) (if parse-fn ... ...))) hilit-rehighlight-buffer() (if (> buffer-saved-size hilit-auto-highlight-maxout) nil (hilit-rehighlight-buffer) (set-buffer-modified-p nil)) (cond ((and hilit-auto-highlight ...) (if ... ...) (if ... nil ... ...))) hilit-find-file-hook() run-hooks(find-file-hooks) after-find-file(nil t) find-file-noselect-1(# "/tmp/test.c" nil nil "/tmp/test.c" (7598108 2113)) find-file-noselect("/tmp/test.c" nil nil 1) find-file("/tmp/test.c" 1) call-interactively(find-file)