1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-30 09:00:31 -08:00
emacs/lisp/vc
Š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
..
add-log.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
compare-w.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
cvs-status.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
diff-mode.el Disable enable-local-variables for hunk-only in diff-syntax-fontify-props 2020-03-27 01:44:17 +02:00
diff.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
ediff-diff.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
ediff-help.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
ediff-hook.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
ediff-init.el gnus-shorten-url: Improve and avoid args-out-of-range error 2020-04-13 12:12:00 +02:00
ediff-merg.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
ediff-mult.el gnus-shorten-url: Improve and avoid args-out-of-range error 2020-04-13 12:12:00 +02:00
ediff-ptch.el Remove subsumed repetitions in regexps 2020-02-20 16:05:18 +01:00
ediff-util.el Remove more XEmacs compat code from ediff*.el 2020-03-21 08:11:31 +01:00
ediff-vers.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
ediff-wind.el Remove more XEmacs compat code from ediff*.el 2020-03-21 08:11:31 +01:00
ediff.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
emerge.el
log-edit.el Handle filling of indented ChangeLog function entries 2020-04-04 20:08:02 -04:00
log-view.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
pcvs-defs.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
pcvs-info.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
pcvs-parse.el Remove subsumed repetitions in regexps 2020-02-20 16:05:18 +01:00
pcvs-util.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
pcvs.el Don't write absolute filenames and duplicate strings to CVS ignore files 2020-02-22 10:52:07 +02:00
smerge-mode.el * lisp/vc/smerge-mode.el (smerge-start-session): Don't re-enable 2020-03-18 10:20:13 -04:00
vc-annotate.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
vc-bzr.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
vc-cvs.el * lisp/vc/vc-cvs.el (vc-cvs-ignore): Copy-edit doc string 2020-02-28 17:03:00 +01:00
vc-dav.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
vc-dir.el * lisp/vc/vc-dir.el: Commands to mark un/registered files (bug#34949) 2020-04-03 01:08:09 +03:00
vc-dispatcher.el Support state changing VC operations in dired-mode on files (bug#34949) 2020-02-19 01:35:03 +02:00
vc-filewise.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
vc-git.el Merge from origin/emacs-27 2020-01-15 07:50:22 -08:00
vc-hg.el Merge from origin/emacs-27 2020-02-13 07:50:30 -08:00
vc-hooks.el * lisp/vc/vc-dir.el (vc-dir-root): New command (bug#12492, bug#34949). 2020-03-29 02:08:05 +02:00
vc-mtn.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
vc-rcs.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
vc-sccs.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
vc-src.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
vc-svn.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
vc.el Support state changing VC operations on directories in Dired (bug#34949) 2020-03-30 01:34:47 +03:00