From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michal Nazarewicz Newsgroups: gmane.emacs.bugs Subject: bug#18730: [PATCH] tildify.el: Add `auto-tildify' and `auto-tildify-mode'. Date: Fri, 17 Oct 2014 10:44:18 +0200 Organization: http://mina86.com/ Message-ID: References: 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 1413535523 29835 80.91.229.3 (17 Oct 2014 08:45:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Oct 2014 08:45:23 +0000 (UTC) Cc: Milan Zamazal , 18730@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 17 10:45:17 2014 Return-path: Envelope-to: geb-bug-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 1Xf39w-0003Ba-MI for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 Oct 2014 10:45:16 +0200 Original-Received: from localhost ([::1]:58643 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xf39w-0002Nk-3j for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 Oct 2014 04:45:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34523) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xf39o-0002MM-IO for bug-gnu-emacs@gnu.org; Fri, 17 Oct 2014 04:45:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xf39j-00065e-IL for bug-gnu-emacs@gnu.org; Fri, 17 Oct 2014 04:45:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54992) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xf39j-00064v-ES for bug-gnu-emacs@gnu.org; Fri, 17 Oct 2014 04:45:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Xf39i-0006SJ-LL for bug-gnu-emacs@gnu.org; Fri, 17 Oct 2014 04:45:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michal Nazarewicz Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 17 Oct 2014 08:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18730 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 18730-submit@debbugs.gnu.org id=B18730.141353546824750 (code B ref 18730); Fri, 17 Oct 2014 08:45:02 +0000 Original-Received: (at 18730) by debbugs.gnu.org; 17 Oct 2014 08:44:28 +0000 Original-Received: from localhost ([127.0.0.1]:46556 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xf399-0006R8-M7 for submit@debbugs.gnu.org; Fri, 17 Oct 2014 04:44:28 -0400 Original-Received: from mail-wi0-f179.google.com ([209.85.212.179]:37505) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xf396-0006Qu-7U for 18730@debbugs.gnu.org; Fri, 17 Oct 2014 04:44:25 -0400 Original-Received: by mail-wi0-f179.google.com with SMTP id d1so629359wiv.0 for <18730@debbugs.gnu.org>; Fri, 17 Oct 2014 01:44:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:from:to:cc:subject:in-reply-to:organization:references :user-agent:face:date:message-id:mime-version:content-type :content-transfer-encoding; bh=hxdW4ftyxqwgdjgNLaBwgleJKo5AK21Y5OpvZjfNXoA=; b=RxdM9RfNwVfBWs8yBE7ZMUrEfGggvqt7V+AlGPyHcy+RqHMKVBBok5MCC6yOZs4+ZY n7BZYLY4Od0jVQ5nQ4hYbWB34AK00+bmEmMa/RATfzkV4i2Rv51RkWKe2MKyTGKjc3Jx HEawKqo1UMxCylYFFXyyPpT67duCPtt4h8TDzc4IbxwTkHHyF1kg+V2JRpZPj6bYa+2+ EUJsKt1sZu1eSJinla6kulF0/0eDespKObnaJmsBhesLrJp1g0YXUyPuvupkpBNrT8Av lcSombBrboOe3BNchBYKVo8jcF1uLeySpW6j0nPMTcxUdjFXR78odjZw6rDn3ioWkw3v RDvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:in-reply-to :organization:references:user-agent:face:date:message-id :mime-version:content-type:content-transfer-encoding; bh=hxdW4ftyxqwgdjgNLaBwgleJKo5AK21Y5OpvZjfNXoA=; b=gX1CxRzXbGo6iKBztuqbVVvOlGtmzylZTDNgUMaz6/7StH1tYF7chw8M2Ito/bn3Tm rnGGhW1umklPw/6LtG8wWNQgzbdRZFxzhlEG+iB6v9ibcExb3SPg/g/QUFIgHQGoMoVP iIDPggwICy/zG/slHvFtYnU94YKuykbc6O28m/eLClNFOzhFwPDgOlrl5tIoC6elFEV6 w7WaY3dy83FpJnT6WbyS6hGkrRiMam3mCp+pL+8wAkzCvVrQNkyGsEPJ94TMmMmKCmrK zdlF+kl+inxFbctvmuylXK/3z/SVSwWJNgDq/j5ddozTnF44cJJnnzevPdePeoY+KReh i8Uw== X-Gm-Message-State: ALoCoQnV2FdXeovNw38ptFPBnoTGoMpxUdEZzgj3RzkTADJVD6ELDRiXkI3g8Yhve59MYcM1uLMd X-Received: by 10.194.90.144 with SMTP id bw16mr1490666wjb.133.1413535463226; Fri, 17 Oct 2014 01:44:23 -0700 (PDT) Original-Received: from mpn-glaptop.roam.corp.google.com ([62.156.150.204]) by mx.google.com with ESMTPSA id 10sm858596wjs.21.2014.10.17.01.44.20 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 17 Oct 2014 01:44:21 -0700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R 4iw5vJaw2nzSjfq2zffcE/GDjRC2dn0J0XwPAbDL84TvaFCJEU4Oml9pRyEUhR3Cl2t01AoEjRbs0sYugp14/4X5n4pU4EHHnMAAAAAElFTkSuQmCC X-PGP: 50751FF4 X-PGP-FP: AC1F 5F5C D418 88F8 CC84 5858 2060 4012 5075 1FF4 X-Hashcash: 1:20:141017:monnier@iro.umontreal.ca::i3qEk/HD8gzoK0n0:00000000000000000000000000000000000002a+g X-Hashcash: 1:20:141017:pdm@zamazal.org::bvWHyj+JPB2Wymq6:002d48 X-Hashcash: 1:20:141017:18730@debbugs.gnu.org::q7AKuLCwlOgS2lmX:00000000000000000000000000000000000000004M0h X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:94667 On Thu, Oct 16 2014, Stefan Monnier wrote: > Introduce a new variable that can be used by tildify-mode. [=E2=80=A6] > > Please try to make it so that this new var can also be used for > tildify-region, move the current default entry in tildify-pattern-alist > to it (so that tildify-pattern-alist defaults to nil), and mark > tildify-pattern-alist as obsolete. I think those two need to be separate but the default for tildify-region can be based on the one used by tildify-mode. I.e. if tildify-mode uses tildify-space-regex than the default for tildify-region would be (concat tildify-space-regex "\\(\\s-+\\)\\([ \t]*\n[ \t]*\\|[ \t]+\\)" "[\\w([{]") > tildify-string-alist should also be made obsolete and replaced by > a variable which is set buffer-locally by the major-modes. So how would that work? Would I have to also add setting of tildify-string (or perhaps tildify-hard-space would be a better name) variable in all major modes that tildify-string-alist now includes? Or add hooks in tildify? --=20 Best regards, _ _ .o. | Liege of Serenely Enlightened Majesty of o' \,=3D./ `o ..o | Computer Science, Micha=C5=82 =E2=80=9Cmina86=E2=80=9D Nazarewicz = (o o) ooo +------ooO--(_)--Ooo--