--- Begin Message ---
Package: debian-el
Version: 31.4
Severity: minor
File: /usr/share/emacs/site-lisp/debian-el/apt-utils.el
When searching for packages with apt-utils-search, they appear
sorted. But when entering the description of one package, and then
returning to the package list (using apt-utils-view-previous-package),
the list is now unsorted.
I've a patch that sort the list when returning to it.
Ps: I remember to have submitted this bug already, but I cannot find a
trace of it. Sorry if it's a duplicate.
--- 1/debian-el/apt-utils.el 2009-02-23 17:42:43.000000000 +0100
+++ 2/debian-el/apt-utils.el 2010-02-04 18:51:56.680730628 +0100
@@ -1,6 +1,6 @@
;;; apt-utils.el --- Emacs interface to APT (Debian package management)
-;;; Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 Matthew P. Hodges
+;;; Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 Matthew P. Hodges
;; Author: Matthew P. Hodges <[email protected]>
;; $Id: apt-utils.el,v 1.17 2009-02-23 16:42:43 psg Exp $
@@ -403,6 +403,7 @@
(apply 'call-process apt-utils-apt-cache-program nil '(t nil) nil
"search" "--"
(split-string package apt-utils-search-split-regexp))
+ (apt-utils-sort-result)
(apt-utils-add-search-links 'search))
;; Search for names only
((equal type 'search-names-only)
@@ -410,12 +411,14 @@
(apply 'call-process apt-utils-apt-cache-program nil '(t nil) nil
"search" "--names-only" "--"
(split-string package apt-utils-search-split-regexp))
+ (apt-utils-sort-result)
(apt-utils-add-search-links 'search-names-only))
;; Search for file names
((equal type 'search-file-names)
(insert (format "Debian package search (file names) for %s\n\n" package))
(apply 'call-process apt-utils-dpkg-program nil t nil
"-S" (list package))
+ (apt-utils-sort-result)
(apt-utils-add-search-links 'search-file-names))
;; grep-dctrl search
((equal type 'search-grep-dctrl)
@@ -423,6 +426,7 @@
(concat (format "\"%s\" " (car package))
(mapconcat 'identity (cdr package) " "))))
(apply 'call-process apt-utils-grep-dctrl-program nil t nil package)
+ (apt-utils-sort-result)
(apt-utils-add-package-links)))
(if apt-utils-use-current-window
(switch-to-buffer (current-buffer))
@@ -582,9 +586,7 @@
(clrhash apt-utils-current-links)))
(goto-char (point-min))
;; Sort results
- (save-excursion
- (forward-line 2)
- (sort-lines nil (point) (point-max)))
+ (apt-utils-sort-result)
(set-buffer-modified-p nil)
(setq buffer-read-only t)
(display-buffer (current-buffer)))))
@@ -2081,6 +2083,12 @@
'(autoload macro)))
(trace-function-background sym buffer))))))
+(defun apt-utils-sort-result ()
+ (save-excursion
+ (goto-char (point-min))
+ (forward-line 2)
+ (sort-lines nil (point) (point-max))))
+
(provide 'apt-utils)
;;; apt-utils.el ends here
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (990, 'unstable'), (500, 'testing'), (400, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages debian-el depends on:
ii bzip2 1.0.5-4 high-quality block-sorting file co
ii dpkg 1.15.5.6 Debian package management system
ii emacs [emacsen] 23.1+1-6 The GNU Emacs editor (metapackage)
ii emacs22 [emacsen] 22.3+1-1.2 The GNU Emacs editor
ii emacs23 [emacsen] 23.1+1-6 The GNU Emacs editor (with GTK+ us
ii file 5.04-1 Determines file type using "magic"
ii install-info 4.13a.dfsg.1-5 Manage installed documentation in
ii reportbug 4.10.2 reports bugs in the Debian distrib
Versions of packages debian-el recommends:
ii dlocate 1.02 fast alternative to dpkg -L and dp
ii groff-base 1.20.1-6 GNU troff text-formatting system (
ii wget 1.12-1.1 retrieves files from the web
Versions of packages debian-el suggests:
pn gnus <none> (no description available)
-- no debconf information
--- End Message ---