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 02:58:42 +0530 Message-ID: <87efvtzrw5.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> Reply-To: "N. Raghavendra" NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1494624564 8940 195.159.176.226 (12 May 2017 21:29:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 12 May 2017 21:29:24 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 12 23:29:18 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 1d9I7h-0002AM-QG for geh-help-gnu-emacs@m.gmane.org; Fri, 12 May 2017 23:29:17 +0200 Original-Received: from localhost ([::1]:55326 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d9I7l-0003K6-UM for geh-help-gnu-emacs@m.gmane.org; Fri, 12 May 2017 17:29:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49811) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d9I7J-0003Jq-DL for help-gnu-emacs@gnu.org; Fri, 12 May 2017 17:28:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d9I7G-0007lc-6U for help-gnu-emacs@gnu.org; Fri, 12 May 2017 17:28:53 -0400 Original-Received: from mail-pg0-x244.google.com ([2607:f8b0:400e:c05::244]:34018) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d9I7G-0007jL-0c for help-gnu-emacs@gnu.org; Fri, 12 May 2017 17:28:50 -0400 Original-Received: by mail-pg0-x244.google.com with SMTP id u187so8939767pgb.1 for ; Fri, 12 May 2017 14:28:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:user-agent:reply-to :mail-followup-to:date:message-id:mime-version; bh=coFB3rzj4JDMGoRKwdMu4kB8TDrAJX3zAqwY+SV9HcE=; b=gUagJH++3LTWxNuEVDX66D47jr25hloZ1o8PDdTBdZjpTESf0yJH9YQa3VffYvF9ma CiEZfT85a6s9TJyi3oHRUEUuNO+Jb6i3jg6NJB9RNfDgkc+Mrwb73jYmJoAULSUpFldu ARIwt/YykZI6/EGWq39IHhuHKF9GLlwsoJXS/G99ERKykn5Bc094a5XMe0r3I1XlwJ49 3c75MLNEcErvy1Gq4PGTO7DcJphmu9Yn3FB8epO4atUEtQpYUmBkv1UAd4CnVNss+juN MsS7xGX2981O4VOP68B+Lgh7CfaJcIzusGqip9aFpBf6Ekt5m3ApcBcnyeJ7FhT+dsYj qaew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references :user-agent:reply-to:mail-followup-to:date:message-id:mime-version; bh=coFB3rzj4JDMGoRKwdMu4kB8TDrAJX3zAqwY+SV9HcE=; b=eKiQQU3M0rN5Jd2vwi1PS4iGhpYBzU/069CDw2FRPK/uluieqQYrgjN4paMXDIBEPT 9UtUZOcN71FQJ09o/27tcqxYQqJL/y0wDrTGOvqoWR5pxAXdCxp9EktsVtVqzjQ+Z5uD 0jIJOXz/xaCk7O7H4xeuRqICF06K4M1zuXFoHpdiz6vv3f/1dypy4Bzhnlf1dTkwww9U RUdfS/6pHncSjQ0GIRJhlgcdNboIm7O/qu9TUhAaotnbEqsV0ofCADYuvLMteVnbjgmI GGaDNthuSLrRxCmKa1oEecQS7XM3tWQnUhBkGQVOvsQxXhaMDz4VMmB6k6Hrs4xina7j W9hA== X-Gm-Message-State: AODbwcA0z3EJSIrmZEVSO7Kjcjv0Fma79f43gTQqrTfd9aFkAUP/91zr QzIeGknJsOh58w== X-Received: by 10.99.5.3 with SMTP id 3mr6328316pgf.104.1494624527381; Fri, 12 May 2017 14:28:47 -0700 (PDT) Original-Received: from ailuros (hrins2.hri.res.in. [220.227.103.136]) by smtp.gmail.com with ESMTPSA id g10sm8455708pgn.35.2017.05.12.14.28.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 May 2017 14:28:46 -0700 (PDT) In-Reply-To: <8778c766-ce0a-4b42-939d-96b0f0b49a82@default> (Drew Adams's message of "Fri, 12 May 2017 10:32:36 -0700 (PDT)") Mail-Followup-To: Drew Adams , 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::244 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:113012 Archived-At: At 2017-05-12T10:32:36-07:00, Drew Adams wrote: > It is particularly options, not faces, that can be > problematic if you don't use the `custom*' functions, > because of defcustom :set and :initialize triggers, > as I mentioned. > > ... > > You can even get into trouble by not respecting the > defcustom :type. Things might be OK in some contexts > but not in others, and you might well have trouble > figuring out just what is wrong. > > Knowing this won't stop you from doing whatever you > want, of course. ;-) > > But if you're really interested in using Lisp to set > options or faces then you might want to get to know > function `customize-set-variable' (or `custom-set-faces' > or `custom-set-variables'), if you are not already > familiar with it. Or not. Evaluating (customize-set-variable option value) uses the :set property of OPTION, but doesn't check that VALUE has the type specified in the (defcustom option ...) expression. On the other hand, evaluating (set-variable option value) does this type-checking, but ignores the :set property of OPTION. So, is there a recommended way of setting an option using Emacs Lisp directly (without going through customization buffers), which ensures that the :set, :type, :initialize, and other specifications of the option are respected? Raghu. -- N. Raghavendra , http://www.retrotexts.net/ Harish-Chandra Research Institute, http://www.hri.res.in/