all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* zone-mode
@ 2004-01-24 15:49 Lars Bungum
  0 siblings, 0 replies; 5+ messages in thread
From: Lars Bungum @ 2004-01-24 15:49 UTC (permalink / raw)


I'm trying to use the zone-mode to update the serial number of a DNS
zone-file from within emacs.

>From what I can read in the docs, the mode should update the serials
automatically when you save the file.  I can't see that this happenes. 
Then I tried to use M-x zone-mode-update-serial to see if that worked,
but wasn't able to get any response back.  No error, but nothing
happenes to the file. 

I don't really know what to do to find out of this (my question).  I'm
not fluent in elisp, but should be able to make something out of
debugging information.

Thanks!

--lars

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: zone-mode
       [not found] <mailman.1274.1074959413.928.help-gnu-emacs@gnu.org>
@ 2004-01-24 19:39 ` Lowell Gilbert
  2004-01-24 21:14   ` zone-mode Lars Bungum
  0 siblings, 1 reply; 5+ messages in thread
From: Lowell Gilbert @ 2004-01-24 19:39 UTC (permalink / raw)


Lars Bungum <lars@bungum.no> writes:

> I'm trying to use the zone-mode to update the serial number of a DNS
> zone-file from within emacs.
> 
> >From what I can read in the docs, the mode should update the serials
> automatically when you save the file.  I can't see that this happenes. 
> Then I tried to use M-x zone-mode-update-serial to see if that worked,
> but wasn't able to get any response back.  No error, but nothing
> happenes to the file. 
> 
> I don't really know what to do to find out of this (my question).  I'm
> not fluent in elisp, but should be able to make something out of
> debugging information.

The regular expression which the mode uses to recognize serial numbers
is not very flexible.  There has to be whitespace, a number,
(optionally) whitespace, a semicolon, (optionally) whitespace, and the
word "serial" (optionally capitalized).  Among other things, this
means the closing parenthesis has to be on a later line.

[See the re-search-forward line in zone-mode.el]

Hope that helps.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: zone-mode
  2004-01-24 19:39 ` zone-mode Lowell Gilbert
@ 2004-01-24 21:14   ` Lars Bungum
  2004-01-24 21:46     ` zone-mode Martin Rydstr|m
  0 siblings, 1 reply; 5+ messages in thread
From: Lars Bungum @ 2004-01-24 21:14 UTC (permalink / raw)


On Sat, 2004-01-24 at 20:39, Lowell Gilbert wrote:
> The regular expression which the mode uses to recognize serial numbers
> is not very flexible.  There has to be whitespace, a number,
> (optionally) whitespace, a semicolon, (optionally) whitespace, and the
> word "serial" (optionally capitalized).  Among other things, this
> means the closing parenthesis has to be on a later line.
> [See the re-search-forward line in zone-mode.el]

Lowell,

this resolved my troubles wonderfully well.  Thanks a bunch!

My zone-files don't have a particular extension, though, so my next
challenge would be to get hold of some lines for my .emacs that would
open zone-mode for all files opened in my zone-file directory.  How can
I do this?

--lars 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: zone-mode
  2004-01-24 21:14   ` zone-mode Lars Bungum
@ 2004-01-24 21:46     ` Martin Rydstr|m
  2004-01-24 23:16       ` zone-mode Lars Bungum
  0 siblings, 1 reply; 5+ messages in thread
From: Martin Rydstr|m @ 2004-01-24 21:46 UTC (permalink / raw)


Lars Bungum <lars@bungum.no> writes:
> My zone-files don't have a particular extension, though, so my next
> challenge would be to get hold of some lines for my .emacs that would
> open zone-mode for all files opened in my zone-file directory.  How can
> I do this?

(add-to-list 'auto-mode-alist (cons "\\`/etc/namedb/Z/" 'zone-mode))

(I keep my zone-files in /etc/namedb/Z/.)

Regards,

'mr

-- 
[Emacs] is written in Lisp, which is the only computer language that is
beautiful.  -- Neal Stephenson, _In the Beginning was the Command Line_

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: zone-mode
  2004-01-24 21:46     ` zone-mode Martin Rydstr|m
@ 2004-01-24 23:16       ` Lars Bungum
  0 siblings, 0 replies; 5+ messages in thread
From: Lars Bungum @ 2004-01-24 23:16 UTC (permalink / raw)
  Cc: help-gnu-emacs

On Sat, 2004-01-24 at 22:46, rydis@CD.Chalmers.SE wrote:
> Lars Bungum <lars@bungum.no> writes:
> > My zone-files don't have a particular extension, though, so my next
> > challenge would be to get hold of some lines for my .emacs that would
> > open zone-mode for all files opened in my zone-file directory.  How can
> > I do this?
> (add-to-list 'auto-mode-alist (cons "\\`/etc/namedb/Z/" 'zone-mode))
> (I keep my zone-files in /etc/namedb/Z/.)

Thanks!

It just struck me that it would be very useful for me if the zone-mode
would give some sort of notice if it tried to bump the serial, but
failed to find one in the file.  Just a little status warning at the
bottom at the bottom of the screen or something.  Would it be easy to
append something like that to the zone-mode.el file (or otherwise)?

--lars

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-01-24 23:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.1274.1074959413.928.help-gnu-emacs@gnu.org>
2004-01-24 19:39 ` zone-mode Lowell Gilbert
2004-01-24 21:14   ` zone-mode Lars Bungum
2004-01-24 21:46     ` zone-mode Martin Rydstr|m
2004-01-24 23:16       ` zone-mode Lars Bungum
2004-01-24 15:49 zone-mode Lars Bungum

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.