Gnus development mailing list
 help / color / mirror / Atom feed
From: Simon Josefsson <jas@extundo.com>
Cc: "Arne Jørgensen" <arne@arnested.dk>, ding@gnus.org
Subject: Re: ldap cert retrieval and pem encoding
Date: Tue, 31 May 2005 14:07:50 +0200	[thread overview]
Message-ID: <iluvf4z61k9.fsf@latte.josefsson.org> (raw)
In-Reply-To: <zf.upn64wzhaf0.fsf@zeitform.de> (Ulf Stegemann's message of "Tue, 31 May 2005 14:01:07 +0200")

Ulf Stegemann <ulf@zeitform.de> writes:

> Simon Josefsson <jas@extundo.com> wrote:
>
> [...]
>
>> Applied to CVS.
>
> [...]
>
>>>   (replace-in-string 
>>>    (cadaar ldapresult) 
>>>    "\\(\n\\|\r\\|-----BEGIN CERTIFICATE-----\\|-----END CERTIFICATE-----\\)"
>>>    "" t))
>>
>> This one too, let me know whether it works now.
>
> Yes, it works for xemacs.  I think emacs will need the original
> replace-regexp-in-string instead.  My emacs does not know replace-in-string.

Well, we want something that works in both.  Perhaps we could
duplicate the stuff from gnus-util.el in smime.el?  Renaming it to
smime-replace-in-string first, of course.  Better ideas welcome; I'll
install the best idea tomorrow, unless someone beats me to it.

(eval-and-compile
  (cond
   ((fboundp 'replace-in-string)
    (defalias 'gnus-replace-in-string 'replace-in-string))
   ((fboundp 'replace-regexp-in-string)
    (defun gnus-replace-in-string  (string regexp newtext &optional literal)
      "Replace all matches for REGEXP with NEWTEXT in STRING.
If LITERAL is non-nil, insert NEWTEXT literally.  Return a new
string containing the replacements.

This is a compatibility function for different Emacsen."
      (replace-regexp-in-string regexp newtext string nil literal)))))



  reply	other threads:[~2005-05-31 12:07 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-24 10:02 Ulf Stegemann
2005-05-24 14:18 ` Simon Josefsson
2005-05-26 22:31 ` Arne Jørgensen
2005-05-27 15:58   ` Ulf Stegemann
2005-05-28 11:30     ` Arne Jørgensen
2005-05-28 11:53       ` Simon Josefsson
2005-05-30  8:39         ` Ulf Stegemann
2005-05-30  8:48           ` Arne Jørgensen
2005-05-31  9:33       ` Arne Jørgensen
2005-05-31 11:21         ` Ulf Stegemann
2005-05-31 11:29           ` Simon Josefsson
2005-05-31 11:48             ` Reiner Steib
2005-05-31 12:59               ` Arne Jørgensen
2005-05-31 12:01             ` Ulf Stegemann
2005-05-31 12:07               ` Simon Josefsson [this message]
2005-05-31 12:57           ` Arne Jørgensen
2005-05-31 13:13             ` Simon Josefsson
2005-05-26 22:31 ` Arne Jørgensen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=iluvf4z61k9.fsf@latte.josefsson.org \
    --to=jas@extundo.com \
    --cc=arne@arnested.dk \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).