unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* defvaralias
@ 2005-08-05 15:38 largo-linux
  2005-08-05 15:58 ` defvaralias Charles philip Chan
  0 siblings, 1 reply; 10+ messages in thread
From: largo-linux @ 2005-08-05 15:38 UTC (permalink / raw)


i have emacs from fedora core 4 (version 21.4-5 i believe).  i tried to
install journal.el from the emacswiki page, but it complains that the
function defvaralias is void...  where can i get defvaralias?  or is
there a workaround for this.  it seems that defvaralias just creates a
link between two variables

in the code defvaralias is used once :

(defvaralias 'journal-default-page 'emacs-wiki-default-page)

it would seem that emacs-wiki-default page is set elsewhere and i could
just copy emacs-wiki-default-page to journal-default-page...

(setq 'journal-default-page 'emacs-wiki-default-page) ;; ???

any help greatly appreciated.

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

* Re: defvaralias
  2005-08-05 15:38 defvaralias largo-linux
@ 2005-08-05 15:58 ` Charles philip Chan
  2005-08-05 16:39   ` defvaralias largo-linux
  0 siblings, 1 reply; 10+ messages in thread
From: Charles philip Chan @ 2005-08-05 15:58 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 418 bytes --]

On  5 Aug 2005, joelvsmith@earthlink.net wrote:

> in the code defvaralias is used once :

> (defvaralias 'journal-default-page 'emacs-wiki-default-page)


You must first install emacs-wiki-mode: 

http://www.emacswiki.org/cgi-bin/wiki/EmacsWikiMode



Charles

-- 
"Are [Linux users] lemmings collectively jumping off of the cliff of
reliable, well-engineered commercial software?"
(By Matt Welsh)

[-- Attachment #1.2: Type: application/pgp-signature, Size: 188 bytes --]

[-- Attachment #2: Type: text/plain, Size: 152 bytes --]

_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

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

* Re: defvaralias
  2005-08-05 15:58 ` defvaralias Charles philip Chan
@ 2005-08-05 16:39   ` largo-linux
  2005-08-05 23:21     ` defvaralias Charles philip Chan
  0 siblings, 1 reply; 10+ messages in thread
From: largo-linux @ 2005-08-05 16:39 UTC (permalink / raw)


i did install emacwiki (i.e. untarred and gunzipped the package and
then put in my .emacs where to find the package and require the
package)...

in fact in my first work around taken from someone's post i simply
blanked out defvaralias but when it tried to save the default page it
returned a wrong argument error.

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

* Re: defvaralias
  2005-08-05 16:39   ` defvaralias largo-linux
@ 2005-08-05 23:21     ` Charles philip Chan
  2005-08-06  0:28       ` defvaralias largo-linux
  2005-08-06  0:32       ` defvaralias largo-linux
  0 siblings, 2 replies; 10+ messages in thread
From: Charles philip Chan @ 2005-08-05 23:21 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 1544 bytes --]

On  5 Aug 2005, joelvsmith@earthlink.net wrote:

> i did install emacwiki (i.e. untarred and gunzipped the package and
> then put in my .emacs where to find the package and require the
> package)...

What is the ouput of C-hv emacs-wiki-default-page? It should return
WelcomePage, if emacs-wiki is setup properly. Does your Wiki directory
exist? Have you customized it? You can use customize-group: the group
name is emacs-wiki.

> in fact in my first work around taken from someone's post i simply
> blanked out defvaralias but when it tried to save the default page it
> returned a wrong argument error.

The problem is somewhere else since there is no way your copy of emacs
doesn't have defvaralias because it is a built in function:

,----[ defvaralias ]
| defvaralias is a built-in function in `C source code'.
| (defvaralias NEW-ALIAS BASE-VARIABLE &optional DOCSTRING)
| 
| Make NEW-ALIAS a variable alias for symbol BASE-VARIABLE.  Setting the
| value of NEW-ALIAS will subsequently set the value of BASE-VARIABLE, and
| getting the value of NEW-ALIAS will return the value BASE-VARIABLE has.
| Third arg DOCSTRING, if non-nil, is documentation for NEW-ALIAS.  If it
| is omitted or nil, NEW-ALIAS gets the documentation string of
| BASE-VARIABLE, or of the variable at the end of the chain of aliases, if
| BASE-VARIABLE is itself an alias.  The return value is BASE-VARIABLE.
`----

