Hi! After upgrading to GNU Emacs 22 I noticed that my editor stopped inserting tabs in ebuild mode. Specifing this explicitly in the function solves the issue: [code listing begin] (defun ebuild-mode () (shell-script-mode) (sh-set-shell "bash") (make-local-variable 'tab-width) (setq tab-width 4) (make-local-variable 'indent-tabs-mode) (setq indent-tabs-mode t)) (add-to-list 'auto-mode-alist '("\\.ebuild$" . ebuild-mode)) (add-to-list 'auto-mode-alist '("\\.eclass$" . ebuild-mode)) [code listing end] I also changed the way auto-mode-alist is extended. Unfortunately I could not find the xml source of the handbook, so pardon me for not attaching a diff. Regards Christian
The respective XML source is available from http://www.gentoo.org/proj/en/devrel/handbook/hb-guide-ebuild.xml?passthru=1 . I guess you don't have to make the patch yourself, though. Reassigning to the owner of devrel handbook.
Created attachment 100404 [details, diff] Patch for updating the xml file. I also replaced mentions of .emacsrc with .emacs, as I did not find a .emacsrc or emacsrc file on my system.
Created attachment 100408 [details, diff] Patch for updating the xml file. Also updated the Header to the current year.
Now the code listing can be simplified to # echo app-emacs/ebuild-mode >> /etc/portage/package.keywords # emerge --ask --verbose app-emacs/ebuild-mode
(In reply to comment #4) > Now the code listing can be simplified to > > # echo app-emacs/ebuild-mode >> /etc/portage/package.keywords > # emerge --ask --verbose app-emacs/ebuild-mode Yes, all needed settings (and more) can be found in ebuild-mode.
Please hold on, since we consider renaming app-emacs/ebuild-mode.
Created attachment 122911 [details, diff] hb-guide-ebuild.xml.diff (In reply to comment #6) > Please hold on, since we consider renaming app-emacs/ebuild-mode. The package was renamed to app-emacs/gentoo-syntax. Please find an updated diff in the attachment. I believe the code listing is now dispensable.
(In reply to comment #7) > Created an attachment (id=122911) [edit] > hb-guide-ebuild.xml.diff > > (In reply to comment #6) > > Please hold on, since we consider renaming app-emacs/ebuild-mode. > > The package was renamed to app-emacs/gentoo-syntax. Please find an updated diff > in the attachment. I believe the code listing is now dispensable. > Applied. You probably want to check devmanual too and file a separate bug about it if needed.
(In reply to comment #8) > Applied. Thanks. > You probably want to check devmanual too and file a separate bug about > it if needed. That is bug #177356.