From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: Disabling show-wspace for a specific mode or buffer Date: Wed, 27 Jun 2012 15:12:49 -0700 Message-ID: <9C2D812624834943A328AEF1C5B7BA7A@us.oracle.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1340835192 11205 80.91.229.3 (27 Jun 2012 22:13:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 27 Jun 2012 22:13:12 +0000 (UTC) Cc: 'Alp Aker' , help-gnu-emacs@gnu.org To: "'Valera Rozuvan'" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 28 00:13:10 2012 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 1Sk0Tx-0001FY-3H for geh-help-gnu-emacs@m.gmane.org; Thu, 28 Jun 2012 00:13:05 +0200 Original-Received: from localhost ([::1]:34302 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sk0Tw-00059X-NR for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Jun 2012 18:13:04 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48007) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sk0Tq-00059G-UD for help-gnu-emacs@gnu.org; Wed, 27 Jun 2012 18:13:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sk0Tp-0008R9-6z for help-gnu-emacs@gnu.org; Wed, 27 Jun 2012 18:12:58 -0400 Original-Received: from acsinet15.oracle.com ([141.146.126.227]:45111) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sk0Tp-0008Q8-0p for help-gnu-emacs@gnu.org; Wed, 27 Jun 2012 18:12:57 -0400 Original-Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by acsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q5RMCpLa019238 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 27 Jun 2012 22:12:53 GMT Original-Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q5RMCoMp027478 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 27 Jun 2012 22:12:51 GMT Original-Received: from abhmt111.oracle.com (abhmt111.oracle.com [141.146.116.63]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q5RMCohO003249; Wed, 27 Jun 2012 17:12:50 -0500 Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 27 Jun 2012 15:12:50 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: Ac1UrjL7K9rsDESMR3CcV72O7rwqgAAAkPRQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: ucsinet22.oracle.com [156.151.31.94] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 141.146.126.227 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:85541 Archived-At: > Thanks for the suggestion. But the command > show-ws-toggle-show-trailing-whitespace initially assumes that the > highlighting is OFF. No, it doesn't assume on or off. It just toggles whatever the state is. > I, on the other hand, from the start turn ON the > highlighting everywhere with the command: > (add-hook 'font-lock-mode-hook 'show-ws-highlight-trailing-whitespace) > So, with your suggestion, I have to press F11 twice to actually tun > OFF highlighting. So add this: (setq show-ws-highlight-trailing-whitespace-p t) > And also I am not sure if > show-ws-toggle-show-trailing-whitespace works just with the buffer, or > if it is a global toggle. It is global. For that your commands are better for what you want.