From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id GHqDOjql6F9kJwAA0tVLHw (envelope-from ) for ; Sun, 27 Dec 2020 15:16:10 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id ECtcNjql6F9PFwAAB5/wlQ (envelope-from ) for ; Sun, 27 Dec 2020 15:16:10 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 48048940149 for ; Sun, 27 Dec 2020 15:16:10 +0000 (UTC) Received: from localhost ([::1]:59044 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ktXmD-0007XC-2l for larch@yhetil.org; Sun, 27 Dec 2020 10:16:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:60336) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktXlH-0007X1-Fy for Emacs-orgmode@gnu.org; Sun, 27 Dec 2020 10:15:11 -0500 Received: from mail-lf1-x12a.google.com ([2a00:1450:4864:20::12a]:41239) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ktXlF-0006v6-MY for Emacs-orgmode@gnu.org; Sun, 27 Dec 2020 10:15:11 -0500 Received: by mail-lf1-x12a.google.com with SMTP id s26so18820940lfc.8 for ; Sun, 27 Dec 2020 07:15:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lFJifbxNrjFFNF4Iypr8TfpEVRr1WWUQcuPum7274ys=; b=qfYk3XNvHQvW2bOEJPjnCCQML1e66Sr6Q+HknTFbvAHSByyF8Z40nbQmg4V2R0V35d FcRpTHCq60xmFBNWZG/XGhl3PDJxyepixYnS7Do47SD06LIEgBivelP3RN5Zvs5MYWYO INTPoCCNwi2I+FvVZCl2sGvC8qwXlJJrEAfFZmjfv6YQyAUUr+RaYHayCqiERtCR3PKA 5V5+Y7eTdPfdXai0J4ZyBzy//klhdNuzLQMYD0p1spW522Szc58dsQ/FPbxdukcSpQbm E89tLiq5VKlDQeV1Wfu3+4wanXYVIS8leuOKsriAq3kjcw9qE2woRJcE/BaxJP9HESH9 VagQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lFJifbxNrjFFNF4Iypr8TfpEVRr1WWUQcuPum7274ys=; b=c0F6Nh/SPXGZhgvQi/djafBFM4sVrOXwo3qJX1BDEcNZh+b3VWpSexM8mkzAJPMgdR D2EJsKElnohutFGRgZ++3mlg+WtCs6pylCGdh7XpRUIUdJnVMKcT+/S7+UEmmzMZ+k3L eI7+pLwdnUJgGEPwjO30c2ihKw55qacPpbRayoerPGrUJ4zAibDrPkbU9NZ6+jgyzsk7 DvNJkn6/per9Pxn8HS3ROhxV2k7ISOSKHvmzeFNomaNupPR2CPCGghvt2z2aO5qvdjWf cUfrGgKuScouBu9PXOtSD8xvXzbyTVBtnhx3vNxDKT2WMmGP+vYMnI4djSSDcabTrhTa 6K8A== X-Gm-Message-State: AOAM530fE/XBwRyGHSzFCrasZoiXrNArnNgbUbLNm0dh7F7cK1m8xoTl 10MgJ4HLTF8n3/fDKcs72aCrVxIROxRycYnrjjI= X-Google-Smtp-Source: ABdhPJxKirLMTYB8V+jWrRBU6IVF3AiPVOg+97xHkB306C9+17/LIX73g2p7J8W7gvU/E+zYQ8R5Q3KbdcxySWVjSHg= X-Received: by 2002:ac2:528a:: with SMTP id q10mr16346225lfm.461.1609082107616; Sun, 27 Dec 2020 07:15:07 -0800 (PST) MIME-Version: 1.0 References: <20201227141243.GB1578@tuxteam.de> In-Reply-To: From: Hongyi Zhao Date: Sun, 27 Dec 2020 23:14:56 +0800 Message-ID: Subject: Re: Can't activate orgmode after the installation of its git master version. To: tomas@tuxteam.de Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::12a; envelope-from=hongyi.zhao@gmail.com; helo=mail-lf1-x12a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.02 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=qfYk3XNv; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 48048940149 X-Spam-Score: -3.02 X-Migadu-Scanner: scn1.migadu.com X-TUID: G4Qv5FDyYaKE On Sun, Dec 27, 2020 at 10:57 PM Hongyi Zhao wrote: > > On Sun, Dec 27, 2020 at 10:12 PM wrote: > > > > On Sun, Dec 27, 2020 at 09:34:18PM +0800, Hongyi Zhao wrote: > > > On Ubuntu 20.10, I compiled the latest git master version of emacs, > > > but I can't activate the org-mode command from within it. So I try to install > > > the orgmode using its git repository according to the official guidance [1] as > > > shown below. > > > > > > $ git clone https://code.orgmode.org/bzg/org-mode.git > > > Public/repo/code.orgmode.org/bzg/org-mode.git > > > $ cd code.orgmode.org/bzg/org-mode.git > > > $ make autoloads > > > > > > Then add the following lines into ~/.emacs.d/init.el: > > > > > > (add-to-list 'load-path "~/Public/repo/code.orgmode.org/bzg/org-mode.git/lisp") > > > (add-to-list 'load-path > > > "~/Public/repo/code.orgmode.org/bzg/org-mode.git/contrib/lisp" t) > > > > > > But after I started emacs and issue the instructions 'M-x org-mode RET', I > > > see the following information in the minibuffer: > > > > > > M-x org-mode [No match] > > > > My guess is that org-mode isn't arranged to autoload > > the org library. > > > > Before doing "M-x org-mode" try doing "M-x load-library org ". > > > > If that works, then autoload is your problem. > > Yes. It does the trick. > > > > > (Background: Emacs doesn't load all available libraries: this would > > make startup times too long for things you are probably not going to > > need. Instead, it has a mapping of commands to libraries, to help it > > load the right library whenever that command is seen the first time). > > > > Once we know whether your problem is autoload, we can refine the > > quest. > > Then how should I revise my ~/.emacs.d/init.el to load org library > automatically before enable org-mode? I finally figured out the following initialization code for orgmode based on your above wonderful notes: (add-to-list 'load-path "~/Public/repo/code.orgmode.org/bzg/org-mode.git/lisp") (add-to-list 'load-path "~/Public/repo/code.orgmode.org/bzg/org-mode.git/contrib/lisp" t) (require 'org) Thanks again for your help. Regards -- Assoc. Prof. Hongyi Zhao Theory and Simulation of Materials Hebei Polytechnic University of Science and Technology engineering NO. 552 North Gangtie Road, Xingtai, China