Bug 18400

Summary: should use some conf-mode for /etc/apt/sources.list*
Product: Branch 4.1 Reporter: Ivan Zakharyaschev <imz>
Component: emacs22-commonAssignee: Eugene Vlasov <eugvv>
Status: CLOSED NOTABUG QA Contact: qa-4.1 <qa-4.1>
Severity: enhancement    
Priority: P2    
Version: unspecified   
Hardware: all   
OS: Linux   

Description Ivan Zakharyaschev 2008-12-30 02:08:07 MSK
emacs22-common-22.2-alt5

emacs loads a special conf-mode, when, for example, opening /etc/lilo.conf. That's good. It highlights the syntax and would allow some commands like "comment-region".

Suggestion: emacs should also use conf-unix-mode or conf-space-mode (or some other suitable one) for APT configuration files, in particular, for /etc/apt/sources.list and /etc/apt/sources.list.d/*: "comment-region" is a very needed command there (as well highlighting which helps distinguish commented and uncommented strings).
Comment 1 Eugene Vlasov 2008-12-30 22:04:13 MSK
I think, this is no emacs bug. Use 
# -*- Mode: conf -*-
in top of this files. 
Perhaps this is bug of `rpm -qf /etc/apt/sources.list.d/*`
Comment 2 Eugene Vlasov 2009-01-24 08:56:06 MSK
Закрываю баг, как не являющийся ошибкой emacs.