unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* AUCtex & Errors while compiling
@ 2010-04-16 18:22 Claudius Hubig
  2010-04-16 19:37 ` Andreas Politz
  2010-04-17 12:26 ` Ralf Angeli
  0 siblings, 2 replies; 6+ messages in thread
From: Claudius Hubig @ 2010-04-16 18:22 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

I'm happily using emacs together with AUCtex (at least I believe so,
I'm quite new to emacs, but it says "PDFLaTex" in the status line).

Compiling also works fine, but when it encounters an error, it tells
me to press C-c `. Being on a German keyboard with deadkeys enabled,
I first press C-c, then Shift-' (key left of backspace) and then
space. It then asks me for a master file:

Master file: (default this file) ~/Desktop/TeX Live 2009/

But since I have none, I just press enter. Navigating to the file I'm
trying to compile (~Desktop/mfp-1.tex) leads to the same results as
just hitting enter.

I then get a vertically divided screen, with a *TeX help* tab on the
right hand which shows me some information about the error and an
empty tab called "Debian" on the left hand.

Is there now any way to
a) get my original file automatically into the buffer on the left and
b) get "links" from the "faulty" lines mentioned on the right to the
corresponding lines on the left?

Please note that I'm using emacs in text mode on Debian testing.
Information about the installed versions, my .emacs and `ls -l
~/.emacs.d/` is appended below.

Thank you very much for taking the time to read (and maybe respond)! :)

Best regards,

Claudius

-- .emacs --
;Add my path
(setq load-path (append load-path (list "/home/claudius/.emacs.d")))

; Some keybindings
(global-font-lock-mode t)
(global-set-key "\C-xs" 'save-buffer)
(global-set-key "\C-xv" 'quoted-insert)
(global-set-key "\C-xg" 'goto-line)
(global-set-key "\C-xf" 'search-forward)
(global-set-key "\C-cc" 'compile)
(global-set-key "\C-xt" 'text-mode);
(global-set-key "\C-xr" 'replace-string);
(global-set-key "\C-xa" 'repeat-complex-command);
(global-set-key "\C-xm" 'manual-entry);
(global-set-key "\C-xw" 'what-line);
(global-set-key "\C-x\C-u" 'shell);
(global-set-key "\C-x\C-r" 'toggle-read-only);
(global-set-key "\C-t" 'kill-word);
(global-set-key "\C-p" 'previous-line);
(global-set-key "\C-u" 'backward-word);
(global-set-key "\C-o" 'forward-word);
(global-set-key "\C-h" 'backward-delete-char-untabify);
(global-set-key "\C-x\C-m" 'not-modified);
(global-set-key "\C-e" 'hippie-expand)
(global-set-key "\C-ce" 'fixup-whitespace)
(global-set-key "\C-k" 'kill-whole-line)

;Default mode/standard stuff
(setq default-major-mode 'text-mode)
(setq mode-require-final-newline t)
(menu-bar-mode -1) ;Disable menu bar
(setq inhibit-startup-message t) ;Disable startup message
(fset 'yes-or-no-p 'y-or-n-p) ;Disable annoying yes/no
(setq current-fill-column 160)
;; Backup control
(defun my-backup-file-name (fpath)
  "Return a new file path of a given file path.
If the new path's directories does not exist, create them."
  (let (backup-root bpath)
    (setq backup-root "~/.emacs.d/emacs-backup")
    (setq bpath (concat backup-root fpath "~"))
    (make-directory (file-name-directory bpath) bpath)
    bpath
  )
)
(setq make-backup-file-name-function 'my-backup-file-name)

(defvar autosave-dir
 (concat "/tmp/emacs_autosaves/" (user-login-name) "/"))

(make-directory autosave-dir t)

(defun auto-save-file-name-p (filename)
  (string-match "^#.*#$" (file-name-nondirectory filename)))

(defun make-auto-save-file-name ()
  (concat autosave-dir
   (if buffer-file-name
      (concat "#" (file-name-nondirectory buffer-file-name) "#")
    (expand-file-name
     (concat "#%" (buffer-name) "#")))))

;Show me where I am
(global-linum-mode 1)
(column-number-mode 1)
(setq linum-format "%d ")

;Brackets
(setq show-paren-delay 0 
      show-paren-style 'parenthesis) 
(show-paren-mode 1)

(global-set-key "%" 'match-paren)
(defun match-paren (arg)
  "Go to the matching parenthesis if on parenthesis otherwise insert %."
  (interactive "p")
  (cond ((looking-at "\\s\(") (forward-list 1) (backward-char 1))
        ((looking-at "\\s\)") (forward-char 1) (backward-list 1))
        (t (self-insert-command (or arg 1)))))

;Fix for color-theme-select
(defun color-theme-face-attr-construct (face frame)
  (if (atom face)
      (custom-face-attributes-get face frame)
    (if (and (consp face) (eq (car face) 'quote))
	(custom-face-attributes-get (cadr face) frame)
      (custom-face-attributes-get (car face) frame))))

;General tabwidth stuff
(setq tab-stop-list (quote (4 8 12 16 20 24 28 32 36 40 44 48 52 56 60 64 68 72 76 80 84 88 92 96 100 104 108 112 116 120 124 128 132 136 140 144 148 152 156 160 164 168 172 176 180 184 188 192 196 200 204 208 212 216 220 224 228 232 236 240 244 248 252)))
(setq tab-always-indent t)
(setq tab-width 4)

;LaTeX-mode
(setq-default TeX-master nil);
(setq TeX-PDF-mode t)
(setq TeX-output-view-style (quote (("^dvi$" ("^landscape$"
"^pstricks$\\|^pst-\\|^psfrag$") "%(o?)dvips -t landscape %d -o && gv
%f") ("^dvi$" "^pstricks$\\|^pst-\\|^psfrag$" "%(o?)dvips %d -o && gv
%f") ("^dvi$" ("^\\(?:a4\\(?:dutch\\|paper\\|wide\\)\\|sem-a4\\)$"
"^landscape$") "%(o?)xdvi %dS -paper a4r -s 0 %d") ("^dvi$"
"^\\(?:a4\\(?:dutch\\|paper\\|wide\\)\\|sem-a4\\)$" "%(o?)xdvi %dS
-paper a4 %d") ("^dvi$" ("^\\(?:a5\\(?:comb\\|paper\\)\\)$"
"^landscape$") "%(o?)xdvi %dS -paper a5r -s 0 %d") ("^dvi$"
"^\\(?:a5\\(?:comb\\|paper\\)\\)$" "%(o?)xdvi %dS -paper a5 %d")
("^dvi$" "^b5paper$" "%(o?)xdvi %dS -paper b5 %d") ("^dvi$"
"^letterpaper$" "%(o?)xdvi %dS -paper us %d") ("^dvi$" "^legalpaper$"
"%(o?)xdvi %dS -paper legal %d") ("^dvi$" "^executivepaper$"
"%(o?)xdvi %dS -paper 7.25x10.5in %d") ("^dvi$" "." "%(o?)xdvi %dS
%d") ("^pdf$" "." "evince %o %(outpage)") ("^html?$" "." "netscape
%o"))))

;C/C++
(defvaralias 'c-basic-offset 'tab-width)
(setq c-basic-offset 4)
(setq c-report-syntactic-errors t)
(setq c-syntactic-indentation t)
(setq c-tab-always-indent nil)
(setq c-backspace-function 'backward-delete-char)
(custom-set-variables
  ;; custom-set-variables was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
 '(tab-always-indent nil))
(custom-set-faces
  ;; custom-set-faces was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
 )

;; HTML
(setq html-helper-build-new-buffer nil)

-- `ls -l ~/.emacs.d/` -- 
drwx------ 2 claudius claudius  4096 16. Apr 20:17 auto-save-list
-rw-r--r-- 1 claudius claudius 17717  1. Mär 20:39 doremi-cmd.el
-rw-r--r-- 1 claudius claudius 25956  1. Mär 20:46 doremi.el
drwxr-xr-x 3 claudius claudius  4096  6. Apr 23:30 emacs-backup
-rw-r--r-- 1 claudius claudius  5567  1. Mär 20:46 ring+.el

-- dpkg -l | grep emacs --
ii  emacs-goodies-el                      31.5                         Miscellaneous add-ons for Emacs
ii  emacs23-bin-common                    23.1+1-5                     The GNU Emacs editor's shared, architecture dependent files
ii  emacs23-common                        23.1+1-5                     The GNU Emacs editor's shared, architecture independent infra
ii  emacs23-common-non-dfsg               23.1+1-1                     GNU Emacs shared, architecture independent, non-DFSG items
ii  emacs23-nox                           23.1+1-5                     The GNU Emacs editor (without X support)
ii  emacsen-common                        1.4.19                       Common facilities for all emacsen
ii  html-helper-mode                      3.0.4kilo-2                  A popular HTML editing mode for emacs

-- 
Please come home with me ... I have Tylenol!!

http://chubig.net/



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

end of thread, other threads:[~2010-04-17 12:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-16 18:22 AUCtex & Errors while compiling Claudius Hubig
2010-04-16 19:37 ` Andreas Politz
2010-04-16 20:16   ` Claudius Hubig
2010-04-16 23:20     ` Andreas Politz
2010-04-17 12:34       ` Ralf Angeli
2010-04-17 12:26 ` Ralf Angeli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).