X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/a749f1c648f2b9bf1a0b0b10e2da4c1c4e3d431d..058e8562775571790e48b1614e84a9617a9e1e17:/lisp/loadhist.el diff --git a/lisp/loadhist.el b/lisp/loadhist.el index 056a4ef4dc..071a1adddd 100644 --- a/lisp/loadhist.el +++ b/lisp/loadhist.el @@ -1,6 +1,6 @@ ;;; loadhist.el --- lisp functions for working with feature groups -;; Copyright (C) 1995, 1998, 2000-2015 Free Software Foundation, Inc. +;; Copyright (C) 1995, 1998, 2000-2016 Free Software Foundation, Inc. ;; Author: Eric S. Raymond ;; Maintainer: emacs-devel@gnu.org @@ -101,10 +101,15 @@ A library name is equivalent to the file name that `load-library' would load." "Read feature name from the minibuffer, prompting with string PROMPT. If optional second arg LOADED-P is non-nil, the feature must be loaded from a file." - (intern (completing-read prompt - features - (and loaded-p #'feature-file) - loaded-p))) + (intern (completing-read + prompt + (mapcar #'symbol-name + (if loaded-p + (delq nil + (mapcar + (lambda (x) (and (feature-file x) x)) + features)) + features))))) (defvaralias 'loadhist-hook-functions 'unload-feature-special-hooks) (defvar unload-feature-special-hooks @@ -118,7 +123,6 @@ from a file." delete-frame-functions disabled-command-function fill-nobreak-predicate find-directory-functions find-file-not-found-functions - font-lock-beginning-of-syntax-function font-lock-fontify-buffer-function font-lock-fontify-region-function font-lock-mark-block-function