emacs-devel
[Top][All Lists]
Advanced

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

Re: doc-view compilation warnings


From: Dan Nicolaescu
Subject: Re: doc-view compilation warnings
Date: Tue, 23 Oct 2007 07:30:46 -0700

Tassilo Horn <address@hidden> writes:

  > Richard Stallman <address@hidden> writes:
  > 
  > >     Yes, I know.  I'll fix those after my latest patch got applied.
  > >     So what is the convention?  Is calling a cl-function at runtime
  > >     strictly forbidden?
  > >
  > > Yes.
  > 
  > Ok, this patch fixes this issue plus the "open dvi/pdf files with
  > doc-view and ps-files with ps-mode by default" issue.  (See message
  > <address@hidden> and its follow-ups.)
  > 
  > The only thing that remains is to find another keybinding for toggling
  > between editing and viewing with doc-view, because ps-mode already uses
  > `C-c C-c'.  Suggestions?

Please add ChangeLog entries when sending patches. 

  > The patch is also at http://www.tsdh.de/stuff/doc-view.patch
  > 
  > --- lisp/files.el   21 Oct 2007 10:48:28 -0000      1.936
  > +++ lisp/files.el   23 Oct 2007 12:53:00 -0000
  > @@ -2060,7 +2060,8 @@
  >       ("\\.\\(diffs?\\|patch\\|rej\\)\\'" . diff-mode)
  >       ("\\.\\(dif\\|pat\\)\\'" . diff-mode) ; for MSDOG
  >       ("\\.[eE]?[pP][sS]\\'" . ps-mode)
  > -     ("\\.\\(?:PDF\\|DVI\\|pdf\\|dvi\\)" . doc-view-mode)
  > +     ("\\.[Pp][Dd][Ff]\\'" . ps-mode)
  > +     ("\\.[Dd][Vv][Ii]\\'" . fundamental-mode)
  >       ("configure\\.\\(ac\\|in\\)\\'" . autoconf-mode)
  >       ("BROWSE\\'" . ebrowse-tree-mode)
  >       ("\\.ebrowse\\'" . ebrowse-tree-mode)
  > Index: lisp/doc-view.el
  > ===================================================================
  > RCS file: /sources/emacs/emacs/lisp/doc-view.el,v
  > retrieving revision 1.11
  > diff -u -r1.11 doc-view.el
  > --- lisp/doc-view.el        19 Oct 2007 16:03:09 -0000      1.11
  > +++ lisp/doc-view.el        23 Oct 2007 12:53:01 -0000
  > @@ -104,6 +104,10 @@
  >  (require 'image-mode)
  >  (eval-when-compile (require 'cl))
  >  
  > +;;;###autoload (push '("\\.[eE]?[pP][sS]\\'" . doc-view-mode-maybe) 
auto-mode-alist)
  > +;;;###autoload (push '("\\.[Dd][Vv][Ii]\\'"  . doc-view-mode-maybe) 
auto-mode-alist)
  > +;;;###autoload (push '("\\.[Pp][Dd][Ff]\\'"  . doc-view-mode-maybe) 
auto-mode-alist)

Given that you are changing auto-mode-alist alist directly, why not
put all the auto-mode-alist manipulation in files.el? It's a bit
confusing to see this done in 2 places.




reply via email to

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