On Mon, Nov 18, 2019 at 08:30:46AM -0400, David Bremner wrote:
> Agustin Martin <agmar...@debian.org> writes:
> 
> > Hi, David,
> >
> >> That's not loaded by elpa packages.
> >
> > But AFAIK it should be loaded by Emacs,
> 
> Perhaps. Team packages don't use these startup files anymore. Most of
> the content (updating load paths in particular) is handled more reliably
> by package.el generated autoload files.
> 
> >> The general approach is to add an autoload cookie to set
> >> auto-mode-alist. See "HINTS" in dh_elpa(1). 
> >
> > I was looking at it and noticed the autoloads part, but nothing about
> > `auto-mode-alist'. Where is it?
> >
> 
> See "Other customizations"

Thanks for insisting, it was not clear to me after a quick read.

I am attaching a patch to replace

[0003-elpa-gnuplot-mode.emacsen-startup-Add-auto-mode-alis.patch]

doing things the elpa way.

-- 
Agustin
>From 74c09c964923c9119546aba0cd59cd56b40acb76 Mon Sep 17 00:00:00 2001
From: Agustin Martin Domingo <agmar...@debian.org>
Date: Mon, 18 Nov 2019 16:07:16 +0100
Subject: [PATCH] debian/debian-autoloads.el: Handle auto-mode-alist stuff the
 elpa way.

---
 debian/debian-autoloads.el    | 2 ++
 debian/elpa-gnuplot-mode.elpa | 1 +
 2 files changed, 3 insertions(+)
 create mode 100644 debian/debian-autoloads.el

diff --git a/debian/debian-autoloads.el b/debian/debian-autoloads.el
new file mode 100644
index 0000000..e2c1d6d
--- /dev/null
+++ b/debian/debian-autoloads.el
@@ -0,0 +1,2 @@
+;;;###autoload
+(setq auto-mode-alist (append '(("\\.gp\\'" . gnuplot-mode)) auto-mode-alist))
diff --git a/debian/elpa-gnuplot-mode.elpa b/debian/elpa-gnuplot-mode.elpa
index cd726c7..3e61da9 100644
--- a/debian/elpa-gnuplot-mode.elpa
+++ b/debian/elpa-gnuplot-mode.elpa
@@ -2,3 +2,4 @@ gnuplot.el
 gnuplot-gui.el
 gnuplot-context.el
 debian/gnuplot-mode-pkg.el
+debian/debian-autoloads.el
-- 
2.24.0

Reply via email to