Gnus development mailing list
 help / color / mirror / Atom feed
* wrong number of arguments when calling 'mm-replace-in-string' in mml2015.el and mml-smime.el
@ 2010-10-09  9:06 Binjo
  2010-10-09 20:03 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 8+ messages in thread
From: Binjo @ 2010-10-09  9:06 UTC (permalink / raw)
  To: ding

hi,

I'm new to this list, so please bare with me if i'm posting here is wrong.

I found annoying when reading pgp signed mail recently, after digging further,
it turns out when call `mm-replace-in-string' inside mml2015.el, it feeds one
extra argument, namely 't'.

--8<---------------cut here---------------start------------->8---
mml-smime.el:530:      (setq part (mm-replace-in-string part "\n" "\r\n" t)
mml2015.el:895:      (setq part (mm-replace-in-string part "\n" "\r\n" t)
--8<---------------cut here---------------end--------------->8---

,----[ C-h f mm-replace-in-string RET ]
| mm-replace-in-string is an alias for `replace-in-string' in
| `mm-util.el'.
| 
| (mm-replace-in-string TARGET OLD NEW)
| 
| Not documented.
| 
| [back]
`----

,----[ C-h f replace-in-string RET ]
| replace-in-string is a compiled Lisp function.
| 
| (replace-in-string TARGET OLD NEW)
| 
| Not documented.
| 
| [back]
`----

After googling, looks like someone complainted/asked about this since 2007,
maybe it's good time to fix these bugs/issues.

HTH,

Binjo
-- 
Life is like a prison, can you break it?



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: wrong number of arguments when calling 'mm-replace-in-string' in mml2015.el and mml-smime.el
  2010-10-09  9:06 wrong number of arguments when calling 'mm-replace-in-string' in mml2015.el and mml-smime.el Binjo
@ 2010-10-09 20:03 ` Lars Magne Ingebrigtsen
  2010-10-11  2:57   ` Binjo
  0 siblings, 1 reply; 8+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-10-09 20:03 UTC (permalink / raw)
  To: ding

Binjo <binjo.cn@gmail.com> writes:

> I found annoying when reading pgp signed mail recently, after digging further,
> it turns out when call `mm-replace-in-string' inside mml2015.el, it feeds one
> extra argument, namely 't'.

What's your Emacs version?

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: wrong number of arguments when calling 'mm-replace-in-string' in mml2015.el and mml-smime.el
  2010-10-09 20:03 ` Lars Magne Ingebrigtsen
@ 2010-10-11  2:57   ` Binjo
  2010-10-11 18:05     ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 8+ messages in thread
From: Binjo @ 2010-10-11  2:57 UTC (permalink / raw)
  To: ding

On Sat, 09 Oct 2010 22:03:54 +0200, Lars Magne Ingebrigtsen <larsi@gnus.org> said:

> Binjo <binjo.cn@gmail.com> writes:
>>  I found annoying when reading pgp signed mail recently, after digging further,
>>  it turns out when call `mm-replace-in-string' inside mml2015.el, it feeds one
>>  extra argument, namely 't'.

> What's your Emacs version?

GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) of 2010-09-14 on 3249CTO

-- 
Life is like a prison, can you break it?




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: wrong number of arguments when calling 'mm-replace-in-string' in mml2015.el and mml-smime.el
  2010-10-11  2:57   ` Binjo
@ 2010-10-11 18:05     ` Lars Magne Ingebrigtsen
  2010-10-13  3:14       ` Binjo
  0 siblings, 1 reply; 8+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-10-11 18:05 UTC (permalink / raw)
  To: ding

Binjo <binjo.cn@gmail.com> writes:

>>>  I found annoying when reading pgp signed mail recently, after digging further,
>>>  it turns out when call `mm-replace-in-string' inside mml2015.el, it feeds one
>>>  extra argument, namely 't'.
>
>> What's your Emacs version?
>
> GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) of 2010-09-14 on 3249CTO

mm-replace-in-string is a compiled Lisp function in `mm-util.el'.

(mm-replace-in-string STRING REGEXP REP &optional LITERAL)

Perhaps you have a different definition from somewhere?

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: wrong number of arguments when calling 'mm-replace-in-string' in mml2015.el and mml-smime.el
  2010-10-11 18:05     ` Lars Magne Ingebrigtsen
@ 2010-10-13  3:14       ` Binjo
  2010-10-13 17:59         ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 8+ messages in thread
From: Binjo @ 2010-10-13  3:14 UTC (permalink / raw)
  To: ding

On Mon, 11 Oct 2010 20:05:45 +0200, Lars Magne Ingebrigtsen <larsi@gnus.org> said:

