1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-26 15:21:51 -08:00
emacs/lisp/gnus
Štěpán Němec 188bd80a90 gnus-shorten-url: Improve and avoid args-out-of-range error
'gnus-shorten-url' (used by 'gnus-summary-browse-url') ignored
fragment identifiers and didn't check substring bounds, in some cases
leading to runtime errors, e.g.:

  (gnus-shorten-url "https://some.url.with/path/and#also_a_long_target" 40)
  ;; => Lisp error: (args-out-of-range "/path/and" -18 nil)

This commit makes it account for #fragments and fixes faulty string
computation, reusing existing helper function.  (bug#39980)

* lisp/vc/ediff-init.el (ediff-truncate-string-left): Rename to
'string-truncate-left' and move...
* lisp/emacs-lisp/subr-x.el (string-truncate-left):  ...here.
All callers changed.
* lisp/gnus/gnus-sum.el (gnus-shorten-url): Fix args-out-of-range
error, don't drop #fragments, use 'string-truncate-left'.
2020-04-13 12:12:00 +02:00
..
.dir-locals.el
canlock.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
ChangeLog.1 Update copyright year to 2020 2020-01-01 00:59:52 +00:00
ChangeLog.2 Update copyright year to 2020 2020-01-01 00:59:52 +00:00
ChangeLog.3 Update copyright year to 2020 2020-01-01 00:59:52 +00:00
deuglify.el Remove subsumed repetitions in regexps 2020-02-20 16:05:18 +01:00
gmm-utils.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-agent.el Make sure that all gnus buffers are killed on exit 2020-01-28 09:47:52 -05:00
gnus-art.el ; bug#39779: Fix some typos in documentation. 2020-02-28 15:21:55 +02:00
gnus-async.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-bcklg.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-bookmark.el Make sure that all gnus buffers are killed on exit 2020-01-28 09:47:52 -05:00
gnus-cache.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-cite.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-cloud.el Add ‘nofollow’ flag to set-file-times 2020-03-07 12:15:43 -08:00
gnus-cus.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-delay.el Remove the Date header from message-draft-headers 2020-03-20 11:39:44 -07:00
gnus-demon.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-diary.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-dired.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-draft.el Make sure that all gnus buffers are killed on exit 2020-01-28 09:47:52 -05:00
gnus-dup.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-eform.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-fun.el Merge from origin/emacs-27 2020-01-01 01:08:16 +00:00
gnus-gravatar.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-group.el * lisp/gnus/gnus-start.el (gnus-group-change-level): Simplify 2020-01-04 18:07:23 -05:00
gnus-html.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-icalendar.el Make sure that all gnus buffers are killed on exit 2020-01-28 09:47:52 -05:00
gnus-int.el Make sure that all gnus buffers are killed on exit 2020-01-28 09:47:52 -05:00
gnus-kill.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-logic.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-mh.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-ml.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-mlspl.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-msg.el Ensure that gnus-summary-attach-article finds the right articles 2020-01-18 13:55:18 -08:00
gnus-notifications.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-picon.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-range.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-registry.el * lisp/gnus/gnus-registry.el: Use lexical-binding 2020-03-27 16:38:52 -04:00
gnus-rfc1843.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-salt.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-score.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-sieve.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-spec.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-srvr.el Make sure that all gnus buffers are killed on exit 2020-01-28 09:47:52 -05:00
gnus-start.el Fix some file-modes races 2020-02-19 13:48:27 -08:00
gnus-sum.el gnus-shorten-url: Improve and avoid args-out-of-range error 2020-04-13 12:12:00 +02:00
gnus-topic.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-undo.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-util.el Add 'nofollow' flag to set-file-modes etc. 2020-02-23 16:45:50 -08:00
gnus-uu.el Fix some file-modes races 2020-02-19 13:48:27 -08:00
gnus-vm.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-win.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus.el fix bug#39344 2020-01-29 11:17:50 -05:00
gssapi.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
legacy-gnus-agent.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
mail-source.el Add 'nofollow' flag to set-file-modes etc. 2020-02-23 16:45:50 -08:00
message.el Remove the Date header from message-draft-headers 2020-03-20 11:39:44 -07:00
mm-archive.el Fix some file-modes races 2020-02-19 13:48:27 -08:00
mm-bodies.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
mm-decode.el Add 'nofollow' flag to set-file-modes etc. 2020-02-23 16:45:50 -08:00
mm-encode.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
mm-extern.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
mm-partial.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
mm-url.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
mm-util.el Correct "different than" to "different from" where appropriate 2020-02-09 14:33:14 +00:00
mm-uu.el Add and remove backslashes in regexps 2020-02-20 16:03:30 +01:00
mm-view.el Wrap some set-auto-mode calls with delay-mode-hooks (bug#39190) 2020-02-06 00:38:53 +02:00
mml-sec.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
mml-smime.el Move “Fix some broken conditional forms” to master 2020-01-05 11:50:31 -08:00
mml.el Make previous mml-expand-html-into-multipart-related fix more general 2020-03-14 12:45:03 +01:00
mml1991.el prune the overly cavalier "kill all gnus buffers exit" 2020-01-30 11:28:30 -05:00
mml2015.el prune the overly cavalier "kill all gnus buffers exit" 2020-01-30 11:28:30 -05:00
nnagent.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
nnbabyl.el nnmail-cache-close should not use nofollow 2020-02-26 17:10:48 -08:00
nndiary.el nnmail-cache-close should not use nofollow 2020-02-26 17:10:48 -08:00
nndir.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
nndoc.el Make sure that all gnus buffers are killed on exit 2020-01-28 09:47:52 -05:00
nndraft.el Make sure that all gnus buffers are killed on exit 2020-01-28 09:47:52 -05:00
nneething.el Make sure that all gnus buffers are killed on exit 2020-01-28 09:47:52 -05:00
nnfolder.el nnmail-cache-close should not use nofollow 2020-02-26 17:10:48 -08:00
nngateway.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
nnheader.el * lisp/gnus/nnmaildir.el: Fix O(n^2) problem when leaving a group 2020-02-14 11:05:57 -05:00
nnimap.el Make sure that all gnus buffers are killed on exit 2020-01-28 09:47:52 -05:00
nnir.el When searching a topic in Gnus, search all topic's groups 2020-02-14 11:56:58 -08:00
nnmail.el nnmail-cache-close should not use nofollow 2020-02-26 17:10:48 -08:00
nnmaildir.el * lisp/gnus/nnmaildir.el: Fix O(n^2) problem when leaving a group 2020-02-14 11:05:57 -05:00
nnmairix.el Make sure that all gnus buffers are killed on exit 2020-01-28 09:47:52 -05:00
nnmbox.el nnmail-cache-close should not use nofollow 2020-02-26 17:10:48 -08:00
nnmh.el Make sure that all gnus buffers are killed on exit 2020-01-28 09:47:52 -05:00
nnml.el nnmail-cache-close should not use nofollow 2020-02-26 17:10:48 -08:00
nnnil.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
nnoo.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
nnregistry.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
nnrss.el Make sure that all gnus buffers are killed on exit 2020-01-28 09:47:52 -05:00
nnspool.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
nntp.el Make sure that all gnus buffers are killed on exit 2020-01-28 09:47:52 -05:00
nnvirtual.el Make sure that all gnus buffers are killed on exit 2020-01-28 09:47:52 -05:00
nnweb.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
score-mode.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
smiley.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
smime.el prune the overly cavalier "kill all gnus buffers exit" 2020-01-30 11:28:30 -05:00
spam-report.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
spam-stat.el ; bug#39779: Fix some typos in documentation. 2020-02-28 15:21:55 +02:00
spam-wash.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
spam.el Merge from origin/emacs-27 2020-01-01 01:08:16 +00:00