M-x cperl-indent-region: why error "no comment syntax is defined"?

Discussion in 'Perl Misc' started by David Combs, Apr 4, 2006.

  1. David Combs

    David Combs Guest

    (I cross-post this in hope that eg ilya or other guru might see it
    sooner. Plus ANY respondees will see posts from ALL respondees.
    (yes, I know there is a religious-issue about cross-posting :-( ))


    M-x cperl-indent-region: why error "no comment syntax is defined"?

    ----- Heading-lines of /.../cvs-emacs--6apr05/lisp/progmodes/cperl-mode.el:

    ;;; cperl-mode.el --- Perl code editing commands for Emacs

    ;; Copyright (C) 1985,86,87,91,92,93,94,95,96,97,98,99,2000,03,2004,2005
    ;; Free Software Foundation, Inc.

    ;; Author: Ilya Zakharevich and Bob Olson
    ;; Maintainer: Ilya Zakharevich <>
    ;; Keywords: languages, Perl

    ;; This file is part of GNU Emacs.


    (I could find no version-number in the file, but
    the line-numbers via egrep -n could indicate the version):
    ---------------- an egrep on 'comment-start':


    ../progmodes/cperl-mode.el:1466: (make-local-variable 'comment-start)
    ../progmodes/cperl-mode.el:1467: (setq comment-start "# ")
    ../progmodes/cperl-mode.el:1472: (make-local-variable 'comment-start-skip)
    ../progmodes/cperl-mode.el:1473: (setq comment-start-skip "#+ *")

    ../progmodes/cperl-mode.el:1654: (let ((comment-start "#"))
    ../progmodes/cperl-mode.el:1661: (let ((comment-start "#"))




    ---- FWIW (probably nothing), I not-much-later got this error:

    File mode specification error: (void-variable mode-require-final-newline)
    keyboard-quit: Quit
    cperl-mode: Symbol's value as variable is void: mode-require-final-newline [2 times]
    Mark set


    Thanks,

    David
    David Combs, Apr 4, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mr. SweatyFinger
    Replies:
    2
    Views:
    1,756
    Smokey Grindel
    Dec 2, 2006
  2. dt
    Replies:
    4
    Views:
    470
    CBFalconer
    Dec 31, 2006
  3. Alexander Schmolck

    Re: how to indent/dedent a region in emacs?

    Alexander Schmolck, Jun 11, 2008, in forum: Python
    Replies:
    0
    Views:
    454
    Alexander Schmolck
    Jun 11, 2008
  4. SAL

    #Region #End Region issue

    SAL, Aug 29, 2008, in forum: ASP .Net
    Replies:
    1
    Views:
    346
    Alexey Smirnov
    Aug 29, 2008
  5. David Combs
    Replies:
    0
    Views:
    141
    David Combs
    Jan 6, 2007
Loading...

Share This Page