From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: lee Newsgroups: gmane.emacs.help Subject: `comment-start' is nil Date: Wed, 12 Mar 2014 22:37:38 +0100 Organization: my virtual residence Message-ID: <878usf6qu5.fsf@yun.yagibdah.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1394660937 3429 80.91.229.3 (12 Mar 2014 21:48:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Mar 2014 21:48:57 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 12 22:49:06 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WNr1N-00046R-5k for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Mar 2014 22:49:05 +0100 Original-Received: from localhost ([::1]:35082 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNr1M-0003p7-R4 for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Mar 2014 17:49:04 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40312) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNr0k-0003Ie-OR for help-gnu-emacs@gnu.org; Wed, 12 Mar 2014 17:48:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WNr0e-0003qY-FW for help-gnu-emacs@gnu.org; Wed, 12 Mar 2014 17:48:26 -0400 Original-Received: from client-194-42-186-216.muenet.net ([194.42.186.216]:53152 helo=yun.yagibdah.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNr0e-0003nJ-8V for help-gnu-emacs@gnu.org; Wed, 12 Mar 2014 17:48:20 -0400 Original-Received: from lee by yun.yagibdah.de with local (Exim 4.80.1) (envelope-from ) id 1WNr0Z-0007VO-48 for help-gnu-emacs@gnu.org; Wed, 12 Mar 2014 22:48:15 +0100 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) Mail-Followup-To: help-gnu-emacs@gnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 194.42.186.216 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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 Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:96477 Archived-At: Hi, I=C2=B4m using desktop-mode to restore the previous session when starting emacs. For some buffers that are restored this way, I=C2=B4m using a mode I=C2=B4m working on. This mode employs a function to search for a regex in particular buffers. The regex involves `comment-start'. Unfortunately, at the time the function is running during start-up, the value of `comment-start' is nil. (let ((end-marker (concat "^" comment-start lsl-hi-lock-patterns-end-ma= rker))) (message "comment-start with %s is %s" (buffer-name) comment-start) ...) gives me messages like "comment-start with test-plane.fontify is nil". Calling the same function later works fine because `comment-start' isn=C2= =B4t nil anymore. Is it supposed to be like this, or is it a bug that `comment-start' is nil? I could work around it by setting `comment-start' to "# ", or by omitting it, when it=C2=B4s nil, but if it=C2=B4s a bug, it should rather be fixed ... --=20 Knowledge is volatile and fluid. Software is power.