title: Emacs org-mode: textual reference to a file:line
body: <p>I am using <code>org-mode</code> in <code>Emacs</code> to document my development activities. One of the tasks which I must continuously do by hand is to describe areas of code. <code>Emacs</code> has a very nice <a href="http://emacswiki.org/emacs/BookMarks" rel="nofollow noreferrer">Bookmark List</a>: create a bookmark with <kbd>CTRL</kbd>-<kbd>x</kbd> <kbd>r</kbd> <kbd>m</kbd>, list them with <kbd>CTRL</kbd>-<kbd>x</kbd> <kbd>r</kbd> <kbd>l</kbd>. This is very useful, but is not quite what I need.</p>
  
  <p>Org-mode has the concept of link, and the command <code>org-store-link</code> will record a link to the current position in any file, which can be pasted to the org-file. The problem with this is two-fold:</p>
  
  <ul>
  <li>It is stored as an org-link, and the linked position is not directly visible (just the description).</li>
  <li>It is stored in the format <code>file/search</code>, which is not what I want.</li>
  </ul>
  
  <p>I need to have the bookmark in textual form, so that I can copy paste it into org-mode, end edit it if needed, with a simple format like this:</p>
  
  <pre><code>absolute-file-path:line
  </code></pre>
  
  <p>And this must be obtained from the current point position. The workflow would be as simple as:</p>
  
  <ul>
  <li>Go to the position which I want to record</li>
  <li>Call a function: <code>position-to-kill-ring</code> (I would bind this to a keyboard shortcut)</li>
  <li>Go to the <code>org-mode</code> buffer.</li>
  <li>Yank the position.</li>
  <li>Edit if needed (sometimes I need to change absolute paths by relative paths, since my code is in a different location in different machines)</li>
  </ul>
  
  <p>Unfortunately my <code>lisp</code> is non-existent, so I do not know how to do this. Is there a simple solution to my problem?</p>