From mboxrd@z Thu Jan 1 00:00:00 1970 From: mgcyung Subject: adaptive with nonabbrev for org-link-file-path-type Date: Fri, 19 Apr 2019 09:41:34 +0800 Message-ID: <87r29ybwkx.wl-mgcyung@gmail.com> Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([209.51.188.92]:44574) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hHIX8-0002Pu-4J for emacs-orgmode@gnu.org; Thu, 18 Apr 2019 21:41:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hHIX7-0001Y3-7V for emacs-orgmode@gnu.org; Thu, 18 Apr 2019 21:41:42 -0400 Received: from mail-pg1-x529.google.com ([2607:f8b0:4864:20::529]:36780) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hHIX7-0001WO-1w for emacs-orgmode@gnu.org; Thu, 18 Apr 2019 21:41:41 -0400 Received: by mail-pg1-x529.google.com with SMTP id 85so1992920pgc.3 for ; Thu, 18 Apr 2019 18:41:40 -0700 (PDT) Received: from localhost.gmail.com (107.182.30.90.16clouds.com. [107.182.30.90]) by smtp.gmail.com with ESMTPSA id b63sm10962972pfj.54.2019.04.18.18.41.36 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 18 Apr 2019 18:41:38 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Hello everyone, When the 'org-link-file-path-type' is 'adaptive', a path of file under home directory or its subdirectory started with tilde ('~') such as '~/test/1.png'. How to combine nonabbrev with adaptive that expands the tilde such as '/home/alpha/test/1.png' C-h v org-link-file-path-type says ------------------------------------------------------------ org-link-file-path-type is a variable defined in `org.el'. Its value is adaptive Documentation: How the path name in file links should be stored. Valid values are: relative Relative to the current directory, i.e. the directory of the file into which the link is being inserted. absolute Absolute path, if possible with ~ for home directory. noabbrev Absolute path, no abbreviation of home directory. adaptive Use relative path for files in the current directory and sub- directories of it. For other files, use an absolute path.