GNU bug report logs -
#9276
23.3; quickurl-add-url saves truncated list when url list length exceeds print-length
Previous Next
Reported by: David Biesack <sasdjb <at> d72933.na.sas.com>
Date: Wed, 10 Aug 2011 15:43:02 UTC
Severity: normal
Found in version 23.3
Fixed in version 24.4
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 9276 in the body.
You can then email your comments to 9276 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#9276
; Package
emacs
.
(Wed, 10 Aug 2011 15:43:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
David Biesack <sasdjb <at> d72933.na.sas.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Wed, 10 Aug 2011 15:43:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Start emacs -q
backup your ~/.quickurls file if you have one.
M-x load-library quickurl
M-x eval-expression
(setq print-length 10)
In *scratch* insert the text
manual0 http://www.gnu.org/software/emacs/manual0
manual1 http://www.gnu.org/software/emacs/manual1
manual2 http://www.gnu.org/software/emacs/manual2
manual3 http://www.gnu.org/software/emacs/manual3
manual4 http://www.gnu.org/software/emacs/manual4
manual5 http://www.gnu.org/software/emacs/manual5
manual6 http://www.gnu.org/software/emacs/manual6
manual7 http://www.gnu.org/software/emacs/manual7
manual8 http://www.gnu.org/software/emacs/manual8
manual9 http://www.gnu.org/software/emacs/manual9
manuala http://www.gnu.org/software/emacs/manuala
Place point before each "http" and do:
M-x quickurl-add-url
After the length exceeds 10, the add operation will fail with
quickurl-url-comment: Wrong type argument: listp, \.\.\.
and future sessions will also fail to load the .quickurls file because
it contains a shorted list with "..." in it:
;; -*- lisp -*-
(("manual0" "http://www.gnu.org/software/emacs/manual0")
("manual1" "http://www.gnu.org/software/emacs/manual1")
("manual2" "http://www.gnu.org/software/emacs/manual2")
("manual3" "http://www.gnu.org/software/emacs/manual3")
("manual4" "http://www.gnu.org/software/emacs/manual4")
("manual5" "http://www.gnu.org/software/emacs/manual5")
("manual6" "http://www.gnu.org/software/emacs/manual6")
("manual7" "http://www.gnu.org/software/emacs/manual7")
("manual8" "http://www.gnu.org/software/emacs/manual8")
("manual9" "http://www.gnu.org/software/emacs/manual9")
...)
The fix is trivial - bind print-length to nil in quickurl-save-urls.
See this patch.
d72933. # diff -c quickurl.el.orig quickurl.el
*** quickurl.el.orig Wed Aug 10 09:20:24 2011
--- quickurl.el Wed Aug 10 09:21:27 2011
***************
*** 268,274 ****
(defun quickurl-save-urls ()
"Save the contents of `quickurl-urls' to `quickurl-url-file'."
(with-temp-buffer
! (let ((standard-output (current-buffer)))
(princ quickurl-prefix)
(pp quickurl-urls)
(princ quickurl-postfix)
--- 268,275 ----
(defun quickurl-save-urls ()
"Save the contents of `quickurl-urls' to `quickurl-url-file'."
(with-temp-buffer
! (let ((standard-output (current-buffer))
! (print-length nil))
(princ quickurl-prefix)
(pp quickurl-urls)
(princ quickurl-postfix)
In GNU Emacs 23.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.22.0)
of 2011-03-30 on Hippie
Windowing system distributor `The X.Org Foundation', version 11.0.10900000
configured using `configure '--prefix=/u/sasdjb/ubuntu''
Important settings:
value of $LC_ALL: C
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: en_US.UTF-8
value of $XMODIFIERS: nil
locale-coding-system: nil
default enable-multibyte-characters: t
Major mode: Lisp Interaction
Minor modes in effect:
tooltip-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Recent input:
<return> <return> C-x C-f ~ / . q u i c k u r SPC <backspace>
<tab> <return> M-> M-< M-> <help-echo> <help-echo>
C-x <escape> <escape> C-g C-g C-x b * s c SPC <return>
C-e <return> <return> C-y C-p <M-return> C-j C-n C-e
C-j <return> M-x q r l <return> u p l SPC <return>
C-a C-d C-e <backspace> C-a C-SPC C-e C-w M-x c u s
t r o m i z <backspace> <backspace> <backspace> <backspace>
<backspace> o m i z e - h r SPC <backspace> <backspace>
g SPC <return> q u i c k u r l <return> <help-echo>
<help-echo> <down-mouse-1> <mouse-1> <down-mouse-1>
<mouse-1> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <down-mouse-1> <mouse-1> C-h v p r i n
t - l e SPC n g t h <return> <help-echo> <help-echo>
<help-echo> <down-mouse-1> <mouse-1> C-x <escape> <escape>
C-g C-g M-x c u s t o C-g C-g M-x s e t - v a r SPC
<return> p r i n t - l e n SPC g t h SPC C-g C-x b
* s c SPC <return> ( s e t q SPC p r i n t - l e n
g t h SPC 1 0 ) C-e C-j <help-echo> <down-mouse-1>
<mouse-1> <down-mouse-1> <mouse-1> <M-backspace> x
x x M-x q r l <backspace> <backspace> u i c k - u r
l - a d d SPC <return> <backspace> <backspace> <backspace>
M-b <backspace> C-e a d SPC SPC <return> C-f M-x q
r l - a d SPC <return> <return> <return> <return> <help-echo>
<down-mouse-1> <mouse-1> C-x C-f ~ / . q u i c k u
r l s <return> y e s <return> <help-echo> <help-echo>
<down-mouse-1> <mouse-1> M-x r e p o r t - b SPC <
return>
Recent messages:
Creating group state...
Creating group... done
Creating customization items ...done
Resetting customization items...done
Creating customization setup...done
Making completion list...
Type C-x 1 to delete the help window.
Quit [5 times]
beginning-of-thing: No url here
Added http://sww.sas.com/saspedia/Help:Uploading
Load-path shadows:
None found.
Features:
(shadow sort mail-extr message sendmail regexp-opt ecomplete rfc822 mml
mml-sec ...)
--
David J. Biesack, SAS
SAS Campus Dr. Cary, NC 27513
www.sas.com (919) 531-7771
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#9276
; Package
emacs
.
(Sun, 14 Aug 2011 19:29:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 9276 <at> debbugs.gnu.org (full text, mbox):
David Biesack <sasdjb <at> d72933.na.sas.com> writes:
> backup your ~/.quickurls file if you have one.
> M-x load-library quickurl
> M-x eval-expression
> (setq print-length 10)
Could you explain why you want to do that? Changing print-length is
likely to mess up other parts of Emacs, not just quickurl.el.
If you have code that needs to set print-length, the variable should be
let-bound over the minimum necessary piece of code. Changing all the
places we need to `print' to let-bind print-length to nil would be
counterproductive.
Reply sent
to
Glenn Morris <rgm <at> gnu.org>
:
You have taken responsibility.
(Thu, 14 Feb 2013 07:53:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
David Biesack <sasdjb <at> d72933.na.sas.com>
:
bug acknowledged by developer.
(Thu, 14 Feb 2013 07:53:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 9276-done <at> debbugs.gnu.org (full text, mbox):
Version: 24.4
Thanks; applied.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 14 Mar 2013 11:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 12 years and 184 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.