From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id /J/4DBqh6F9+EQAA0tVLHw (envelope-from ) for ; Sun, 27 Dec 2020 14:58:34 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id WAF7CBqh6F/WPQAA1q6Kng (envelope-from ) for ; Sun, 27 Dec 2020 14:58:34 +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 71228940149 for ; Sun, 27 Dec 2020 14:58:33 +0000 (UTC) Received: from localhost ([::1]:44280 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ktXVA-0000PQ-EG for larch@yhetil.org; Sun, 27 Dec 2020 09:58:32 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57686) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktXUZ-0000P7-AF for Emacs-orgmode@gnu.org; Sun, 27 Dec 2020 09:57:55 -0500 Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135]:37923) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ktXUP-0001Lg-3a for Emacs-orgmode@gnu.org; Sun, 27 Dec 2020 09:57:55 -0500 Received: by mail-lf1-x135.google.com with SMTP id h205so18787635lfd.5 for ; Sun, 27 Dec 2020 06:57:44 -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=BDCoTWzE06O4rrdLo1ivYG/N5eWW0470fPIa4hQsBKI=; b=aWmXq9vcU4Iji1V8Vasx7dZTLGfN+qDXTGLsIqjGafJcHBb55FtomTb4h8fNh6i+3q s678OuoNwitFX1ct12e7bIHP2LAvPqHK8Vs+fzQEByOexPTjUVVCY9IGf11EshOVf2au PPtBvv5J/HcWWGG7GMaZ1yYx5rwGv+lv/WlIjWnfmd9hGgvzzafz5wY3XKdZGURii078 COabCC1JsSEexgzkO6opsmwyIj/8HmDryiaOlDP0yPM2K/P+y6asNFFDgYgfn4rjsvFf E5uBlxUoYrSA3BRCSoRzDZ7bgXtK253JC1rj9PLvXA+W1J8Q/nWEbc/h+Jb8lsCa/tOg opqQ== 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=BDCoTWzE06O4rrdLo1ivYG/N5eWW0470fPIa4hQsBKI=; b=A5LcA8W/8NTyzjfPQ5gaQ2Gsp32S7iE0NqRxcVVYsNJvnVrDZkup0VtCSu/DYlzpjz 4gt/HtOldYJQ/QrF/Y3lw8f1eu9GFaJFLMwE+FKLrhD77StBsbfdkAbphRHHLi02BF1I omXAWJVZ9Rl6hcIwX0HvvQW4jKbwz9peYfkVRhNxY8+JU6d6iOoHV2xEOLmEYMhaDf8v MR95mH+RmTVd1L4y7B3w9QlDOekDeNZDKEp9WsOUZYDE1yH2EZBtwBQ+hbpOT03F0k4V kFIlHqutqr2TcIoI2h9wYBLiOY2oVa637yF28eqVHBfCYSry4j0f2weTeU54l3aD/+ue tRUQ== X-Gm-Message-State: AOAM531ONJ/HibmAAWAKI2EmqAy72LULZU39g4+5JXCQVkGIhzW8sgMi 0Wjr59n7QSVHgZOyA2abvGqBhxPx6CnJ54WeOW0= X-Google-Smtp-Source: ABdhPJwoiXdr2C2D8ENvWVy10qfBqvFXwEOnPUBYFlUzIHZgpR6u68s7EFSk8/pEJkwJEEVJ10/bFwkgDzOsEFTF/6o= X-Received: by 2002:a2e:5756:: with SMTP id r22mr21783037ljd.481.1609081063149; Sun, 27 Dec 2020 06:57:43 -0800 (PST) MIME-Version: 1.0 References: <20201227141243.GB1578@tuxteam.de> In-Reply-To: <20201227141243.GB1578@tuxteam.de> From: Hongyi Zhao Date: Sun, 27 Dec 2020 22:57:31 +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::135; envelope-from=hongyi.zhao@gmail.com; helo=mail-lf1-x135.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=unavailable 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=aWmXq9vc; 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: 71228940149 X-Spam-Score: -3.02 X-Migadu-Scanner: scn1.migadu.com X-TUID: hHvZ6/KMJEmx 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? 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