# list-variables(2)

[Home] [Commands] [Variables] [Macro-Dev] [Glossary]

## NAME

list-variables - List defined variables

## SYNOPSIS

list-variables (C-h v)

## DESCRIPTION

list-variables pops up a window with a list of all register, buffer, user and global variables with their current setting. The variables are shown for the current buffer from which the command was invoked

list-variables provides a good alternative to describe-variable(2) where the value of multiple variables is to be interrogated.

The output is displayed in four sections:-

Register variables

The current settings of the global register variables ('#' prefix).

Buffer Variables

The current setting of the buffer variables (':' prefix). This variables relate to the current buffer from which the command was invoked.

System Variables

The current settings of the system variables ('$' prefix).

Global Variables

The current setting of the global variables ('%' prefix).

## EXAMPLE

An example output from list-variables is shown below:-

    Register variables:

        #g0 ........................... "29"
        #g1 ........................... ""
        #g2 ........................... "ERROR"
        :
        :
        #g8 ........................... "ERROR"
        #g9 ........................... "ERROR"

    Buffer [m2cmd086.2] variables:

    System variables:

        $auto-time .................... "300"
        $buffer-bhook ................. "bhook-nroff"
        $buffer-bname ................. "m2cmd086.2"
        $buffer-ehook ................. "ehook-nroff"
        $buffer-fhook ................. "fhook-nroff"
        $buffer-fmod .................. "040"
        $buffer-fname ................. "d:/emacs/doc/m2cmd086.2"
        $buffer-hilight ............... "3"
        :
        :
        $window-width ................. "80"
        $window-x-scroll .............. "0"
        $window-xcl-scroll ............ "0"
        $window-y-scroll .............. "52"

    Global variables:

        %company-name ................. "JASSPA"
        %compile-com .................. "build "
        %diff-com ..................... "diff -c -w"
        :
        :
        %tag-file ..................... "tags"
        %tag-option ................... "rcemsv"
        %xgrep-com .................... "grep -n "

## SEE ALSO

describe-variable(2), list-commands(2).

(c) Copyright JASSPA 2009
Last Modified: 2009/08/29
Generated On: 2009/10/12

</HMTL>