GNU bug report logs -
#19663
24.4: eww.el delete entry from history list
Previous Next
Reported by: Boruch Baum <boruch_baum <at> gmx.com>
Date: Fri, 23 Jan 2015 15:58:02 UTC
Severity: wishlist
Tags: notabug
Found in version 24.4
Done: Lars Ingebrigtsen <larsi <at> gnus.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 19663 in the body.
You can then email your comments to 19663 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#19663
; Package
emacs
.
(Fri, 23 Jan 2015 15:58:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Boruch Baum <boruch_baum <at> gmx.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Fri, 23 Jan 2015 15:58:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
I found it desirable to be able to delete entries from the history list.
Following is the code that seems to work for me:
(defun eww-history-delete-entry ()
"Delete an entry from the eww history list"
(interactive)
(cond
((equal (buffer-name) "*eww history*")
(setq
current-point (point)
current-line (- (line-number-at-pos (point-max))
(line-number-at-pos)))
(with-current-buffer "*eww*"
(setq eww-history (append
(butlast eww-history current-line)
(last eww-history (1- current-line))))
eww-history-position
(min eww-history-position (1- current-line))
(eww-list-histories)
(goto-char current-point)))
((equal (buffer-name) "*eww*")
(setq
current-entry (- (length eww-history)
eww-history-position)
eww-history (append
(butlast eww-history current-entry)
(last eww-history (1- current-entry))))
(when (eq current-entry 1)
(setq eww-history-position (1- eww-history-position))\
)
(eww-restore-history
(elt eww-history eww-history-position))
(when (get-buffer "*eww history*")
(eww-list-histories)))
(t
(user-error "Current buffer is neither the eww buffer, \
nor the eww history buffer"))))
--
hkp://keys.gnupg.net
CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0
[signature.asc (application/pgp-signature, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#19663
; Package
emacs
.
(Sun, 25 Jan 2015 02:50:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 19663 <at> debbugs.gnu.org (full text, mbox):
Boruch Baum <boruch_baum <at> gmx.com> writes:
> I found it desirable to be able to delete entries from the history list.
This might be nice for debugging purposes, but I don't really see the
need as a user command. Closing.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
Added tag(s) notabug.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sun, 25 Jan 2015 02:51:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
19663 <at> debbugs.gnu.org and Boruch Baum <boruch_baum <at> gmx.com>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sun, 25 Jan 2015 02:51:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#19663
; Package
emacs
.
(Sun, 25 Jan 2015 07:16:01 GMT)
Full text and
rfc822 format available.
Message #15 received at 19663 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On 01/24/2015 09:48 PM, Lars Ingebrigtsen wrote:
> Boruch Baum <boruch_baum <at> gmx.com> writes:
>
>> I found it desirable to be able to delete entries from the history list.
>
> This might be nice for debugging purposes, but I don't really see the
> need as a user command. Closing.
>
Please reconsider. The use case (my use case) is someone downlaoding
many pages for offline reading. Once offline, I browse the history list
for whatever I want to read first. Once a page is read, I delete it from
the history list. very useful for me.
--
hkp://keys.gnupg.net
CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0
[signature.asc (application/pgp-signature, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#19663
; Package
emacs
.
(Mon, 26 Jan 2015 01:59:02 GMT)
Full text and
rfc822 format available.
Message #18 received at 19663 <at> debbugs.gnu.org (full text, mbox):
Boruch Baum <boruch_baum <at> gmx.com> writes:
> On 01/24/2015 09:48 PM, Lars Ingebrigtsen wrote:
>> Boruch Baum <boruch_baum <at> gmx.com> writes:
>>
>>> I found it desirable to be able to delete entries from the history list.
>>
>> This might be nice for debugging purposes, but I don't really see the
>> need as a user command. Closing.
>>
> Please reconsider. The use case (my use case) is someone downlaoding
> many pages for offline reading. Once offline, I browse the history list
> for whatever I want to read first. Once a page is read, I delete it from
> the history list. very useful for me.
Well, in that case you can just `C-x C-q' to make the buffer
non-read-only, and then kill off the lines you've read with `C-k', I
think?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#19663
; Package
emacs
.
(Mon, 26 Jan 2015 06:25:02 GMT)
Full text and
rfc822 format available.
Message #21 received at 19663 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On 01/25/2015 08:57 PM, Lars Ingebrigtsen wrote:
> Boruch Baum <boruch_baum <at> gmx.com> writes:
>
>> On 01/24/2015 09:48 PM, Lars Ingebrigtsen wrote:
>>> Boruch Baum <boruch_baum <at> gmx.com> writes:
>>>
>>>> I found it desirable to be able to delete entries from the history list.
>>>
>>> This might be nice for debugging purposes, but I don't really see the
>>> need as a user command. Closing.
>>>
>> Please reconsider. The use case (my use case) is someone downlaoding
>> many pages for offline reading. Once offline, I browse the history list
>> for whatever I want to read first. Once a page is read, I delete it from
>> the history list. very useful for me.
>
> Well, in that case you can just `C-x C-q' to make the buffer
> non-read-only, and then kill off the lines you've read with `C-k', I
> think?
>
That won't work in that the next time one presses H from the eww buffer
(eww-list-histories), any entries deleted with c-k will re-appear.
--
hkp://keys.gnupg.net
CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0
[signature.asc (application/pgp-signature, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#19663
; Package
emacs
.
(Mon, 26 Jan 2015 06:41:03 GMT)
Full text and
rfc822 format available.
Message #24 received at 19663 <at> debbugs.gnu.org (full text, mbox):
Boruch Baum <boruch_baum <at> gmx.com> writes:
> That won't work in that the next time one presses H from the eww buffer
> (eww-list-histories), any entries deleted with c-k will re-appear.
Well, don't do that. >"? Or rename the history buffer so that a new
one will be created.
Using separate eww buffers instead of using the history (for offline
use) may also be simpler.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 23 Feb 2015 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 10 years and 120 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.