From mboxrd@z Thu Jan 1 00:00:00 1970 From: Friedrich Delgado Friedrichs Subject: org-mode (recent git) tries to open .c and other plaintext file:// links with less on debian Date: Wed, 7 Apr 2010 17:46:41 +0200 Message-ID: <20100407154639.GA8589@taupan.ath.cx> Reply-To: friedel@nomaden.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NzXSp-00017D-UZ for emacs-orgmode@gnu.org; Wed, 07 Apr 2010 11:46:47 -0400 Received: from [140.186.70.92] (port=53453 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NzXSo-00015t-KA for emacs-orgmode@gnu.org; Wed, 07 Apr 2010 11:46:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NzXSn-0000ow-5c for emacs-orgmode@gnu.org; Wed, 07 Apr 2010 11:46:46 -0400 Received: from dudelab.org ([212.12.33.202]:4281 helo=mail.dudelab.org) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NzXSn-0000oU-0L for emacs-orgmode@gnu.org; Wed, 07 Apr 2010 11:46:45 -0400 Received: from abrasax.taupan.ath.cx (p5DE8B477.dip.t-dialin.net [93.232.180.119]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "Friedrich Delgado Friedrichs", Issuer "User CA" (not verified)) by mail.dudelab.org (Postfix) with ESMTP id 7E67D228148 for ; Wed, 7 Apr 2010 17:48:47 +0200 (CEST) Content-Disposition: inline List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Emacs-orgmode mailing list Hi! I just wondered why my file links to c-sources would not work any more: [[file:~/anon-vc/emacs/src/emacs.c::fatal_error_signal%20sig][file:~/anon-vc/emacs/src/emacs.c::fatal_error_signal sig]] until I looked what org-open-file does with edebug and noticed it tries to handle the file according to its mailcap entry. Which is, on my debian testing systems: text/plain; less '%s'; needsterminal which makes a lot of sense when I try to open a plaintext file attachment e.g. with mutt. >From emacs, not so good. Indeed, M-x list-processes lists a less process: Proc Status Buffer Tty Command ---- ------ ------ --- ------- less /home/fdf/anon-vc/emacs/src/emacs.c run (none) /dev/pts/6 /usr/bin/zsh -c less /home/fdf/anon-vc/emacs/src/emacs.c -- Friedrich Delgado Friedrichs TauPan on Ircnet and Freenode ;)