[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: backquote errors with emacs24



 On 10-11-11 12:42 AM, David Maus wrote:
At Wed, 10 Nov 2010 19:13:11 -0500,
Matt Price wrote:
Auto plugged off at mailbox126.utcc.utoronto.ca:993
byte-code: Invalid function: (\` (start-process name buffer
ssl-program-name ((\,@ ssl-program-arguments))))

I figured (blindly) that this was a backquote issue but changing the `
to "quote" nets me this instead:

byte-code: Symbol's function definition is void: \,@
Mark set

I'm sure this is blindingly obvious to most people on the list - -can
you tell me how to fix it? thanks,
The function in question in cvs HEAD:

(defun open-ssl-stream (name buffer host service)
   "Open a SSL connection for a service to a host.
Returns a subprocess-object to represent the connection.
Input and output work as for subprocesses; `delete-process' closes it.
Args are NAME BUFFER HOST SERVICE.
NAME is name for process.  It is modified if necessary to make it unique.
BUFFER is the buffer (or buffer-name) to associate with the process.
  Process output goes at end of that buffer, unless you specify
  an output stream or filter function to handle the output.
  BUFFER may be also nil, meaning that this process is not associated
  with any buffer
Third arg is name of the host to connect to, or its IP address.
Fourth arg SERVICE is name of the service desired, or an integer
specifying a port number to connect to."
   (if (integerp service) (setq service (int-to-string service)))
   (let* ((process-connection-type nil)
          (port service)
          (proc (eval
                 `(start-process name buffer ssl-program-name
                                 ,@ssl-program-arguments))))
     (process-kill-without-query proc)
     proc))

The backtick ` does not mean the same as (quote -- Quoting a list or
symbol disables the evaluation of the list or symbol by the Lisp
interpreter.  The backtick allows you to mark exceptions for this
rule: A single , causes the interpreter to evaluate the following list
or symbol inside the back-quoted list and ,@ inserts data of the
following symbol in the list.
ah, I think at least I understand what the function does now, thanks David. My version had a space between ,@ and ssl-program-arguments (possibly introduced by me during an attempted edit?). The function now loads but I seem to be having a ocuple of other problems, namely:

Initializing folder...done
Inserting group Desktop...done
Loading `ssl': old-style backquotes detected!
Auto plugged off at mailbox126.utcc.utoronto.ca:993 :elmo-network-initialize-session
byte-code: Cannot open: elmo-network-initialize-session
wl-summary-line-format-changed-p: Wrong type argument: arrayp, nil
Do you really want to quit Wanderlust? (y or n)  y
Saving summary and folder status...
luna-class-name: Wrong type argument: arrayp, nil
Do you really want to quit Wanderlust? (y or n)  y
Saving summary and folder status...

There look to be at least two, maybe three, issues here:
- elmo-network-initialize session isn't happy about something -- from wl's behaviour I think elmo can't make the ssl connection to my IMAP server; - wl is having trouble displaying messages in summary mode, so e.g. summary lines aren't colored the way they should be; - wl gets confused when I try to quit, and spits back that error message, so that wl is stuck open.

I'm not sure whether these are all the same thing -- and perhaps I should finally move to cvs version of wl, though I've been reluctant to do that with such an important piece of architecture.

the last two issues disappear if I switch to emacs23, but the first and most important doesn't -- I think this might have something to do with a mismatch between wl and flim versions or something? They are almost exactly the same age, though, both from August of this year. Still, though I've had that elmo-network-initalize-session warning before I've always been able to connect eventually. No longer.

Thanks for your help as always!
Matt


Best,
   -- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... dmjena@jabber.org
Email..... dmaus@ictsoc.de