> Binjo <binjo.cn@gmail.com> writes:
>>>>   I found annoying when reading pgp signed mail recently, after digging further,
>>>>   it turns out when call `mm-replace-in-string' inside mml2015.el, it feeds one
>>>>   extra argument, namely 't'.
>> 
>>>  What's your Emacs version?
>> 
>>  GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) of 2010-09-14 on 3249CTO

> mm-replace-in-string is a compiled Lisp function in `mm-util.el'.

> (mm-replace-in-string STRING REGEXP REP &optional LITERAL)

> Perhaps you have a different definition from somewhere?

that's weird, i'm using the latest gnus from the git right now, still error
prompted when open pgp signed mail ;-(

,----[ C-h f mm-replace-in-string RET ]
| mm-replace-in-string is an alias for `replace-in-string' in
| `mm-util.el'.
| 
| (mm-replace-in-string TARGET OLD NEW)
| 
| Not documented.
`----

i tried find all occurences of mm-replace-in-string in my emacs directory, the
following url is the result, under 'lisp' are those bundled in emacs, those
'site-lisp' are the new installed nognus.

http://pastebin.org/165179

i'm totally lost...

-- 
Life is like a prison, can you break it?




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: wrong number of arguments when calling 'mm-replace-in-string' in mml2015.el and mml-smime.el
  2010-10-13  3:14       ` Binjo
@ 2010-10-13 17:59         ` Lars Magne Ingebrigtsen
  2010-10-14  6:30           ` Reiner Steib
  0 siblings, 1 reply; 8+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-10-13 17:59 UTC (permalink / raw)
  To: ding

Binjo <binjo.cn@gmail.com> writes:

>>>>  What's your Emacs version?
>>> 
>>>  GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) of 2010-09-14 on 3249CTO

[...]

> | mm-replace-in-string is an alias for `replace-in-string' in
> | `mm-util.el'.
> | 
> | (mm-replace-in-string TARGET OLD NEW)

There is no `replace-in-string' in Emacs 24.  Do you have that function
defined locally?

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: wrong number of arguments when calling 'mm-replace-in-string' in mml2015.el and mml-smime.el
  2010-10-13 17:59         ` Lars Magne Ingebrigtsen
@ 2010-10-14  6:30           ` Reiner Steib
  2010-10-14  9:12             ` Binjo
  0 siblings, 1 reply; 8+ messages in thread
From: Reiner Steib @ 2010-10-14  6:30 UTC (permalink / raw)
  To: ding

On Wed, Oct 13 2010, Lars Magne Ingebrigtsen wrote:

> Binjo <binjo.cn@gmail.com> writes:
>> | mm-replace-in-string is an alias for `replace-in-string' in
>> | `mm-util.el'.
>> | 
>> | (mm-replace-in-string TARGET OLD NEW)
>
> There is no `replace-in-string' in Emacs 24.  Do you have that function
> defined locally?

color-theme.el?

See http://thread.gmane.org/gmane.emacs.gnus.general/66942

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: wrong number of arguments when calling 'mm-replace-in-string' in mml2015.el and mml-smime.el
  2010-10-14  6:30           ` Reiner Steib
@ 2010-10-14  9:12             ` Binjo
  0 siblings, 0 replies; 8+ messages in thread
From: Binjo @ 2010-10-14  9:12 UTC (permalink / raw)
  To: ding

On Thu, 14 Oct 2010 08:30:02 +0200, Reiner Steib <reinersteib+gmane@imap.cc> said:

> On Wed, Oct 13 2010, Lars Magne Ingebrigtsen wrote:
>>  Binjo <binjo.cn@gmail.com> writes:
>>>  | mm-replace-in-string is an alias for `replace-in-string' in
>>>  | `mm-util.el'.
>>>  | 
>>>  | (mm-replace-in-string TARGET OLD NEW)
>> 
>>  There is no `replace-in-string' in Emacs 24.  Do you have that function
>>  defined locally?

> color-theme.el?

> See http://thread.gmane.org/gmane.emacs.gnus.general/66942

ouch... thanks for pointing out, i gotta have to improve my googling skills :(

Sorry for the noise.

-- 
Life is like a prison, can you break it?




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-10-14  9:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-09  9:06 wrong number of arguments when calling 'mm-replace-in-string' in mml2015.el and mml-smime.el Binjo
2010-10-09 20:03 ` Lars Magne Ingebrigtsen
2010-10-11  2:57   ` Binjo
2010-10-11 18:05     ` Lars Magne Ingebrigtsen
2010-10-13  3:14       ` Binjo
2010-10-13 17:59         ` Lars Magne Ingebrigtsen
2010-10-14  6:30           ` Reiner Steib
2010-10-14  9:12             ` Binjo

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).