* bug#14483: Problem with loading ~/.emacs file
@ 2013-05-27 15:06 Petr Hracek
2013-05-28 1:52 ` Glenn Morris
0 siblings, 1 reply; 2+ messages in thread
From: Petr Hracek @ 2013-05-27 15:06 UTC (permalink / raw)
To: 14483
[-- Attachment #1: Type: text/plain, Size: 1714 bytes --]
Hi folks,
I have a problem as well with loading that file (~/.emacs) stored in my
home directory.
when I am trying to open them it finish infinite loop.
BZ(https://bugzilla.redhat.com/show_bug.cgi?id=827898)
Could you please advice me what is wrong?
my ~/.emacs file looks like:
*;; Options Menu Settings --*- emacs-lisp -*--
;; =====================
(unless (featurep 'xemacs)
(add-to-list 'load-path "~/.emacs-config/lisp.emacs" t)
(add-to-list 'load-path "~/.emacs-config/lisp.xemacs" t))
(add-to-list 'load-path "~/.emacs-config/lisp" t)
(defun ensc/new-cxx-file (cxx_unified_name)
(interactive
(list (read-string "Please insert an unique macro-name to prevent
multiple compilation: " nil 'ensc/include-guard-history)))
; "sPlease insert an unique macro-name to prevent multiple compilation: ")
; (c++-mode)
(insert "/*\t--*- "
(if (string-match "\\.\\(hh\\|cc\\|hcc\\|icc\\)$"
(buffer-file-name)) "c++" "c")
" -*--\n")
(require 'gpl)
(insert " * " gpl-copyright-line "\n" )
(gpl-insert-notice " *" (gpl-generic-notice))
(insert " */\n")
(if (not (string= cxx_unified_name ""))
(insert "\n"
"#ifndef " cxx_unified_name "\n"
"#define " cxx_unified_name "\n")
(unless (string-match "\\.icc$" (buffer-file-name))
(insert "\n"
"#ifdef HAVE_CONFIG_H\n"
"# include <config.h>\n"
"#endif\n")))
(insert "\n")
(unless (string= cxx_unified_name "")
(save-excursion
(insert "\n\n"
"#endif\t/* " cxx_unified_name " */\n")))
)
(message "Finished init.el.")
*
--
Best regards / S pozdravem
Petr Hracek
[-- Attachment #2: Type: text/html, Size: 3306 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#14483: Problem with loading ~/.emacs file
2013-05-27 15:06 bug#14483: Problem with loading ~/.emacs file Petr Hracek
@ 2013-05-28 1:52 ` Glenn Morris
0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2013-05-28 1:52 UTC (permalink / raw)
To: Petr Hracek; +Cc: 14483
Petr Hracek wrote:
> BZ(https://bugzilla.redhat.com/show_bug.cgi?id=827898)
Insufficient data for meaningful answer.
(Also, this seems to be a year-old report from a pretest version of
Emacs 24.1.)
> my ~/.emacs file looks like:
Works fine for me with 24.3.
> (unless (featurep 'xemacs)
> (add-to-list 'load-path "~/.emacs-config/lisp.emacs" t)
> (add-to-list 'load-path "~/.emacs-config/lisp.xemacs" t))
Doesn't seem to make sense to add lisp.xemacs when not using XEmacs.
> (add-to-list 'load-path "~/.emacs-config/lisp" t)
These 3 directories could contain literally anything at all.
The OP might try
(setq debug-on-quit t)
at the start of .emacs, then interrupt it with ctrl-g when it hangs and
examine the backtrace.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-05-28 1:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-27 15:06 bug#14483: Problem with loading ~/.emacs file Petr Hracek
2013-05-28 1:52 ` Glenn Morris
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).