unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Ignoring file local-variables in patches?
@ 2005-01-04 23:20 drkm
  2005-01-05  0:12 ` Miles Bader
  0 siblings, 1 reply; 6+ messages in thread
From: drkm @ 2005-01-04 23:20 UTC (permalink / raw)


  Hello

  One of the patches I had when working on Ediff is this one:

*** ediff-diff.el.old	Thu Dec 23 07:01:56 2004
--- ediff-diff.el	Thu Dec 30 08:24:14 2004
***************
*** 1338,1343 ****
--- 1338,1350 ----
   		(append ediff-cmp-options (list f1 f2)))))
      (and (numberp res) (eq res 0))))
  
+ (defun ediff-same-file-contents-3 (f1 f2 &optional f3)
+   "Return t if F1, F2 and F3 (if applicable) have identical contents."
+   (and (ediff-same-file-contents file1 file2)
+        (or (null file3)
+            (and (ediff-same-file-contents file1 file3)
+                 (ediff-same-file-contents file2 file3)))))
+ 
  
  ;;; Local Variables:
  ;;; eval: (put 'ediff-defvar-local 'lisp-indent-hook 'defun)

  You can see it ends by a incomplete local variables list.  When I
open it, I have the error:

    File local-variables error: (error "Local variables list is not
    properly terminated")

  I think that these lists doesn't have to be processed for such
files, it isn't?  However, I guess a bootsrap issue: local variables
have to be processed to know the major mode, and how know to discard
this processing without knowing the major mode?

  Is the current behaviour a bug or a feature?

--drkm

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-01-05 20:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-04 23:20 Ignoring file local-variables in patches? drkm
2005-01-05  0:12 ` Miles Bader
2005-01-05  2:03   ` Simon Josefsson
2005-01-05  2:30     ` Miles Bader
2005-01-05  4:34     ` Stefan Monnier
2005-01-05 20:08     ` Richard Stallman

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).