Bug#557594: Highlight DEP-3 and DEP-5 keywords.

2024-04-04 Thread Xiyue Deng
Control: tags -1 pending

FYI the DEP-5 headers in copyright files are implemented[1] and will be
shipped in the next version.

The DEP-3 part still needs to be done but may be more involved as it
should work with diff mode.  Please feel free to file a separate
tracking bug for this.

[1] 
https://salsa.debian.org/emacsen-team/dpkg-dev-el/-/commit/d475bd2f0746f2cae65c71cbdf53f70c3bb2e128

-- 
Xiyue Deng



Bug#557594: Highlight DEP-3 and DEP-5 keywords.

2009-12-06 Thread Trent W. Buck
Peter S Galbraith wrote:
 Should this be implemented now?  I see that it is only a draft?

I don't know.  It IS only a draft, but I have the impression that the
field names are unlikely to change.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#557594: Highlight DEP-3 and DEP-5 keywords.

2009-12-05 Thread Peter S Galbraith
Trent W. Buck t...@cybersource.com.au wrote:

 After posting, it occurred to me to leverage conf-colon-mode.
 This doesn't distinguish catch misspelt field names (such as
 Descirption), but otherwise seems adequate for my simple needs.
 
 I'm currently trying this:
 
 (add-to-list 'auto-mode-alist '(/quilt_header\\...\\' . 
 conf-colon-mode)) ; DEP-3
 (add-to-list 'auto-mode-alist 
 '(/debian/\\([^/]+\\.\\)?\\(dirs\\|docs\\|install\\|manpages\\)\\' . 
 conf-mode))
 (add-to-list 'auto-mode-alist '(/debian/copyright\\' . conf-colon-mode)) ; 
 DEP-5
 (add-to-list 'auto-mode-alist '(/debian/patches/[^/]+\\' . diff-mode)) ; 
 3.0 (quilt).

For DEB5:

conf-colon-mode is a major-mode, so that is not really something we want
to do.  The best thing would have a list of valid once-only Fields
(Name:, Maintainer:, Source:, Discliamer), repeatable Fileds (Files:,
Copyright:, License:) and keywords (Apache, Artistic, BSD,...) that
would light up in a specific colour when spelled correctly.

Should this be implemented now?  I see that it is only a draft? 

-- 
Peter



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#557594: Highlight DEP-3 and DEP-5 keywords.

2009-11-22 Thread Trent W. Buck
Package: dpkg-dev-el
Version: 30.8-1
Severity: wishlist

DEP-3 and DEP-5 respectively describe provisional markups for patch
headers and debian/copyright.  It would be great if Emacs leveraged
these to provide syntax highlighting of these files.

DEP-5 applies to debian-copyright.el.  I think it just needs an extra
font-lock entry

DEP-3 applies to $TMPDIR/quilt_header.?? (when using quilt header
-e), plus whatever dpatch and CDBS' simple patch system use.  I
don't think there's a mode for that currently, but it's probably
straightforward to derive it from debian-control-mode and change the
keywords.

References: http://dep.debian.net/

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-2-686 (SMP w/1 CPU core)
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages dpkg-dev-el depends on:
ii  debian-el30.8-1  Emacs helpers specific to Debian u
ii  emacs [emacsen]  23.1+1-4em1 The GNU Emacs editor (metapackage)
ii  emacs23-nox [emacsen]23.1+1-4em1 The GNU Emacs editor (without X su

Versions of packages dpkg-dev-el recommends:
ii  wget 1.12-1.1em1 retrieves files from the web (grip

Versions of packages dpkg-dev-el suggests:
ii  dpkg-dev  1.15.4.1   Debian package development tools

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org