From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Fran=C3=A7ois_Pinard?= Subject: C-c ^ not fully useful Date: Mon, 18 Feb 2013 14:36:57 -0500 Message-ID: <86vc9p1kiu.fsf@iro.umontreal.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:52640) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7WWQ-0007Q1-3b for emacs-orgmode@gnu.org; Mon, 18 Feb 2013 14:37:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U7WWH-0006pV-Uq for emacs-orgmode@gnu.org; Mon, 18 Feb 2013 14:37:06 -0500 Received: from bureau.ubity.com ([64.254.249.42]:50338 helo=mercure.bureau.ubity.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7WWH-0006pG-RI for emacs-orgmode@gnu.org; Mon, 18 Feb 2013 14:36:57 -0500 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi, Org people. "C-c ^" (org-sort) is not as useful to me as I would like it to be. I often have lists in which each item start with a link. When sorting such lists, because of the [[URL][TITLE]] coding, entries are sorted along the domain of the link (the URL), which is useful in itself of course, but often not as comfortable as if the sort was done on TITLE. One could provide a function for extracting the sorting key out of the current line (I did not try this facility yet, I presume this is how it works), so I could likely solve my own problem, as described above. The ideal for me would be that some Lisp function exists to extract the visual line out of the physical line, that is, the line once all invisible parts have been removed. This would take care not only for links, but also for highlighting marks (like =3D~*/) when they happen to be hidden. However, I guess I'm not alone wanting "C-c ^" to do what is most expected. So, these few suggestions: - Could org-sort, by default and for most of its current option letters, sort alphabetically (or lexicographically as they say!) over the visual aspect of the line instead of its physical contents? It might be difficult if Emacs has no function to reach the visual aspect of a line. I guess that most users would expect a visual sort. - Options might be added to sort over the physical contents of the line instead. And there always is M-x sort-lines RET !). - Could some parameterisation be added so one could map user written functions over (free) option letters? Fran=C3=A7ois