From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.org!.POSTED!not-for-mail
From: Alexander Kuleshov <kuleshovmail@gmail.com>
Newsgroups: gmane.emacs.devel
Subject: [PATCH] 26.0.50.3, add $TTL directove to dns-mode.el
Date: Thu, 12 Jan 2017 15:37:01 +0600
Message-ID: <20170112093701.GA2306@localhost.localdomain>
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="AWniW0JNca5xppdA"
X-Trace: blaine.gmane.org 1484213857 29730 195.159.176.226 (12 Jan 2017 09:37:37 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Thu, 12 Jan 2017 09:37:37 +0000 (UTC)
User-Agent: Mutt/1.6.0-rc0 ((null))
To: emacs-devel <emacs-devel@gnu.org>
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 12 10:37:33 2017
Return-path: <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>
Envelope-to: ged-emacs-devel@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 <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>)
	id 1cRboz-0006ZZ-S8
	for ged-emacs-devel@m.gmane.org; Thu, 12 Jan 2017 10:37:26 +0100
Original-Received: from localhost ([::1]:60777 helo=lists.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>)
	id 1cRbp1-0002Fr-7D
	for ged-emacs-devel@m.gmane.org; Thu, 12 Jan 2017 04:37:27 -0500
Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60873)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <kuleshovmail@gmail.com>) id 1cRbop-0002Fc-Np
	for emacs-devel@gnu.org; Thu, 12 Jan 2017 04:37:21 -0500
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <kuleshovmail@gmail.com>) id 1cRbom-0003qX-Hw
	for emacs-devel@gnu.org; Thu, 12 Jan 2017 04:37:15 -0500
Original-Received: from mail-lf0-x236.google.com ([2a00:1450:4010:c07::236]:35143)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <kuleshovmail@gmail.com>)
	id 1cRbom-0003qR-7o
	for emacs-devel@gnu.org; Thu, 12 Jan 2017 04:37:12 -0500
Original-Received: by mail-lf0-x236.google.com with SMTP id m78so9112282lfg.2
	for <emacs-devel@gnu.org>; Thu, 12 Jan 2017 01:37:12 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
	h=date:from:to:subject:message-id:mime-version:content-disposition
	:user-agent; bh=cqK/a1b03XLGq7sOLXQ21iZKCplqJmJzkeSkRgJPKFc=;
	b=jx3j4jItyeeMx/YDEYwSG+QvYR9bYutWlHhNva6UMYfhrWzRjukYQOgZLC0HM2jR83
	RIJnjCmklJ8XxkNANc2JqCCFfNCFhymFBg5irMh0ge1ovWo5BKSBxpyQksyHcSYq9uRG
	8MZ0VXSn0QY8VF9zoolXP1IehL9TRIFsPEN9unbpHKrBbqXuLHbeaB9c9RPS3b2TZW2G
	Dnv6U7ad4/fWOIYTCtKDbBX4WgVdIYvoAE/Fxb7STDDzIhGvBlmXM0KJLb/aFUoZQgPD
	U8vO+bm6rH4prHmCOX9YAo1ZT/5ymbAtGDmpjGq1SC2B8ebBUyTt95mz77ISZ+cJME7T
	cUYA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20161025;
	h=x-gm-message-state:date:from:to:subject:message-id:mime-version
	:content-disposition:user-agent;
	bh=cqK/a1b03XLGq7sOLXQ21iZKCplqJmJzkeSkRgJPKFc=;
	b=Yz33NnaKG0SWvrHrwJrdcTLwuMY1sQlw+QVaRc9ex48CPo9bSUxlfP6n40bVC9RyMv
	3zBvBrj5q4BnxEcDUR5RBl0jaggXFY/0VuFzGDYKItcVyFpscWTXNF4TJvOGKHyKl/Hi
	wrgDX+Vw5TICXp7UhS9oWs/mPDPDBUxtRM0DbI+t2q5Klvg1m46gRhW4YSPzPe9oIk3/
	rEh91lCZO0cfJqXfmeV6dGuhIZN8nbC2eP11ImIO+rpXcA00fIh/VUWAP8ODicMQemSj
	9sWKYTCs83j0/fZIrhJd6Pl4avqRVLhlQM5PcI2nbsSbbyR25tw4l7udzV2WXDJsji+6
	o7Rg==
