all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#12989: 24.3.50; buffer-file-type is not buffer-local
@ 2012-11-25  3:58 Kazuhiro Ito
  2012-11-25 16:50 ` Eli Zaretskii
  0 siblings, 1 reply; 14+ messages in thread
From: Kazuhiro Ito @ 2012-11-25  3:58 UTC (permalink / raw)
  To: 12989

When I evaluate below code, Emacs-23 and trunk on Windows return the
different results.

(list
 (setq buffer-file-type nil)
 (progn
   (let ((coding-system-for-read 'no-conversion))
     ;; Specify non-existing file.
     (kill-buffer (find-file-noselect "c:/zzzzzzz")))
   buffer-file-type))

-> (nil nil) (Emacs 23)
-> (nil t) (trunk)

And, if buffer-file-type is set to t, many file coding system
detections fail.  Docstring says that buffer-file-type autmatically
becomes buffer-local, but that is not true on trunk.

> buffer-file-type is a variable defined in `subr.el'.
> Its value is nil
> 
> Documentation:
> Non-nil if the visited file is a binary file.
> This variable is meaningful on MS-DOG and Windows NT.
> On those systems, it is automatically local in every buffer.
> On other systems, this variable is normally always nil.


Additionally, there is typo in docsstring of buffer-file-type.

> This variable is meaningful on MS-DOG and Windows NT.
                                 ~~~~~~

-- 
Kazuhiro Ito





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

end of thread, other threads:[~2013-02-09 16:21 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-25  3:58 bug#12989: 24.3.50; buffer-file-type is not buffer-local Kazuhiro Ito
2012-11-25 16:50 ` Eli Zaretskii
2012-11-25 21:16   ` Stefan Monnier
2012-11-25 21:26     ` Eli Zaretskii
2012-11-25 23:47     ` Richard Stallman
2012-11-26  0:47       ` Juanma Barranquero
2012-11-26  1:26       ` Stefan Monnier
2012-11-26 14:35   ` Kazuhiro Ito
2012-11-26 17:24     ` Eli Zaretskii
2013-02-09 13:01   ` Eli Zaretskii
2013-02-09 14:29     ` Stefan Monnier
2013-02-09 16:21       ` Eli Zaretskii
2013-02-09 16:08     ` Michael Albinus
2013-02-09 16:17       ` Eli Zaretskii

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.