* small rcirc suggestion
@ 2006-11-15 10:55 Nic James Ferrier
2006-11-15 11:26 ` Aidan Kehoe
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Nic James Ferrier @ 2006-11-15 10:55 UTC (permalink / raw)
I know we're heading for release and this is not intended to disrupt
that in anyway... but I can't see where else to send this suggestion.
I find that I visit the same irc servers all the time and I'd like
history to reflect that:
diff -u /home/nferrier/rcirc.el\~ /home/nferrier/rcirc.el
--- /home/nferrier/rcirc.el~ 2006-11-15 00:05:27.000000000 +0000
+++ /home/nferrier/rcirc.el 2006-11-15 10:37:02.000000000 +0000
@@ -319,19 +319,13 @@
(defconst rcirc-id-string (concat "rcirc on GNU Emacs " emacs-version))
\f
(defvar rcirc-startup-channels nil)
-
-(defun rcirc-available-servers-to-alist ()
-
- )
;;;###autoload
(defun rcirc (arg)
"Connect to IRC.
If ARG is non-nil, prompt for a server to connect to."
(interactive "P")
(if arg
- (let* ((server (completing-read "IRC Server: "
- (rcirc-defined-servers-to-alist)
- rcirc-default-server))
+ (let* ((server (read-string "IRC Server: " rcirc-default-server))
(port (read-string "IRC Port: " (number-to-string rcirc-default-port)))
(nick (read-string "IRC Nick: " rcirc-default-nick))
(channels (split-string
What would be really nice if history were persisted over emacs
invocations. Could one make history variables customizations and auto
save them?
--
Nic Ferrier
http://www.tapsellferrier.co.uk for all your tapsell ferrier needs
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: small rcirc suggestion
2006-11-15 10:55 small rcirc suggestion Nic James Ferrier
@ 2006-11-15 11:26 ` Aidan Kehoe
2006-11-15 12:22 ` Reiner Steib
2006-11-15 15:24 ` Stuart D. Herring
2006-11-17 10:51 ` Nic James Ferrier
2 siblings, 1 reply; 6+ messages in thread
From: Aidan Kehoe @ 2006-11-15 11:26 UTC (permalink / raw)
Cc: emacs-devel
Ar an cúigiú lá déag de mí na Samhain, scríobh Nic James Ferrier:
> [...] What would be really nice if history were persisted over emacs
> invocations. Could one make history variables customizations and auto
> save them?
See Hrvoje Nikšić’ http://www.emacswiki.org/cgi-bin/wiki/savehist-20+.el .
--
Santa Maradona, priez pour moi!
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: small rcirc suggestion
2006-11-15 11:26 ` Aidan Kehoe
@ 2006-11-15 12:22 ` Reiner Steib
2006-11-15 16:50 ` Drew Adams
0 siblings, 1 reply; 6+ messages in thread
From: Reiner Steib @ 2006-11-15 12:22 UTC (permalink / raw)
On Wed, Nov 15 2006, Aidan Kehoe wrote:
> Ar an cúigiú lá déag de mí na Samhain, scríobh Nic James Ferrier:
>
> > [...] What would be really nice if history were persisted over emacs
> > invocations. Could one make history variables customizations and auto
> > save them?
>
> See Hrvoje Nikšić’ http://www.emacswiki.org/cgi-bin/wiki/savehist-20+.el .
`savehist.el' is already included in Emacs 22.
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: small rcirc suggestion
2006-11-15 10:55 small rcirc suggestion Nic James Ferrier
2006-11-15 11:26 ` Aidan Kehoe
@ 2006-11-15 15:24 ` Stuart D. Herring
2006-11-17 10:51 ` Nic James Ferrier
2 siblings, 0 replies; 6+ messages in thread
From: Stuart D. Herring @ 2006-11-15 15:24 UTC (permalink / raw)
Cc: emacs-devel
> What would be really nice if history were persisted over emacs
> invocations. Could one make history variables customizations and auto
> save them?
See also desktop.el.
Davis
--
This product is sold by volume, not by mass. If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: small rcirc suggestion
2006-11-15 12:22 ` Reiner Steib
@ 2006-11-15 16:50 ` Drew Adams
0 siblings, 0 replies; 6+ messages in thread
From: Drew Adams @ 2006-11-15 16:50 UTC (permalink / raw)
> > See Hrvoje Nikšić’
> http://www.emacswiki.org/cgi-bin/wiki/savehist-20+.el .
>
> `savehist.el' is already included in Emacs 22.
FWIW - The version on Emacs Wiki was modified trivially so that it also works with older versions of Emacs - if you don't use an older Emacs version, then you don't need this version of savehist.el. This is mentioned in the Commentary of the file.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: small rcirc suggestion
2006-11-15 10:55 small rcirc suggestion Nic James Ferrier
2006-11-15 11:26 ` Aidan Kehoe
2006-11-15 15:24 ` Stuart D. Herring
@ 2006-11-17 10:51 ` Nic James Ferrier
2 siblings, 0 replies; 6+ messages in thread
From: Nic James Ferrier @ 2006-11-17 10:51 UTC (permalink / raw)
Whoops!
I sent a patch to my own patch and it was very wrong.
Here's another patch - done right this time:
--- src/emacs-snapshot-20061111/lisp/net/rcirc.el 2006-09-12 23:05:57.000000000 +0100
+++ rcirc.el 2006-11-15 12:59:10.000000000 +0000
@@ -319,13 +319,15 @@
(defconst rcirc-id-string (concat "rcirc on GNU Emacs " emacs-version))
\f
(defvar rcirc-startup-channels nil)
+
+(defvar rcirc-server-history nil)
;;;###autoload
(defun rcirc (arg)
"Connect to IRC.
If ARG is non-nil, prompt for a server to connect to."
(interactive "P")
(if arg
- (let* ((server (read-string "IRC Server: " rcirc-default-server))
+ (let* ((server (read-string "IRC Server: " rcirc-default-server 'rcirc-server-history rcirc-default-server))
(port (read-string "IRC Port: " (number-to-string rcirc-default-port)))
(nick (read-string "IRC Nick: " rcirc-default-nick))
(channels (split-string
Sorry for any confusion and thanks to rms for reading my original
patch closely.
--
Nic Ferrier
http://www.tapsellferrier.co.uk for all your tapsell ferrier needs
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-11-17 10:51 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-15 10:55 small rcirc suggestion Nic James Ferrier
2006-11-15 11:26 ` Aidan Kehoe
2006-11-15 12:22 ` Reiner Steib
2006-11-15 16:50 ` Drew Adams
2006-11-15 15:24 ` Stuart D. Herring
2006-11-17 10:51 ` Nic James Ferrier
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.