Charles

-- 
"Oh, I've seen copies [of Linux Journal] around the terminal room at The
Labs."
(By Dennis Ritchie)

[-- Attachment #1.2: Type: application/pgp-signature, Size: 188 bytes --]

[-- Attachment #2: Type: text/plain, Size: 152 bytes --]

_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

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

* Re: defvaralias
  2005-08-05 23:21     ` defvaralias Charles philip Chan
@ 2005-08-06  0:28       ` largo-linux
  2005-08-06  0:47         ` defvaralias Charles philip Chan
  2005-08-06  0:32       ` defvaralias largo-linux
  1 sibling, 1 reply; 10+ messages in thread
From: largo-linux @ 2005-08-06  0:28 UTC (permalink / raw)


thanks for your response.  here is what i get when i (require 'journal)

Debugger entered--Lisp error: (void-function defvaralias)
  (defvaralias (quote journal-default-page) (quote
emacs-wiki-default-page))
  eval-buffer(#<buffer  *load*> nil "journal" nil t)
  load-with-code-conversion("/scratch/emacs-wiki-2.70/journal.el"
"journal" nil t)
  require(journal)
  eval((require (quote journal)))
  eval-last-sexp-1(nil)
  eval-last-sexp(nil)
* call-interactively(eval-last-sexp)

also c-h n (search for defvaralias yields nothing)...  emacs-version ==
2.4.1

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

* Re: defvaralias
  2005-08-05 23:21     ` defvaralias Charles philip Chan
  2005-08-06  0:28       ` defvaralias largo-linux
@ 2005-08-06  0:32       ` largo-linux
  1 sibling, 0 replies; 10+ messages in thread
From: largo-linux @ 2005-08-06  0:32 UTC (permalink / raw)


forgot to say that welcomepage is 'emacs-wiki-default-page.  i also hit
M-x customize-group emacs-wiki.  i looked at some things but i didn't
change anything...  i didn't compile emacs-wiki, because it was
optional...

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

* Re: defvaralias
  2005-08-06  0:28       ` defvaralias largo-linux
@ 2005-08-06  0:47         ` Charles philip Chan
  2005-08-06  1:18           ` defvaralias largo-linux
  0 siblings, 1 reply; 10+ messages in thread
From: Charles philip Chan @ 2005-08-06  0:47 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 1001 bytes --]

On  5 Aug 2005, joelvsmith@earthlink.net wrote:

> Debugger entered--Lisp error: (void-function defvaralias)
> (defvaralias (quote journal-default-page) (quote
> emacs-wiki-default-page))
> eval-buffer(#<buffer  *load*> nil "journal" nil t)
> load-with-code-conversion("/scratch/emacs-wiki-2.70/journal.el"
> "journal" nil t)
> require(journal)
> eval((require (quote journal)))
> eval-last-sexp-1(nil)
> eval-last-sexp(nil)
> * call-interactively(eval-last-sexp)

I will look at this further. Did you require emacs-wiki before journal?

> also c-h n (search for defvaralias yields nothing)...

Huh, C-h n is for showing what is new in Emacs. Try:

C-h f defvaralias

Also, what is returned when you do:

C-h v emacs-wiki-default-page

> emacs-version == 2.4.1

There is no such version. What does it say when you go to "Help" ==>
"About Emacs"?

Charles

-- 
Linux: Because a PC is a terrible thing to waste.
(By komarimf@craft.camp.clarkson.edu, Mark Komarinski)

[-- Attachment #1.2: Type: application/pgp-signature, Size: 188 bytes --]

[-- Attachment #2: Type: text/plain, Size: 152 bytes --]

_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

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

* Re: defvaralias
  2005-08-06  0:47         ` defvaralias Charles philip Chan
@ 2005-08-06  1:18           ` largo-linux
  2005-08-06  1:58             ` defvaralias Charles philip Chan
  0 siblings, 1 reply; 10+ messages in thread
From: largo-linux @ 2005-08-06  1:18 UTC (permalink / raw)


I have the following in my .emacs

(add-to-list 'load-path "/scratch/emacs-wiki-2.70")
(require 'emacs-wiki)

i read somewhere that in the NEWS (C-h n) defvaralias has an entry...
C-h f defvaralias --> no entry

C-h v emacs-wiki-default-page
emacs-wiki-default-page's value is "WelcomePage"

Documentation:
Name of the default page used by M-x emacs-wiki-find-file.
This is also used to resolve a link to a project that has no Wiki
page specified.

You can customize this variable.

Defined in `emacs-wiki'.

i don't see an "about emacs" in "help"  but there is an "emacs version"
it returns

GNU Emacs 21.4.1 (i386-redhat-linux-gnu, X toolkit, Xaw3d scroll bars)
of 2005-05-18 on decompose.build.redhat.com

thank you.

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

* Re: defvaralias
  2005-08-06  1:18           ` defvaralias largo-linux
@ 2005-08-06  1:58             ` Charles philip Chan
  2005-08-06  6:55               ` defvaralias Tim X
  0 siblings, 1 reply; 10+ messages in thread
From: Charles philip Chan @ 2005-08-06  1:58 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 794 bytes --]

On  5 Aug 2005, joelvsmith@earthlink.net wrote:

> i read somewhere that in the NEWS (C-h n) defvaralias has an entry...
> C-h f defvaralias --> no entry

I see what you mean now.

> GNU Emacs 21.4.1 (i386-redhat-linux-gnu, X toolkit, Xaw3d scroll bars)
> of 2005-05-18 on decompose.build.redhat.com

This is really strange because according to my research defvaralias was
introduced in Emacs 21.4 (there must be something screwy with the
Redhat's build). You have 2 choices:

(1) Upgrade your Emacs.

(2) Ask your question on the emacs-wiki list:
    http://www.emacswiki.org/cgi-bin/wiki/EmacsWikiMailingList

    I am sure someone can help you there.

Charles

-- 
We are MicroSoft.  You will be assimilated.  Resistance is futile.
(Attributed to B.G., Gill Bates)

[-- Attachment #1.2: Type: application/pgp-signature, Size: 188 bytes --]

[-- Attachment #2: Type: text/plain, Size: 152 bytes --]

_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

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

* Re: defvaralias
  2005-08-06  1:58             ` defvaralias Charles philip Chan
@ 2005-08-06  6:55               ` Tim X
  0 siblings, 0 replies; 10+ messages in thread
From: Tim X @ 2005-08-06  6:55 UTC (permalink / raw)


"Charles philip Chan" <cpchan@sympatico.ca> writes:

> 
> > i read somewhere that in the NEWS (C-h n) defvaralias has an entry...
> > C-h f defvaralias --> no entry
> 
> I see what you mean now.
> 
> > GNU Emacs 21.4.1 (i386-redhat-linux-gnu, X toolkit, Xaw3d scroll bars)
> > of 2005-05-18 on decompose.build.redhat.com
> 
> This is really strange because according to my research defvaralias was
> introduced in Emacs 21.4 (there must be something screwy with the
> Redhat's build). You have 2 choices:
> 
> (1) Upgrade your Emacs.
> 
> (2) Ask your question on the emacs-wiki list:
>     http://www.emacswiki.org/cgi-bin/wiki/EmacsWikiMailingList
> 
>     I am sure someone can help you there.
> 

I'm running emacs 21.4.1 on debian and there is no defvaralias defined
and no mention of it in the News file either. As I understand it, the
only difference between 21.3 and 21.4 was a security patch - no ew
features werre introduced.

Tim
 

-- 
Tim Cross
The e-mail address on this message is FALSE (obviously!). My real e-mail is
to a company in Australia called rapttech and my login is tcross - if you 
really need to send mail, you should be able to work it out!

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

end of thread, other threads:[~2005-08-06  6:55 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-05 15:38 defvaralias largo-linux
2005-08-05 15:58 ` defvaralias Charles philip Chan
2005-08-05 16:39   ` defvaralias largo-linux
2005-08-05 23:21     ` defvaralias Charles philip Chan
2005-08-06  0:28       ` defvaralias largo-linux
2005-08-06  0:47         ` defvaralias Charles philip Chan
2005-08-06  1:18           ` defvaralias largo-linux
2005-08-06  1:58             ` defvaralias Charles philip Chan
2005-08-06  6:55               ` defvaralias Tim X
2005-08-06  0:32       ` defvaralias largo-linux

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 read-only IMAP folder(s) and NNTP newsgroup(s).