GNU bug report logs -
#10601
24.0.92; Visiting tgz files sets mode from File Local Variables
Previous Next
Reported by: Juri Linkov <juri <at> jurta.org>
Date: Wed, 25 Jan 2012 17:47:03 UTC
Severity: normal
Merged with 10506
Found in version 24.0.92
Fixed in version 24.0.93
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 10601 in the body.
You can then email your comments to 10601 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#10601
; Package
emacs
.
(Wed, 25 Jan 2012 17:47:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Juri Linkov <juri <at> jurta.org>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Wed, 25 Jan 2012 17:47:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
When the last file in a tzg archive ends with the Local Variables section
where mode is specified (for the last file in the archive), then the whole
archive is visited in that mode instead of using `tar-mode'.
This is a regression caused by fixing bug#8586.
There are variables `inhibit-first-line-modes-regexps' and
`inhibit-first-line-modes-suffixes' that prevent getting mode from the
Local Variables section for tzg archives and other such file types.
But currently they are used to skip only scanning of the first -*- line.
To fix this regression, it is necessary to use these variables
to skip getting mode from the Local Variables section.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#10601
; Package
emacs
.
(Wed, 25 Jan 2012 18:13:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 10601 <at> debbugs.gnu.org (full text, mbox):
> From: Juri Linkov <juri <at> jurta.org>
> Date: Wed, 25 Jan 2012 19:29:45 +0200
>
> When the last file in a tzg archive ends with the Local Variables section
> where mode is specified (for the last file in the archive), then the whole
> archive is visited in that mode instead of using `tar-mode'.
Isn't this bug #10506 that Glenn fixed a few days ago? When was your
Emacs built?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#10601
; Package
emacs
.
(Wed, 25 Jan 2012 18:38:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 10601 <at> debbugs.gnu.org (full text, mbox):
forcemerge 10506 10601
stop
> Isn't this bug #10506 that Glenn fixed a few days ago? When was your
> Emacs built?
Thanks, I missed that.
Forcibly Merged 10506 10601.
Request was from
Juri Linkov <juri <at> jurta.org>
to
control <at> debbugs.gnu.org
.
(Wed, 25 Jan 2012 18:38:03 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#10601
; Package
emacs
.
(Wed, 25 Jan 2012 19:46:01 GMT)
Full text and
rfc822 format available.
Message #16 received at 10601 <at> debbugs.gnu.org (full text, mbox):
> Isn't this bug #10506 that Glenn fixed a few days ago? When was your
> Emacs built?
With bug#10506 Glenn also fixed the case of visiting `browser.jar'
that I reported in http://debbugs.gnu.org/10338#11
But visiting TGA image files still displays the message "Malformed -*- line"
as reported in http://debbugs.gnu.org/9044#29
I think `imagemagick-register-types' should add TGA to
`inhibit-local-variables-regexps':
=== modified file 'lisp/image.el'
--- lisp/image.el 2012-01-25 17:54:01 +0000
+++ lisp/image.el 2012-01-25 19:31:10 +0000
@@ -712,7 +712,8 @@ (defun imagemagick-register-types ()
(not (memq (intern (upcase (symbol-name im-type)))
imagemagick-types-inhibit)))
(push (cons (car header-regexp) 'imagemagick)
- image-type-header-regexps)))))))
+ image-type-header-regexps))))
+ (push "\\.tga\\'" inhibit-local-variables-regexps))))
(provide 'image)
This is desirable for TGA because it usually contains many occurences of -*-
in the first line.
Of course, in 24.2 it would be better to check for `image-mode'
to cover all other image formats as well.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 23 Feb 2012 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 13 years and 121 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.