emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#15867: closed (24.3.50; cperl-mode: Fix default va


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#15867: closed (24.3.50; cperl-mode: Fix default value of cperl-invalid-face )
Date: Fri, 15 Nov 2013 03:50:01 +0000

Your message dated Tue, 01 Jan 2002 05:52:02 +0530
with message-id <address@hidden>
and subject line Re: bug#15867: 24.3.50; cperl-mode: Fix default value of 
cperl-invalid-face
has caused the debbugs.gnu.org bug report #15867,
regarding 24.3.50; cperl-mode: Fix default value of cperl-invalid-face 
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
15867: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15867
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 24.3.50; cperl-mode: Fix default value of cperl-invalid-face Date: Tue, 12 Nov 2013 10:41:55 +0530
Fix cperl-invalid-face.  It is quite distracting.

Leo, Nathan, RJoe on Emacswiki and myself all seem to say this is a bad
default.  That means 4 upvotes that this is not good default.

ps: Since editing with cperl-mode may introduce leading whitespaces on
empty lines, it might actually be better to introduce a
'cperl-cleanup-trailing-whitespace' (or some such variable) to
compensate for cperl's smartness.


----------------------------------------------------------------

>From a private thread.
=====================

Leo Liu <address@hidden> writes:

> On 2013-11-11 20:03 +0800, Nathan Trapuzzano wrote:
>> (defalias 'perl-mode 'cperl-mode)
>> (setq cperl-continued-brace-offset -4
>>       cperl-invalid-face 'default
>> )

From: RJH on http://www.emacswiki.org/emacs/CPerlMode
====================================================

First of all, there’s a very peculiar feature which many people want to
disable: trailing whitespace is indicated with an underline (see
discussion below). Consider that whitespace is rarely significant in
perl code, but that underlines often are (e.g. “$_”) and with this
feature an underscore appears every time you hit the space bar, and will
not disappear until you enter another character. Adding this line to
your .emacs works to disable this feature in GnuEmacs 21:

    (setq cperl-invalid-face (quote off)) 

However, in at least GNU Emacs 21.2.1, this has been known to cause
problems with font-locking, in which case:

    (setq cperl-invalid-face nil) 


In GNU Emacs 24.3.50.4 (i686-pc-linux-gnu, GTK+ Version 2.20.1)
 of 2013-11-09 on debian-6.05
Bzr revision: 115051 address@hidden
Windowing system distributor `The X.Org Foundation', version 11.0.10707000
System Description:     Debian GNU/Linux 6.0.5 (squeeze)




--- End Message ---
--- Begin Message --- Subject: Re: bug#15867: 24.3.50; cperl-mode: Fix default value of cperl-invalid-face Date: Tue, 01 Jan 2002 05:52:02 +0530 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)
OP here. Closing it.  I have a local fix that works for me.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]