bongo-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bongo-patches] Interpret a `.bongo' file name extension according to `b


From: Daniel Brockman
Subject: [bongo-patches] Interpret a `.bongo' file name extension according to `bongo-prefer-library-buffers'
Date: Thu, 24 May 2007 13:28:12 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.92 (gnu/linux)

Interpret a `.bongo' file name extension according to
`bongo-prefer-library-buffers'.

diff -rN -u old-bongo/bongo.el new-bongo/bongo.el
--- old-bongo/bongo.el  2007-05-24 13:28:09.000000000 +0200
+++ new-bongo/bongo.el  2007-05-24 13:28:09.000000000 +0200
@@ -9662,7 +9662,12 @@
 be a serialized Bongo buffer.")
 
 (add-to-list 'auto-mode-alist
-             '("\\.bongo\\(-library\\)?$" . bongo-library-mode))
+             `("\\.bongo$"
+               . ,(if bongo-prefer-library-buffers
+                      'bongo-library-mode
+                    'bongo-playlist-mode)))
+(add-to-list 'auto-mode-alist
+             '("\\.bongo-library$" . bongo-library-mode))
 (add-to-list 'auto-mode-alist
              '("\\.bongo-playlist$" . bongo-playlist-mode))
 
-- 
Daniel Brockman <address@hidden>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]