Message ID | 4D6532F3.8030209@gjlay.de |
---|---|
State | New |
Headers | show |
Georg-Johann Lay schrieb: http://gcc.gnu.org/ml/gcc-patches/2011-02/msg01535.html > This patch removes magic comment from avr machine description and > works for the affected versions trunk, 4.5, 4.4, 4.3. > > IMHO, sources should not contain magic comments. > > Anyone who uses emacs and likes to attach specific major mode like, > say lisp-mode, to .md files can add commands like the following to the > .emacs file: > > (setq auto-mode-alist > (cons '("\\.md$" . lisp-mode) > auto-mode-alist)) > > with the additional benefit that *all* md-files are attached to lisp > mode, not only avr.md and everyone is free to use another mode like, > e.g. some home brew md-mode. > > 2011-02-23 Georg-Johann Lay <avr@gjlay.de> > > * config/avr/avr.md: Remove magic comment for emacs. > > > > ------------------------------------------------------------------------ > > Index: config/avr/avr.md > =================================================================== > --- config/avr/avr.md (revision 170329) > +++ config/avr/avr.md (working copy) > @@ -1,4 +1,3 @@ > -;; -*- Mode: Scheme -*- > ;; Machine description for GNU compiler, > ;; for ATMEL AVR micro controllers. > ;; Copyright (C) 1998, 1999, 2000, 2001, 2002, 2004, 2005, 2006, 2007, 2008,
2011/2/27 Georg-Johann Lay <avr@gjlay.de>: > Georg-Johann Lay schrieb: > > http://gcc.gnu.org/ml/gcc-patches/2011-02/msg01535.html > >> This patch removes magic comment from avr machine description and >> works for the affected versions trunk, 4.5, 4.4, 4.3. >> >> IMHO, sources should not contain magic comments. >> >> Anyone who uses emacs and likes to attach specific major mode like, >> say lisp-mode, to .md files can add commands like the following to the >> .emacs file: >> >> (setq auto-mode-alist >> (cons '("\\.md$" . lisp-mode) >> auto-mode-alist)) >> >> with the additional benefit that *all* md-files are attached to lisp >> mode, not only avr.md and everyone is free to use another mode like, >> e.g. some home brew md-mode. >> >> 2011-02-23 Georg-Johann Lay <avr@gjlay.de> >> >> * config/avr/avr.md: Remove magic comment for emacs. Applied. Denis.
Index: config/avr/avr.md =================================================================== --- config/avr/avr.md (revision 170329) +++ config/avr/avr.md (working copy) @@ -1,4 +1,3 @@ -;; -*- Mode: Scheme -*- ;; Machine description for GNU compiler, ;; for ATMEL AVR micro controllers. ;; Copyright (C) 1998, 1999, 2000, 2001, 2002, 2004, 2005, 2006, 2007, 2008,