From unknown Tue Aug 19 21:52:56 2025 X-Loop: help-debbugs@gnu.org Subject: bug#14483: Problem with loading ~/.emacs file Resent-From: Petr Hracek Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 May 2013 15:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 14483 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 14483@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.136966733019261 (code B ref -1); Mon, 27 May 2013 15:09:01 +0000 Received: (at submit) by debbugs.gnu.org; 27 May 2013 15:08:50 +0000 Received: from localhost ([127.0.0.1]:36610 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ugz2X-00050c-Sy for submit@debbugs.gnu.org; Mon, 27 May 2013 11:08:50 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56315) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ugz2U-00050K-QS for submit@debbugs.gnu.org; Mon, 27 May 2013 11:08:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ugz16-0007XM-Va for submit@debbugs.gnu.org; Mon, 27 May 2013 11:07:28 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=5.0 tests=BAYES_00,HTML_MESSAGE, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:37442) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ugz16-0007XG-SP for submit@debbugs.gnu.org; Mon, 27 May 2013 11:07:20 -0400 Received: from eggs.gnu.org ([208.118.235.92]:39356) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ugz0w-0007IN-Dj for bug-gnu-emacs@gnu.org; Mon, 27 May 2013 11:07:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ugz0n-0007Sz-W9 for bug-gnu-emacs@gnu.org; Mon, 27 May 2013 11:07:10 -0400 Received: from mx1.redhat.com ([209.132.183.28]:20435) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ugz0n-0007Sq-Nv for bug-gnu-emacs@gnu.org; Mon, 27 May 2013 11:07:01 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r4RF70Vb014400 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 27 May 2013 11:07:00 -0400 Received: from [10.34.4.145] (unused-4-145.brq.redhat.com [10.34.4.145]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id r4RF6xl3006838 for ; Mon, 27 May 2013 11:06:59 -0400 Message-ID: <51A37692.5020706@redhat.com> Date: Mon, 27 May 2013 17:06:58 +0200 From: Petr Hracek User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130402 Thunderbird/17.0.5 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="------------080005070602050707030504" X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) This is a multi-part message in MIME format. --------------080005070602050707030504 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 \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 --------------080005070602050707030504 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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
--------------080005070602050707030504-- From unknown Tue Aug 19 21:52:56 2025 X-Loop: help-debbugs@gnu.org Subject: bug#14483: Problem with loading ~/.emacs file Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 28 May 2013 01:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14483 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo unreproducible To: Petr Hracek Cc: 14483@debbugs.gnu.org Received: via spool by 14483-submit@debbugs.gnu.org id=B14483.13697060225742 (code B ref 14483); Tue, 28 May 2013 01:54:01 +0000 Received: (at 14483) by debbugs.gnu.org; 28 May 2013 01:53:42 +0000 Received: from localhost ([127.0.0.1]:36973 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Uh96c-0001UZ-7X for submit@debbugs.gnu.org; Mon, 27 May 2013 21:53:42 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:47228 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Uh96Z-0001UR-Ja for 14483@debbugs.gnu.org; Mon, 27 May 2013 21:53:40 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Uh95K-0004kf-7O; Mon, 27 May 2013 21:52:22 -0400 From: Glenn Morris References: <51A37692.5020706@redhat.com> X-Spook: class struggle KGB satellite imagery Soviet keyhole X-Ran: wTQH,0GgS8K*M:s(}\ldG)k$`k*k@3+"vXc^3zV?:E"z6VIJ7&A(KS":~_nCiFRSrd=hmj X-Hue: cyan X-Attribution: GM Date: Mon, 27 May 2013 21:52:22 -0400 In-Reply-To: <51A37692.5020706@redhat.com> (Petr Hracek's message of "Mon, 27 May 2013 17:06:58 +0200") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.1 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -8.0 (--------) 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. From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 03 23:41:12 2013 Received: (at control) by debbugs.gnu.org; 4 Jun 2013 03:41:12 +0000 Received: from localhost ([127.0.0.1]:49658 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Uji7U-0007UQ-4Y for submit@debbugs.gnu.org; Mon, 03 Jun 2013 23:41:12 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:57699 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Uji7P-0007UD-UH for control@debbugs.gnu.org; Mon, 03 Jun 2013 23:41:08 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Uji5X-0000Do-EG for control@debbugs.gnu.org; Mon, 03 Jun 2013 23:39:11 -0400 Date: Mon, 03 Jun 2013 23:39:11 -0400 Message-Id: Subject: control message for bug 14483 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -4.7 (----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -7.4 (-------) forwarded 14483 https://bugzilla.redhat.com/show_bug.cgi?id=827898 close 14483