org-mode/lisp
Max Nikulin 69b36beac7
ol.el: Always prompt for description in `org-insert-link'
* lisp/ol.el (org-insert-link): Do not bypass code trying to generated
description and prompt user when link path and description are
identical.  Make behavior of description prompt more consistent.

Remove confusing `auto-desc' local variable.  Originally the variable
was added with implementation of completion of stored link target by the
description in the commit 1e34c5d34 Bastien Guerry, "org.el: Fontify
links to current buffer when inserting a link",
2012-08-03 14:08:20 +0200.  The feature was broken soon by the commit
7f096ad37 Tony Day, "org-insert-link: Use ido when inserting links",
2012-10-12 14:39:53 +1100.  Last decade users were not asked to edit
description in the case of the same link target and description
(a remained side effect of 1e34c5d34).  Recent commit 0432f4fe6 Max
Nikulin, "ol.el: Restore complete by description for insert link",
2022-09-10 17:23:13 +0700 restored completion by description.
Due to the commit 4fc2c8dd8 Ihor Radchenko, "org-store-link: Default to
empty description for target/custom-id links", 2022-08-10 13:25:26 +0800
description identical to link path became a more rare case.

An alternative would be fixing condition to allow users to edit
description when it is the same as the path, but use stored description
without additional interaction when the link is chosen by description
completion.  Despite it was likely the original intention, always asking
the user to confirm or edit description may be more consistent behavior.
2022-09-16 11:49:05 +08:00
..
Makefile Move link-related core functions out of "org.el" 2019-03-10 18:00:27 +01:00
ob-C.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-R.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-awk.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-calc.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-clojure.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-comint.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-core.el testing: Make all files use `lexical-binding` 2022-09-15 19:17:19 +08:00
ob-css.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-ditaa.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-dot.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-emacs-lisp.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-eshell.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-eval.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-exp.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-forth.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-fortran.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-gnuplot.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-groovy.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-haskell.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-java.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-js.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-julia.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-latex.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-lilypond.el Fix Emacs 29 compiler warnings 2022-09-06 20:50:59 +08:00
ob-lisp.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-lob.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-lua.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-makefile.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-matlab.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-maxima.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-ocaml.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-octave.el Fix Emacs 29 compiler warnings 2022-09-06 20:50:59 +08:00
ob-org.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-perl.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-plantuml.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-processing.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-python.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-ref.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-ruby.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-sass.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-scheme.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-screen.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-sed.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-shell.el ob-shell: Use `process-file' when stdin or cmdline 2022-09-05 18:31:39 +08:00
ob-sql.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-sqlite.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-table.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-tangle.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
oc-basic.el Fix Emacs 29 compiler warnings 2022-09-06 20:50:59 +08:00
oc-biblatex.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
oc-bibtex.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
oc-csl.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
oc-natbib.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
oc.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ol-bbdb.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ol-bibtex.el Fix Emacs 29 compiler warnings 2022-09-06 20:50:59 +08:00
ol-docview.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ol-doi.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ol-eshell.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ol-eww.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ol-gnus.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ol-info.el ol-info: Use org function instead of subr-x 2022-09-05 14:33:32 +08:00
ol-irc.el Fix Emacs 29 compiler warnings 2022-09-06 20:50:59 +08:00
ol-man.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ol-mhe.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ol-rmail.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ol-w3m.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ol.el ol.el: Always prompt for description in `org-insert-link' 2022-09-16 11:49:05 +08:00
org-agenda.el Fix Emacs 29 compiler warnings 2022-09-06 20:50:59 +08:00
org-archive.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
org-attach-git.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
org-attach.el lisp/ox.el: Rename abnormal hook names to end with "-functions" 2022-09-06 21:42:11 +08:00
org-capture.el Fix Emacs 29 compiler warnings 2022-09-06 20:50:59 +08:00
org-clock.el org-clock: Make quarter work as parameter for :step in clocktable 2022-09-09 21:02:56 +08:00
org-colview.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
org-compat.el Do not assert Org version in root Org libraries 2022-09-15 12:28:57 +08:00
org-crypt.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
org-ctags.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
org-cycle.el Fix Emacs 29 compiler warnings 2022-09-06 20:50:59 +08:00
org-datetree.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
org-duration.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
org-element.el Fix Emacs 29 compiler warnings 2022-09-06 20:50:59 +08:00
org-entities.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
org-faces.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
org-feed.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
org-fold-core.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
org-fold.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
org-footnote.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
org-goto.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
org-habit.el Fix Emacs 29 compiler warnings 2022-09-06 20:50:59 +08:00
org-id.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
org-indent.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
org-inlinetask.el Fix Emacs 29 compiler warnings 2022-09-06 20:50:59 +08:00
org-keys.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
org-lint.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
org-list.el Fix Emacs 29 compiler warnings 2022-09-06 20:50:59 +08:00
org-macro.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
org-macs.el Do not assert Org version in root Org libraries 2022-09-15 12:28:57 +08:00
org-mobile.el Fix Emacs 29 compiler warnings 2022-09-06 20:50:59 +08:00
org-mouse.el Fix Emacs 29 compiler warnings 2022-09-06 20:50:59 +08:00
org-num.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
org-pcomplete.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
org-persist.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
org-plot.el Fix Emacs 29 compiler warnings 2022-09-06 20:50:59 +08:00
org-protocol.el testing: Make all files use `lexical-binding` 2022-09-15 19:17:19 +08:00
org-refile.el Fix Emacs 29 compiler warnings 2022-09-06 20:50:59 +08:00
org-src.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
org-table.el Fix Emacs 29 compiler warnings 2022-09-06 20:50:59 +08:00
org-tempo.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
org-timer.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
org.el * lisp/org.el (org-log-beginning): Fix parens 2022-09-15 19:23:52 +08:00
ox-ascii.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ox-beamer.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ox-html.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ox-icalendar.el ox-icalendar.el: Customize vevent summary prefix 2022-09-08 13:29:00 +08:00
ox-koma-letter.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ox-latex.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ox-man.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ox-md.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ox-odt.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ox-org.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ox-publish.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ox-texinfo.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ox.el lisp/ox.el: Rename abnormal hook names to end with "-functions" 2022-09-06 21:42:11 +08:00