X-Gm-Message-State: AIkVDXLgGgjssIOoKWZ5hGwAIvZiyeBPOfJKjJ7wfd2X66lxYiTeKMFz88lAhvapg7mlUg==
X-Received: by 10.25.202.83 with SMTP id h19mr4747173lfj.33.1484213830502;
	Thu, 12 Jan 2017 01:37:10 -0800 (PST)
Original-Received: from localhost.localdomain ([2.135.53.233])
	by smtp.gmail.com with ESMTPSA id
	t126sm2168324lff.31.2017.01.12.01.37.09 for <emacs-devel@gnu.org>
	(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
	Thu, 12 Jan 2017 01:37:09 -0800 (PST)
Content-Disposition: inline
X-Operating-System: Linux
X-Date: Thu Jan 12 13:42:02 +06 2017
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2a00:1450:4010:c07::236
X-BeenThere: emacs-devel@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: "Emacs development discussions." <emacs-devel.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-devel>,
	<mailto:emacs-devel-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/emacs-devel/>
List-Post: <mailto:emacs-devel@gnu.org>
List-Help: <mailto:emacs-devel-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-devel>,
	<mailto:emacs-devel-request@gnu.org?subject=subscribe>
Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org
Original-Sender: "Emacs-devel" <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>
Xref: news.gmane.org gmane.emacs.devel:211222
Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/211222>


--AWniW0JNca5xppdA
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hello everyone,

This simple patch adds `$TTL` directive to dns-mode-font-lock-keywords
from the lisp/text-modes/dns-mode.el.

The global `$TTL` directive (time-to-live) specifies the duration in seconds
that the record may be cached by any resolver. In general it should looks:

$TTL amount-of-ttl (in seconds)

Additionally d/D/h/H/w/W/m/M/s/S maybe added to amount-of-ttl where d/D -
days, h/H - hours and etc..

Thank you.

--AWniW0JNca5xppdA
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="0001-Add-support-for-TTL-dns-directive.patch"

>From 2209894bc51367570c38a3428be6f4f1e2bc25a2 Mon Sep 17 00:00:00 2001
From: Alexander Kuleshov <kuleshovmail@gmail.com>
Date: Thu, 12 Jan 2017 15:26:02 +0600
Subject: [PATCH] Add support for $TTL dns directive

* lisp/text-modes/dns-mode.el (dns-mode-font-lock-keywords): Add $TTL
directive.
---
 lisp/textmodes/dns-mode.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/textmodes/dns-mode.el b/lisp/textmodes/dns-mode.el
index 02cb2a2..6a3cfcb 100644
--- a/lisp/textmodes/dns-mode.el
+++ b/lisp/textmodes/dns-mode.el
@@ -79,6 +79,7 @@ dns-mode-class-face
 (defcustom dns-mode-font-lock-keywords
   `(("^$ORIGIN" 0 ,dns-mode-control-entity-face)
     ("^$INCLUDE" 0 ,dns-mode-control-entity-face)
+    ("^$TTL\s+[0-9]+[WwDdHhMmSs]?" 0 ,dns-mode-control-entity-face)
     ("^$[a-z0-9A-Z]+" 0 ,dns-mode-bad-control-entity-face)
     (,(regexp-opt dns-mode-classes) 0 ,dns-mode-class-face)
     (,(regexp-opt dns-mode-types) 0 ,dns-mode-type-face))
-- 
2.8.0.rc3.1353.gea9bdc0


--AWniW0JNca5xppdA--