From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Mauro Aranda Newsgroups: gmane.emacs.bugs Subject: bug#34954: 26.1.92; eshell gets loaded twice Date: Sat, 23 Mar 2019 12:05:56 -0300 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="213680"; mail-complaints-to="usenet@blaine.gmane.org" To: 34954@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 23 16:07:13 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h7iEq-000tUZ-Cp for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Mar 2019 16:07:12 +0100 Original-Received: from localhost ([127.0.0.1]:44499 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h7iEo-0006CK-SV for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Mar 2019 11:07:10 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42277) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h7iEi-0006BD-5v for bug-gnu-emacs@gnu.org; Sat, 23 Mar 2019 11:07:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h7iEh-0001XU-0b for bug-gnu-emacs@gnu.org; Sat, 23 Mar 2019 11:07:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42117) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h7iEg-0001Vz-F7 for bug-gnu-emacs@gnu.org; Sat, 23 Mar 2019 11:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h7iEg-000606-1g for bug-gnu-emacs@gnu.org; Sat, 23 Mar 2019 11:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mauro Aranda Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Mar 2019 15:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 34954 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs Original-Received: via spool by submit@debbugs.gnu.org id=B.155335358423023 (code B ref -1); Sat, 23 Mar 2019 15:07:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 23 Mar 2019 15:06:24 +0000 Original-Received: from localhost ([127.0.0.1]:55661 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h7iE4-0005zH-AM for submit@debbugs.gnu.org; Sat, 23 Mar 2019 11:06:24 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:56021) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h7iE0-0005z2-MP for submit@debbugs.gnu.org; Sat, 23 Mar 2019 11:06:21 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:37610) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h7iDs-0000ZJ-LZ for submit@debbugs.gnu.org; Sat, 23 Mar 2019 11:06:13 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42150) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h7iDq-0006AK-M5 for bug-gnu-emacs@gnu.org; Sat, 23 Mar 2019 11:06:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h7iDn-0000R7-6C for bug-gnu-emacs@gnu.org; Sat, 23 Mar 2019 11:06:09 -0400 Original-Received: from mail-lj1-x233.google.com ([2a00:1450:4864:20::233]:39216) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h7iDm-0000Ci-H2 for bug-gnu-emacs@gnu.org; Sat, 23 Mar 2019 11:06:07 -0400 Original-Received: by mail-lj1-x233.google.com with SMTP id l7so4348035ljg.6 for ; Sat, 23 Mar 2019 08:05:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=/CsXMHh4OQsLdXpVwdc5UwXpJsPFr1crDSTht5bNGGM=; b=gbCWsi6ACDguIOO+6yte2p6UaKLNWD9PhY750apdXbyawl7tBLehVCY0fqbcQdNdyh iiNricBBvCaUxGCml4ugfNTWMGHkaUuvVFb5QFM8842L5dRsWEBCejEUPb6CqKOSETQk ZJQUArDVsGgNr/P+L31RlnK1xVzNT+oPtnUkaNOfHEE9ivCBg5tgqHx401QVUhzXu3+A +JKVFCV/BbI7QZiFgg1WM8FGRiGCV5ILA9gT9l6Eb1HRb6Qw6KbHwx8Mn+MO2cYNDTBP ILxYH6+6UP4ca5jMhtMdP552HN8wgji+g7ye0goxk1PGsVAZ4e+G+cMcU/av2pRQN2IQ RSPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=/CsXMHh4OQsLdXpVwdc5UwXpJsPFr1crDSTht5bNGGM=; b=Uy1nnV7HI+p9+2MrMXBmSl6cXZcVu9yF9F/obwC/9jKg09OGlAQWcwIfOKHdYFf2oY 2q02UQaCGEavGtOzTiv7yqzZhyNBUN2A6POZBQTqRyeGkFojPAkUwvUIwmwFV/YYak9+ UXR19OwcXiLlCoAJOnkkPOxv5hSfr9nF55Nlr68G6uvKEuIRv+kg5MpN9qlklNqm71/5 yR29bmXo90THPciH3elno97twIrQUIBJq4MPArdKmBXHz6GoQH/8OE/vNhpByM03PZnY qvk5nZfPqB9DiaLQK51YZtkomgWqt3tY5y1OFhfVEvhOiqsmB5myd1HPnzRjHtdxZ5+6 GCww== X-Gm-Message-State: APjAAAUgxRrTTduekBzkMW3Ij6Kdo5SHdVFEFmRWl8oo0wckAbOoJYEB GPtpPxTt6V74qv20S5pbPgZiKHcekO7n9bXBArEQpQ== X-Google-Smtp-Source: APXvYqxPCEgZqPNRxnMxYr+HtzmG1Pabn/Vk8h1ZIlL4yokIHcVVrIVxoTh+EAD6mOHLwzVKxCMtZej8KsWNcNeozRM= X-Received: by 2002:a2e:3506:: with SMTP id z6mr8169789ljz.72.1553353557278; Sat, 23 Mar 2019 08:05:57 -0700 (PDT) Original-Received: by 2002:a19:2b53:0:0:0:0:0 with HTTP; Sat, 23 Mar 2019 08:05:56 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:156663 Archived-At: Hello Emacs. I was messing around with eshell hooks when I encountered this bug. This behavior is present in a fairly recent build of emacs 26 and in master as well. Here's a recipe: 1) Start emacs: emacs -Q. 2) On *scratch* buffer, write the following expressions: The function can be whatever indicates a duplicate (I keep it simple for myself): (defun eshell-loaded-msg () (insert "Eshell was loaded.\n")) (add-hook 'eshell-load-hook 'eshell-loaded-msg) 3) M-x eval-buffer 4) M-x eshell 5) After Eshell gets loaded, type C-x b RET to go back to *scratch* buffer. 6) Notice that "Eshell was loaded" appears twice. My conclusion is that eshell gets loaded twice, becuase eshell.el requires esh-mode, which requires esh-module, which in turn requires eshell. Since this require expression comes before the provide expresion (provide 'eshell) in eshell.el, eshell gets loaded twice. In GNU Emacs 26.1.92 (build 1, i686-pc-linux-gnu, GTK+ Version 3.18.9) of 2019-03-22 built on the-blackbeard Repository revision: 24fc1337c169aeb1095dcc58bf8d4bbe48abefc0 Windowing system distributor 'The X.Org Foundation', version 11.0.11906000 System Description: Ubuntu 16.04.6 LTS Recent messages: Loading em-basic...done Loading em-cmpl...done Loading em-dirs...done Loading em-glob...done Loading em-hist...done Loading em-ls...done Loading em-prompt...done Loading em-script...done Loading em-term...done Loading em-unix...done Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM THREADS LCMS2 Important settings: value of $LANG: en_US.utf8 value of $XMODIFIERS: locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv bytecomp byte-compile cconv dired dired-loaddefs format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils em-unix em-term term disp-table easymenu ehelp em-script em-prompt em-ls cl-loaddefs cl-lib em-hist em-pred em-glob em-dirs em-cmpl em-basic em-banner em-alias pcomplete comint ansi-color ring esh-var esh-io esh-cmd esh-opt esh-ext esh-proc esh-arg esh-groups eshell esh-module esh-mode esh-util elec-pair time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 8 111308 10030) (symbols 24 22085 1) (miscs 20 57 161) (strings 16 33578 1765) (string-bytes 1 938325) (vectors 12 17691) (vector-slots 4 564929 12642) (floats 8 56 61) (intervals 28 231 1) (buffers 536 12) (heap 1024 32162 939))