From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexander Shukaev Newsgroups: gmane.emacs.help Subject: Re: Redefine the `special-mode-map' Date: Fri, 9 Jan 2015 16:02:02 +0100 Message-ID: References: <87a91sau6i.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1420815889 20671 80.91.229.3 (9 Jan 2015 15:04:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 9 Jan 2015 15:04:49 +0000 (UTC) Cc: help-gnu-emacs To: Alex Kost Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 09 16:04:44 2015 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 1Y9b4v-0008Iz-5N for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Jan 2015 16:02:21 +0100 Original-Received: from localhost ([::1]:50995 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y9b4u-0000Kz-HS for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Jan 2015 10:02:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33592) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y9b4e-0000In-9e for help-gnu-emacs@gnu.org; Fri, 09 Jan 2015 10:02:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y9b4d-0003zI-8w for help-gnu-emacs@gnu.org; Fri, 09 Jan 2015 10:02:04 -0500 Original-Received: from mail-lb0-x22f.google.com ([2a00:1450:4010:c04::22f]:60758) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y9b4d-0003z8-0l for help-gnu-emacs@gnu.org; Fri, 09 Jan 2015 10:02:03 -0500 Original-Received: by mail-lb0-f175.google.com with SMTP id z11so8500178lbi.6 for ; Fri, 09 Jan 2015 07:02:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=/dOZ/QYEJluO+MFb3GfFIdSZjLG4hrLbkJZOfI54TYs=; b=jwt+2y+DqCuqxwkNVQx9+tnlLuYrqM/b1QyQ0UNa7CoAt6d4Vf8Ros+Zk7E8ZwVMzd 6XXBhWHP/bVhlOKQwNccu+V0SwT0k+v8nx95572IaOFM9MYojVgdgN7h9TacsAdrhe+v fMoYj456Ef+J9syykcU865tEaTCsLybgaTPwJvj7sxViG8gTQFj2mqfOHYMSaEIHTSoP UKd3Qo4REAYjqZyKcmZPk1aliGBLx2mt/rv+BqzBkGrIUQ4v94DBfu9RukgbAJIZm151 LA69SYIQFro56u8XmUDJLgZ6axwjaJ86+qyI8VsmpaHF+R4mbd3ar+CGTH8ev00Mdd2A piDw== X-Received: by 10.152.22.67 with SMTP id b3mr22289096laf.82.1420815722273; Fri, 09 Jan 2015 07:02:02 -0800 (PST) Original-Received: by 10.112.123.235 with HTTP; Fri, 9 Jan 2015 07:02:02 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::22f X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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:101966 Archived-At: =E2=80=8BFurthermore, `setq' =E2=80=8Bis used in order to prevent `defvar' = to set the default value in `simple.el'. This is the normal way to customize variables prior loading their corresponding features. I've checked and in my case `setq' is indeed run before `simple.el' is loaded. Once again, I did the same with `undo-tree-map' customization and it worked. On the contrary, for completeness, your recipe with `setcdr' seems to require wrapping it in `with-eval-after-load': (with-eval-after-load 'simple (setcdr special-mode-map nil) ...) doesn't it?