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: Sun, 14 May 2017 18:37:22 +0530 Message-ID: <87inl3io39.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; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1494767284 24904 195.159.176.226 (14 May 2017 13:08:04 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 14 May 2017 13:08:04 +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 Sun May 14 15:07:59 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 1d9tFe-0006LQ-M5 for geh-help-gnu-emacs@m.gmane.org; Sun, 14 May 2017 15:07:58 +0200 Original-Received: from localhost ([::1]:60955 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d9tFk-0004yn-6a for geh-help-gnu-emacs@m.gmane.org; Sun, 14 May 2017 09:08:04 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42994) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d9tFD-0004xh-EW for help-gnu-emacs@gnu.org; Sun, 14 May 2017 09:07:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d9tFA-0005vY-9t for help-gnu-emacs@gnu.org; Sun, 14 May 2017 09:07:31 -0400 Original-Received: from mail-pg0-x244.google.com ([2607:f8b0:400e:c05::244]:33605) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d9tFA-0005uf-3s for help-gnu-emacs@gnu.org; Sun, 14 May 2017 09:07:28 -0400 Original-Received: by mail-pg0-x244.google.com with SMTP id s62so13405252pgc.0 for ; Sun, 14 May 2017 06:07:27 -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 :content-transfer-encoding; bh=FAqiESY5W9SBqyOFikKJnmkAn8ZgcF1ztafjTW1Zqd8=; b=X2LSuFx07pH2x7frp8MXUwvaqaaxRmWjMC1t6sWAiihtvQuscYZLtKbdqfFjcI3nrE 7pdbkArEyhO4Man/V5SB4DNOpi+VuOeTAOeyyoUJF7JMykVoeXgXpMwVwtCIVtBMwSq1 DbmXJ/FFJgRiadOqN+xF8Gt0OL6792MTDDZ4cxHVf9CpeNwc9GbjhKQaG8fDeMG5fPXU VQyRzqxRTzw4W4P630n3aTD6CHhizHNgwy3qBV7vnDGmgp+5m/fIGHfEJXriB4WDOg5x ZP3cfLckiSE2teSm249zPMAU3u3tKbyGfnPYXNiZYY3MpJFWyCftlai1Iof6+XU5oNVa GHQw== 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 :content-transfer-encoding; bh=FAqiESY5W9SBqyOFikKJnmkAn8ZgcF1ztafjTW1Zqd8=; b=nqbEanaSHcfd5XQNRI3OOXhrmjrobBPDZXNfw3qEgZnR2SvB2ZtgMmi+GCiiOSsTbK gRLadkvDlXdXld2wL3RkH9iOKu7uMNSeDSxl8D0hTxL75r/Tgubj8qEsY9Jf6A0ap/zq J2EKQ6c6BDGeJXS6q8N4gVAaK/J74IPSyJH+HnkZ7QB2e/W1rPaT9swSsq/TT8YdInRO YkOVzDu9Bqb4BJDDwFC5wtO+GxAMlZiD7ZuBmMkY50TQOBAu7/TglVWcFK86ITjFvMiX d7y9vQ8tMODkUPmC2Bx0eDdw9j9jmrbI9uFMNpVMi4EOthdR7miDOSsNe8pcLwqLHmXT X2PQ== X-Gm-Message-State: AODbwcCCRmqHClazixnLj52DWrl7OTqUwtX+ljPT1rH8Uh+NOOP4qweI /tQZDpFRHo5QsQ== X-Received: by 10.84.217.91 with SMTP id e27mr1878066plj.87.1494767247109; Sun, 14 May 2017 06:07:27 -0700 (PDT) Original-Received: from ailuros (hrins2.hri.res.in. [220.227.103.136]) by smtp.gmail.com with ESMTPSA id m25sm1602698pfk.15.2017.05.14.06.07.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 14 May 2017 06:07:26 -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:113026 Archived-At: At 2017-05-12T10:32:36-07:00, Drew Adams wrote: > If you are not the one who defined a given defcustom, > and if that defcustom uses a keyword such as :set, then a > complicated beast has likely been created for you already. > > If you try to tame that beast without taking its nature > into account (e.g., using just `setq') you can find > yourself surprised. I was curious about examples of such options, that is, of options for which (setq option ...) and (customize-set-variable 'option ...) have different effects. The option `minibuffer-prompt-properties' is one such, as described in http://xahlee.blogspot.in/2016/06/emacs-custom-set-variables-vs-setq.html and http://ergoemacs.org/emacs/emacs_stop_cursor_enter_prompt.html If I do emacs -Q --eval "(setq minibuffer-prompt-properties (append '(cursor-intang= ible t) minibuffer-prompt-properties))" and type `M-x query-replace' and start pressing the left arrow key, point goes over the prompt "M-x". On the other hand, if I do emacs -Q --eval "(customize-set-variable 'minibuffer-prompt-properties (app= end '(cursor-intangible t) minibuffer-prompt-properties))" and type `M-x query-replace' and start pressing the left arrow key, point is prevented from entering the prompt "M-x", and stops at the letter "q" of the command name "query-replace". Thus, (setq minibuffer-prompt-properties ...) and (customize-set-variable 'minibuffer-prompt-properties ...) have different effects. The reason, as pointed out by Cl=C3=A9ment Pit-Claudel = in a comment at the second URL above, is that the :set function of minibuffer-prompt-properties does an (add-hook 'minibuffer-setup-hook 'cursor-intangible-mode) when the value being assigned is a list containing the symbol `cursor-intangible'. Raghu. -- N. Raghavendra , http://www.retrotexts.net/ Harish-Chandra Research Institute, http://www.hri.res.in/