From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "N. Raghavendra" Newsgroups: gmane.emacs.help Subject: Re: About how misspelled word are displayed Date: Sat, 13 May 2017 19:45:16 +0530 Message-ID: <87shk8x2q3.fsf@gmail.com> References: <3993ee96-42e7-e597-f7d0-306003faa235@alice.it> <40f5d8bd-8956-b3fa-1818-eb3622f6ff12@alice.it> <20170512141406.GA27429@tuxteam.de> <8479790d-443e-48fc-a59b-f14a917fafab@default> <8778c766-ce0a-4b42-939d-96b0f0b49a82@default> <87efvtzrw5.fsf@gmail.com> <262055bc-44b9-4b2b-932a-52b146a5916e@default> Reply-To: "N. Raghavendra" NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1494684978 31645 195.159.176.226 (13 May 2017 14:16:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 13 May 2017 14:16:18 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat May 13 16:16:14 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d9Xq9-00084c-ED for geh-help-gnu-emacs@m.gmane.org; Sat, 13 May 2017 16:16:13 +0200 Original-Received: from localhost ([::1]:57765 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d9XqD-00069d-5d for geh-help-gnu-emacs@m.gmane.org; Sat, 13 May 2017 10:16:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49671) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d9XpN-00068C-CF for help-gnu-emacs@gnu.org; Sat, 13 May 2017 10:15:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d9XpK-0005YM-94 for help-gnu-emacs@gnu.org; Sat, 13 May 2017 10:15:25 -0400 Original-Received: from mail-pg0-x243.google.com ([2607:f8b0:400e:c05::243]:33214) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d9XpK-0005XW-2R for help-gnu-emacs@gnu.org; Sat, 13 May 2017 10:15:22 -0400 Original-Received: by mail-pg0-x243.google.com with SMTP id s62so11096177pgc.0 for ; Sat, 13 May 2017 07:15:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:in-reply-to:references:user-agent:reply-to :mail-followup-to:date:message-id:mime-version; bh=vsU/jHvmqXpOkNzQ9LQtwHDxuf1Z909vAuQhSSxjXNE=; b=NYGxr3Pltn/ayWOvyFWzUx9ghK57wXGSuoxQnVtdxq5jOKQ7Jj0ga5PnXy1cDLBMI0 M00fWElF2EWRPdztfTRDesEpkVhZcW8UJZ7Xzqc6gHnCXgY8thUMtYVDLFZPih97i7Mp qaT2vMEfYvy9ZORgLG885wztTCQ7DTlCTL5oYeIZb90+e2WTLU3i4YIsx5Bk9CmlyHQO APqvGBMPVv1iLF+yGGv5PxmqeFbDOnWQ4+ubNKRFcCpfXrTStr5WE5CcWClZM/te0+0j 1e4uieiZrGypwHALtNZeHtHMJ68jjMjrYflA6+cCgOBrTnXwBo00IQQC/a7su0UEH/VB zBpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references :user-agent:reply-to:mail-followup-to:date:message-id:mime-version; bh=vsU/jHvmqXpOkNzQ9LQtwHDxuf1Z909vAuQhSSxjXNE=; b=IrsV8J5BbEbmJDVE3fKTNtIQw5z/UmmE+8oLDIIas6JXXreV/d83uh552D8I93a2Jr akcL51cEc5o4Ir99dsJeRrbVy6d2uWT3OeFHa+XG5LgwSVYH8Pj/PkluPF01sHjQGNUa RFCIgsY6tw7tLM+LF6pAImnKISFkToJ/1WvtsiXsnlf/dyLrGJiEMHzQo7EYhDKDs8fX rj73suhSmGLB7rUT+YlnaLscUlw03DJAURG9lDuoV+mwmwz+Qri2ZqOAOk6gyb6piDlp JxyczUJQXFu5LGLpjy8hsVGNJBO0BS3oMPktJnthRiiYl8hOFs1jDs0a/zKGRSIBD/dK iVIQ== X-Gm-Message-State: AODbwcByrBFqwxjJ37+WOaXAlBqs58Ybx6jjWqHmy0MFIoKsuM1ceaRt 1LvpADt/8wA2D+ab X-Received: by 10.99.44.82 with SMTP id s79mr9672471pgs.219.1494684920827; Sat, 13 May 2017 07:15:20 -0700 (PDT) Original-Received: from ailuros (hrins2.hri.res.in. [220.227.103.136]) by smtp.gmail.com with ESMTPSA id t22sm11388547pfi.89.2017.05.13.07.15.19 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 13 May 2017 07:15:20 -0700 (PDT) In-Reply-To: <262055bc-44b9-4b2b-932a-52b146a5916e@default> (Drew Adams's message of "Fri, 12 May 2017 15:08:44 -0700 (PDT)") Mail-Followup-To: help-gnu-emacs@gnu.org X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::243 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:113018 Archived-At: At 2017-05-12T15:08:44-07:00, Drew Adams wrote: > Please consider filing an enhancement request that would make > them optionally check the type (e.g. by an optional argument): > `M-x report-emacs-bug'. I've done that. > While waiting (... ;-)) you can define your own function, > similar to `customize-set-variable' but which does the type > checking. Here is the type-checking code from `set-variable': > > (let ((type (get variable 'custom-type))) > (when type ; Match with custom type. > (require 'cus-edit) > (setq type (widget-convert type)) > (unless (widget-apply type :match value) > (error "Value `%S' does not match type %S of %S" > value (car type) variable)))) Yes, I saw that part of `set-variable'. Probably, I'll add a piece of :before or :before-while advice to `custom-set-variable' to do this in my init file. There are so many setq's in the init file, most of which, I'm sure, are for options, that it will take me a while to migrate them to this modified `custom-set-variable'. > See these threads: > http://lists.gnu.org/archive/html/emacs-devel/2010-10/msg00813.html > http://lists.gnu.org/archive/html/emacs-devel/2006-06/msg00137.html > http://lists.gnu.org/archive/html/emacs-devel/2011-03/msg00106.html > http://lists.gnu.org/archive/html/emacs-devel/2015-10/msg01481.html Interesting reading that. Thanks. Raghu. -- N. Raghavendra , http://www.retrotexts.net/ Harish-Chandra Research Institute, http://www.hri.res.in/