org-mode/lisp
Michael Brand d9ac2ffa37 Link to Org file: regard startup view state
* lisp/org.el (org-open-link-from-string): Regard `reference-buffer'
when setting `org-inhibit-startup'.

When opening a link to another Org file not yet opened (first close it
if opened) before this patch:
1) When point is on the line with the link and the line is not a
   heading then the target file is opened with the target file startup
   view state, e. g. the default OVERVIEW.
2) When point is on the heading of the entry of which the link is part
   of then the target file is opened with "SHOW ALL". But it is
   expected to regard the target file startup view state like case 1).
Note: Only in case 2) `org-open-at-point' uses
`org-offer-links-in-entry' and from there `org-open-link-from-string'.

example current buffer with link:
#+BEGIN_SRC org
  ,* section
  ,  [[file:myfile.org::*mytarget]]
#+END_SRC

example target file myfile.org:
#+BEGIN_SRC org
  ,* mytarget
  ,  text
  ,*** subsection
#+END_SRC
2012-01-28 15:48:04 +01:00
..
ob-asymptote.el ob-asymptote: silence byte-compiler 2011-09-25 16:19:27 +02:00
ob-awk.el ob-awk: safer variable expansion 2011-08-28 09:03:19 -06:00
ob-C.el replacing usage of characterp with integerp (which should work w/Emacs22) 2011-09-17 14:52:29 -06:00
ob-calc.el Fix compiler warnings. 2011-10-28 17:26:22 +02:00
ob-clojure.el removed dependency on deprecated swank-clojure 2012-01-13 13:07:54 -07:00
ob-comint.el Remove the "Version" header in Org libraries (leave it in org.el). 2011-08-17 14:42:34 +02:00
ob-css.el Remove the "Version" header in Org libraries (leave it in org.el). 2011-08-17 14:42:34 +02:00
ob-ditaa.el Remove the "Version" header in Org libraries (leave it in org.el). 2011-08-17 14:42:34 +02:00
ob-dot.el Remove the "Version" header in Org libraries (leave it in org.el). 2011-08-17 14:42:34 +02:00
ob-emacs-lisp.el Bug fix in ob-emacs-lisp.el. 2012-01-06 00:31:00 -07:00
ob-eval.el Remove the "Version" header in Org libraries (leave it in org.el). 2011-08-17 14:42:34 +02:00
ob-exp.el Don't insert extra space between inline src block and results on export. 2012-01-27 16:29:03 -07:00
ob-fortran.el Release 7.8.03 2012-01-03 08:31:59 +00:00
ob-gnuplot.el gnuplot, don't quote file names on Windows systems 2011-09-29 06:54:49 -06:00
ob-haskell.el Remove the "Version" header in Org libraries (leave it in org.el). 2011-08-17 14:42:34 +02:00
ob-java.el Remove the "Version" header in Org libraries (leave it in org.el). 2011-08-17 14:42:34 +02:00
ob-js.el backport copyright and license headers from Emacs trunk 2011-08-24 22:32:38 +02:00
ob-keys.el binding new code block header argument helper function to C-c C-v h 2011-10-08 16:38:32 -06:00
ob-latex.el Fix typos. 2012-01-03 09:17:26 +01:00
ob-ledger.el Remove the "Version" header in Org libraries (leave it in org.el). 2011-08-17 14:42:34 +02:00
ob-lilypond.el Remove the "Version" header in Org libraries (leave it in org.el). 2011-08-17 14:42:34 +02:00
ob-lisp.el fix typo 2011-11-15 08:56:25 -07:00
ob-lob.el move `org-babel-lob-one-liner-regexp' into ob.el to fix autoloading error 2012-01-03 09:12:36 +01:00
ob-matlab.el Remove the "Version" header in Org libraries (leave it in org.el). 2011-08-17 14:42:34 +02:00
ob-maxima.el fix compiler warning in ob-maxima.el 2012-01-05 10:31:30 -07:00
ob-mscgen.el Remove the "Version" header in Org libraries (leave it in org.el). 2011-08-17 14:42:34 +02:00
ob-ocaml.el Remove the "Version" header in Org libraries (leave it in org.el). 2011-08-17 14:42:34 +02:00
ob-octave.el ob-octave.el: Add graphical output 2011-12-17 09:04:20 -07:00
ob-org.el Remove the "Version" header in Org libraries (leave it in org.el). 2011-08-17 14:42:34 +02:00
ob-perl.el backport copyright and license headers from Emacs trunk 2011-08-24 22:32:38 +02:00
ob-picolisp.el fix compiler warnings in ob-picolisp 2011-11-29 09:16:14 -07:00
ob-plantuml.el Remove the "Version" header in Org libraries (leave it in org.el). 2011-08-17 14:42:34 +02:00
ob-python.el backport copyright and license headers from Emacs trunk 2011-08-24 22:32:38 +02:00
ob-R.el * lisp/ob-R.el: Added tikzDevice support. 2011-11-28 00:07:46 -07:00
ob-ref.el fixed bug in parsing of arguments to code block references 2011-12-12 17:19:40 -07:00
ob-ruby.el ob-ruby: No longer require inf-ruby when no session evaluation takes place 2011-08-19 08:58:24 -06:00
ob-sass.el Remove the "Version" header in Org libraries (leave it in org.el). 2011-08-17 14:42:34 +02:00
ob-scheme.el backport copyright and license headers from Emacs trunk 2011-08-24 22:32:38 +02:00
ob-screen.el Fix tiny typos. 2012-01-03 09:17:31 +01:00
ob-sh.el Remove the "Version" header in Org libraries (leave it in org.el). 2011-08-17 14:42:34 +02:00
ob-shen.el ob-shen: fix two compilation errors 2011-10-24 20:00:02 -06:00
ob-sql.el adding list of SQL specific header argument names which should be inherited 2011-10-26 06:20:12 -06:00
ob-sqlite.el Remove the "Version" header in Org libraries (leave it in org.el). 2011-08-17 14:42:34 +02:00
ob-table.el Standardized code block keywords 2011-11-15 08:56:24 -07:00
ob-tangle.el better delimiting of Org-mode text preceding a code block 2011-09-16 09:52:34 -06:00
ob.el allow *any* punctuation to proceed an inline src block 2012-01-27 16:21:49 -07:00
org-agenda.el org-agenda.el: Small code cleanup. 2012-01-03 09:19:02 +01:00
org-archive.el Code cleanup up: rename org-on-*-p to org-at-*-p. 2012-01-02 19:52:35 +01:00
org-ascii.el Provide more consistent regexps for headlines 2011-10-23 09:30:13 +02:00
org-attach.el Remove the "Version" header in Org libraries (leave it in org.el). 2011-08-17 14:42:34 +02:00
org-bbdb.el Make Org work with bbdb 3.0 2012-01-03 09:19:08 +01:00
org-beamer.el org-beamer.el: Also recognize \lstinline and \verb as commands that make a frame fragile. 2011-12-20 23:06:39 +01:00
org-bibtex.el improved warnings of bibtex errors during multi-headline export 2011-11-29 08:56:55 -07:00
org-capture.el Code cleanup up: rename org-on-*-p to org-at-*-p. 2012-01-02 19:52:35 +01:00
org-clock.el Fix clock regexps 2012-01-03 09:17:36 +01:00
org-colview-xemacs.el Code cleanup up: rename org-on-*-p to org-at-*-p. 2012-01-02 19:52:35 +01:00
org-colview.el Code cleanup up: rename org-on-*-p to org-at-*-p. 2012-01-02 19:52:35 +01:00
org-compat.el Maintain XEmacs compatibility 2011-10-21 22:36:53 +02:00
org-crypt.el org-crypt: when running org-decrypt-entry', only run auto-save-mode' check if on an encrypted entry 2011-10-08 18:10:37 +02:00
org-ctags.el Replace org-mode-p with usual (eq major-mode 'org-mode) check 2011-10-22 11:29:24 +02:00
org-datetree.el Remove the "Version" header in Org libraries (leave it in org.el). 2011-08-17 14:42:34 +02:00
org-docbook.el Fix compiler warnings. 2011-10-28 17:26:22 +02:00
org-docview.el Remove the "Version" header in Org libraries (leave it in org.el). 2011-08-17 14:42:34 +02:00
org-entities.el Remove the "Version" header in Org libraries (leave it in org.el). 2011-08-17 14:42:34 +02:00
org-eshell.el Release 7.8.03 2012-01-03 08:31:59 +00:00
org-exp-blocks.el org-exp-blocks.el: Fix regexp for matching the end of a block. 2012-01-03 09:14:36 +01:00
org-exp.el Fix typos. 2012-01-03 09:17:26 +01:00
org-faces.el Implement category filtering. 2011-12-31 17:10:44 +01:00
org-feed.el Remove the "Version" header in Org libraries (leave it in org.el). 2011-08-17 14:42:34 +02:00
org-footnote.el org-footnote: Remove opportunity to have inline footnotes at beginning of line 2011-11-06 14:14:36 +01:00
org-freemind.el Fix typos fixed in Emacs trunk. 2011-11-28 15:11:52 +01:00
org-gnus.el Remove the "Version" header in Org libraries (leave it in org.el). 2011-08-17 14:42:34 +02:00
org-habit.el New vars: org-habit-today-glyph, org-habit-completed-glyph 2011-09-21 04:09:49 -05:00
org-html.el org.html: Initialize `html-pre-real-contents' correctly. 2012-01-15 10:28:19 +01:00
org-icalendar.el icalendar: Make alarm duration RFC5545 compliant 2011-08-25 16:39:35 +02:00
org-id.el Replace org-mode-p with usual (eq major-mode 'org-mode) check 2011-10-22 11:29:24 +02:00
org-indent.el org-indent: Handle indentation change with headline manual insertion 2012-01-11 18:46:47 +01:00
org-info.el Remove the "Version" header in Org libraries (leave it in org.el). 2011-08-17 14:42:34 +02:00
org-inlinetask.el org-inlinetask: Small refactoring 2011-09-01 08:49:28 +02:00
org-irc.el Remove the "Version" header in Org libraries (leave it in org.el). 2011-08-17 14:42:34 +02:00
org-jsinfo.el Remove the "Version" header in Org libraries (leave it in org.el). 2011-08-17 14:42:34 +02:00
org-latex.el Code cleanup up: rename org-on-*-p to org-at-*-p. 2012-01-02 19:52:35 +01:00
org-list.el org-list: Change behaviour of C-c C-c at a list item with an argument 2012-01-03 09:19:19 +01:00
org-lparse.el org-lparse.el: don't need to be executable. 2011-12-12 17:24:21 +01:00
org-mac-message.el Remove the "Version" header in Org libraries (leave it in org.el). 2011-08-17 14:42:34 +02:00
org-macs.el Replace org-mode-p with usual (eq major-mode 'org-mode) check 2011-10-22 11:29:24 +02:00
org-mew.el Remove the "Version" header in Org libraries (leave it in org.el). 2011-08-17 14:42:34 +02:00
org-mhe.el Remove the "Version" header in Org libraries (leave it in org.el). 2011-08-17 14:42:34 +02:00
org-mks.el Remove the "Version" header in Org libraries (leave it in org.el). 2011-08-17 14:42:34 +02:00
org-mobile.el Remove the "Version" header in Org libraries (leave it in org.el). 2011-08-17 14:42:34 +02:00
org-mouse.el org-mouse.el: Remove useless commented functions. 2012-01-03 09:16:05 +01:00
org-odt.el org-odt.el: Declare vars and functions from htmlfontify 2012-01-03 09:14:59 +01:00
org-pcomplete.el Remove the "Version" header in Org libraries (leave it in org.el). 2011-08-17 14:42:34 +02:00
org-plot.el Remove the "Version" header in Org libraries (leave it in org.el). 2011-08-17 14:42:34 +02:00
org-protocol.el org-protocol.el: Fix spelling mistake. 2012-01-03 09:12:07 +01:00
org-publish.el Use theindex.inc and theindex.org as described in the manual. 2012-01-03 09:12:30 +01:00
org-remember.el Code cleanup up: rename org-on-*-p to org-at-*-p. 2012-01-02 19:52:35 +01:00
org-rmail.el Remove the "Version" header in Org libraries (leave it in org.el). 2011-08-17 14:42:34 +02:00
org-special-blocks.el Silent a few byte-compiler warnings. 2011-12-12 18:04:15 +01:00
org-src.el Map "screen" to shell-script-mode 2012-01-20 11:47:13 -07:00
org-table.el Fix tiny typos. 2012-01-03 09:17:31 +01:00
org-taskjuggler.el taskjuggler export: take buffer local variables into account 2011-09-07 15:45:14 +02:00
org-timer.el Replace org-mode-p with usual (eq major-mode 'org-mode) check 2011-10-22 11:29:24 +02:00
org-vm.el Remove the "Version" header in Org libraries (leave it in org.el). 2011-08-17 14:42:34 +02:00
org-w3m.el Remove the "Version" header in Org libraries (leave it in org.el). 2011-08-17 14:42:34 +02:00
org-wl.el Remove the "Version" header in Org libraries (leave it in org.el). 2011-08-17 14:42:34 +02:00
org-xoxo.el Remove the "Version" header in Org libraries (leave it in org.el). 2011-08-17 14:42:34 +02:00
org.el Link to Org file: regard startup view state 2012-01-28 15:48:04 +01:00