Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emacs
emacs
Commits
bbf5eb28
Commit
bbf5eb28
authored
Apr 12, 1997
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add defgroup's; use defcustom for user vars.
parent
124c852b
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
242 additions
and
95 deletions
+242
-95
lisp/bookmark.el
lisp/bookmark.el
+46
-21
lisp/dabbrev.el
lisp/dabbrev.el
+55
-22
lisp/desktop.el
lisp/desktop.el
+37
-16
lisp/jka-compr.el
lisp/jka-compr.el
+34
-9
lisp/progmodes/executable.el
lisp/progmodes/executable.el
+33
-13
lisp/textmodes/makeinfo.el
lisp/textmodes/makeinfo.el
+13
-4
lisp/textmodes/ooutline.el
lisp/textmodes/ooutline.el
+24
-10
No files found.
lisp/bookmark.el
View file @
bbf5eb28
;;; bookmark.el --- set bookmarks, maybe annotate them, jump to them later.
;;; bookmark.el --- set bookmarks, maybe annotate them, jump to them later.
;; Copyright (C) 1993, 1994, 1995, 1996 Free Software Foundation
;; Copyright (C) 1993, 1994, 1995, 1996
, 1997
Free Software Foundation
;; Author: Karl Fogel <kfogel@red-bean.com>
;; Author: Karl Fogel <kfogel@red-bean.com>
;; Maintainer: Karl Fogel <kfogel@red-bean.com>
;; Maintainer: Karl Fogel <kfogel@red-bean.com>
...
@@ -99,12 +99,19 @@ maintainers to avoid version confusion.")
...
@@ -99,12 +99,19 @@ maintainers to avoid version confusion.")
;;; User Variables
;;; User Variables
(
defvar
bookmark-use-annotations
nil
(
defgroup
bookmark
nil
"Setting, annotation and jumping to bookmarks"
:group
'matching
)
(
defcustom
bookmark-use-annotations
nil
"*If non-nil, saving a bookmark will query for an annotation in a
"*If non-nil, saving a bookmark will query for an annotation in a
buffer."
)
buffer."
:type
'boolean
:group
'bookmark
)
(
def
var
bookmark-save-flag
t
(
def
custom
bookmark-save-flag
t
"*Controls when Emacs saves bookmarks to a file.
"*Controls when Emacs saves bookmarks to a file.
--> Nil means never save bookmarks, except when `bookmark-save' is
--> Nil means never save bookmarks, except when `bookmark-save' is
explicitly called \(\\[bookmark-save]\).
explicitly called \(\\[bookmark-save]\).
...
@@ -120,7 +127,9 @@ bookmark is to set this variable to 1 \(or 0, which produces the same
...
@@ -120,7 +127,9 @@ bookmark is to set this variable to 1 \(or 0, which produces the same
behavior.\)
behavior.\)
To specify the file in which to save them, modify the variable
To specify the file in which to save them, modify the variable
bookmark-default-file, which is `~/.emacs.bmk' by default."
)
bookmark-default-file, which is `~/.emacs.bmk' by default."
:type
'
(
choice
(
const
nil
)
(
const
t
)
integer
)
:group
'bookmark
)
(
defconst
bookmark-old-default-file
"~/.emacs-bkmrks"
(
defconst
bookmark-old-default-file
"~/.emacs-bkmrks"
...
@@ -131,51 +140,67 @@ bookmark-default-file, which is `~/.emacs.bmk' by default.")
...
@@ -131,51 +140,67 @@ bookmark-default-file, which is `~/.emacs.bmk' by default.")
(
defvar
bookmark-file
nil
(
defvar
bookmark-file
nil
"Old name for `bookmark-default-file'."
)
"Old name for `bookmark-default-file'."
)
(
def
var
bookmark-default-file
(
def
custom
bookmark-default-file
(
if
bookmark-file
(
if
bookmark-file
;; In case user set `bookmark-file' in her .emacs:
;; In case user set `bookmark-file' in her .emacs:
bookmark-file
bookmark-file
(
convert-standard-filename
"~/.emacs.bmk"
))
(
convert-standard-filename
"~/.emacs.bmk"
))
"*File in which to save bookmarks by default."
)
"*File in which to save bookmarks by default."
:type
'file
:group
'bookmark
)
(
def
var
bookmark-version-control
'nospecial
(
def
custom
bookmark-version-control
'nospecial
"*Whether or not to make numbered backups of the bookmark file.
"*Whether or not to make numbered backups of the bookmark file.
It can have four values: t, nil, `never', and `nospecial'.
It can have four values: t, nil, `never', and `nospecial'.
The first three have the same meaning that they do for the
The first three have the same meaning that they do for the
variable `version-control', and the final value `nospecial' means just
variable `version-control', and the final value `nospecial' means just
use the value of `version-control'."
)
use the value of `version-control'."
:type
'
(
choice
(
const
t
)
(
const
nil
)
(
const
never
)
(
const
nospecial
))
:group
'bookmark
)
(
defvar
bookmark-completion-ignore-case
t
(
defcustom
bookmark-completion-ignore-case
t
"*Non-nil means bookmark functions ignore case in completion."
)
"*Non-nil means bookmark functions ignore case in completion."
:type
'boolean
:group
'bookmark
)
(
def
var
bookmark-sort-flag
t
(
def
custom
bookmark-sort-flag
t
"*Non-nil means that bookmarks will be displayed sorted by bookmark
"*Non-nil means that bookmarks will be displayed sorted by bookmark
name. Otherwise they will be displayed in LIFO order (that is, most
name. Otherwise they will be displayed in LIFO order (that is, most
recently set ones come first, oldest ones come last)."
)
recently set ones come first, oldest ones come last)."
:type
'boolean
:group
'bookmark
)
(
defvar
bookmark-automatically-show-annotations
t
(
defcustom
bookmark-automatically-show-annotations
t
"*Nil means don't show annotations when jumping to a bookmark."
)
"*Nil means don't show annotations when jumping to a bookmark."
:type
'boolean
:group
'bookmark
)
(
def
var
bookmark-bmenu-file-column
30
(
def
custom
bookmark-bmenu-file-column
30
"*Column at which to display filenames in a buffer listing bookmarks.
"*Column at which to display filenames in a buffer listing bookmarks.
You can toggle whether files are shown with \\<bookmark-bmenu-mode-map>\\[bookmark-bmenu-toggle-filenames]."
)
You can toggle whether files are shown with \\<bookmark-bmenu-mode-map>\\[bookmark-bmenu-toggle-filenames]."
:type
'integer
:group
'bookmark
)
(
def
var
bookmark-bmenu-toggle-filenames
t
(
def
custom
bookmark-bmenu-toggle-filenames
t
"*Non-nil means show filenames when listing bookmarks.
"*Non-nil means show filenames when listing bookmarks.
This may result in truncated bookmark names. To disable this, put the
This may result in truncated bookmark names. To disable this, put the
following in your .emacs:
following in your .emacs:
\(setq bookmark-bmenu-toggle-filenames nil\)"
)
\(setq bookmark-bmenu-toggle-filenames nil\)"
:type
'boolean
:group
'bookmark
)
(
defvar
bookmark-menu-length
70
(
defcustom
bookmark-menu-length
70
"*Maximum length of a bookmark name displayed on a popup menu."
)
"*Maximum length of a bookmark name displayed on a popup menu."
:type
'integer
:group
'boolean
)
;;; No user-serviceable parts beyond this point.
;;; No user-serviceable parts beyond this point.
...
...
lisp/dabbrev.el
View file @
bbf5eb28
...
@@ -97,40 +97,60 @@
...
@@ -97,40 +97,60 @@
;;----------------------------------------------------------------
;;----------------------------------------------------------------
;; Customization variables
;; Customization variables
;;----------------------------------------------------------------
;;----------------------------------------------------------------
(
defvar
dabbrev-backward-only
nil
"*If non-nil, `dabbrev-expand' only looks backwards."
)
(
defvar
dabbrev-limit
nil
(
defgroup
dabbrev
nil
"*Limits region searched by `dabbrev-expand' to this many chars away."
)
"Dynamic Abbreviations"
:tag
"Dynamic Abbreviations"
:group
'abbrev
)
(
defvar
dabbrev-abbrev-skip-leading-regexp
nil
(
defcustom
dabbrev-backward-only
nil
"*If non-nil, `dabbrev-expand' only looks backwards."
:type
'boolean
:group
'dabbrev
)
(
defcustom
dabbrev-limit
nil
"*Limits region searched by `dabbrev-expand' to this many chars away."
:type
'
(
choice
(
const
:tag
"off"
nil
)
integer
)
:group
'dabbrev
)
(
defcustom
dabbrev-abbrev-skip-leading-regexp
nil
"*Regexp for skipping leading characters of an abbreviation.
"*Regexp for skipping leading characters of an abbreviation.
Example: Set this to \"\\\\$\" for programming languages
Example: Set this to \"\\\\$\" for programming languages
in which variable names may appear with or without a leading `$'.
in which variable names may appear with or without a leading `$'.
\(For example, in Makefiles.)
\(For example, in Makefiles.
:type 'regexp
:group 'dabbrev))
Set this to nil if no characters should be skipped."
)
Set this to nil if no characters should be skipped."
:type
'
(
choice
regexp
(
const
:tag
"off"
nil
))
:group
'dabbrev
)
;; I recommend that you set this to nil.
;; I recommend that you set this to nil.
(
def
var
dabbrev-case-fold-search
'case-fold-search
(
def
custom
dabbrev-case-fold-search
'case-fold-search
"*Non-nil if dabbrev searches should ignore case.
"*Non-nil if dabbrev searches should ignore case.
A value of nil means case is significant.
A value of nil means case is significant.
The value of this variable is an expression; it is evaluated
The value of this variable is an expression; it is evaluated
and the resulting value determines the decision.
and the resulting value determines the decision.
For example: setting this to `case-fold-search' means evaluate that
For example: setting this to `case-fold-search' means evaluate that
variable to see whether its value is nil."
)
variable to see whether its value is nil."
:type
'sexp
:group
'dabbrev
)
(
def
var
dabbrev-upcase-means-case-search
nil
(
def
custom
dabbrev-upcase-means-case-search
nil
"*The significance of an uppercase character in an abbreviation.
"*The significance of an uppercase character in an abbreviation.
nil means case fold search, non-nil means case sensitive search.
nil means case fold search, non-nil means case sensitive search.
This variable has an effect only when the value of
This variable has an effect only when the value of
`dabbrev-case-fold-search' evaluates to t."
)
`dabbrev-case-fold-search' evaluates to t."
:type
'boolean
:group
'dabbrev
)
;; I recommend that you set this to nil.
;; I recommend that you set this to nil.
(
def
var
dabbrev-case-replace
'case-replace
(
def
custom
dabbrev-case-replace
'case-replace
"*Non-nil means dabbrev should preserve case when expanding the abbreviation.
"*Non-nil means dabbrev should preserve case when expanding the abbreviation.
More precisely, it preserves the case pattern of the abbreviation as you
More precisely, it preserves the case pattern of the abbreviation as you
typed it--as opposed to the case pattern of the expansion that is copied.
typed it--as opposed to the case pattern of the expansion that is copied.
...
@@ -140,9 +160,11 @@ For example, setting this to `case-replace' means evaluate that
...
@@ -140,9 +160,11 @@ For example, setting this to `case-replace' means evaluate that
variable to see if its value is t or nil.
variable to see if its value is t or nil.
This variable has an effect only when the value of
This variable has an effect only when the value of
`dabbrev-case-fold-search' evaluates to t."
)
`dabbrev-case-fold-search' evaluates to t."
:type
'sexp
:group
'dabbrev
)
(
def
var
dabbrev-abbrev-char-regexp
nil
(
def
custom
dabbrev-abbrev-char-regexp
nil
"*Regexp to recognize a character in an abbreviation or expansion.
"*Regexp to recognize a character in an abbreviation or expansion.
This regexp will be surrounded with \\\\( ... \\\\) when actually used.
This regexp will be surrounded with \\\\( ... \\\\) when actually used.
...
@@ -162,9 +184,12 @@ starting with or containing `no-'. If you set this variable to
...
@@ -162,9 +184,12 @@ starting with or containing `no-'. If you set this variable to
expanding `yes-or-no-' signals an error because `-' is not part of a word;
expanding `yes-or-no-' signals an error because `-' is not part of a word;
but expanding `yes-or-no' looks for a word starting with `no'.
but expanding `yes-or-no' looks for a word starting with `no'.
The recommended value is \"\\\\sw\\\\|\\\\s_\"."
)
The recommended value is \"\\\\sw\\\\|\\\\s_\"."
:type
'
(
choice
(
const
nil
)
regexp
)
:group
'dabbrev
)
(
def
var
dabbrev-check-all-buffers
t
(
def
custom
dabbrev-check-all-buffers
t
"*Non-nil means dabbrev package should search *all* buffers.
"*Non-nil means dabbrev package should search *all* buffers.
Dabbrev always searches the current buffer first. Then, if
Dabbrev always searches the current buffer first. Then, if
...
@@ -172,9 +197,11 @@ Dabbrev always searches the current buffer first. Then, if
...
@@ -172,9 +197,11 @@ Dabbrev always searches the current buffer first. Then, if
designated by `dabbrev-select-buffers-function'.
designated by `dabbrev-select-buffers-function'.
Then, if `dabbrev-check-all-buffers' is non-nil, dabbrev searches
Then, if `dabbrev-check-all-buffers' is non-nil, dabbrev searches
all the other buffers."
)
all the other buffers."
:type
'boolean
:group
'dabbrev
)
(
def
var
dabbrev-check-other-buffers
t
(
def
custom
dabbrev-check-other-buffers
t
"
*Should
\\[dabbrev-expand]
look
in
other
buffers?
\
"
*Should
\\[dabbrev-expand]
look
in
other
buffers?
\
nil:
Don
't
look
in
other
buffers.
nil:
Don
't
look
in
other
buffers.
...
@@ -184,7 +211,11 @@ Anything else: When we can't find any more expansions in
...
@@ -184,7 +211,11 @@ Anything else: When we can't find any more expansions in
the
current
buffer,
then
ask
the
user
whether
to
look
in
other
the
current
buffer,
then
ask
the
user
whether
to
look
in
other
buffers
too.
buffers
too.
The
default
value
is
t.
")
The
default
value
is
t.
"
:type '(choice (const :tag "
off
" nil)
(const :tag "
on
" t)
(const :tag "
ask
" other))
:group 'dabbrev)
;; I guess setting this to a function that selects all C- or C++-
;; I guess setting this to a function that selects all C- or C++-
;; mode buffers would be a good choice for a debugging buffer,
;; mode buffers would be a good choice for a debugging buffer,
...
@@ -197,7 +228,7 @@ an example.
...
@@ -197,7 +228,7 @@ an example.
A
mode
setting
this
variable
should
make
it
buffer
local.
")
A
mode
setting
this
variable
should
make
it
buffer
local.
")
(def
var
dabbrev-friend-buffer-function 'dabbrev--same-major-mode-p
(def
custom
dabbrev-friend-buffer-function 'dabbrev--same-major-mode-p
"
*A
function
to
decide
whether
dabbrev
should
search
OTHER-BUFFER.
"
*A
function
to
decide
whether
dabbrev
should
search
OTHER-BUFFER.
The
function
should
take
one
argument,
OTHER-BUFFER,
and
return
The
function
should
take
one
argument,
OTHER-BUFFER,
and
return
non-nil
if
that
buffer
should
be
searched.
Have
a
look
at
non-nil
if
that
buffer
should
be
searched.
Have
a
look
at
...
@@ -207,9 +238,11 @@ The value of `dabbrev-friend-buffer-function' has an effect only if
...
@@ -207,9 +238,11 @@ The value of `dabbrev-friend-buffer-function' has an effect only if
the
value
of
`
dabbrev-select-buffers-function
'
uses
it.
The
function
the
value
of
`
dabbrev-select-buffers-function
'
uses
it.
The
function
`
dabbrev--select-buffers
'
is
one
function
you
can
use
here.
`
dabbrev--select-buffers
'
is
one
function
you
can
use
here.
A
mode
setting
this
variable
should
make
it
buffer
local.
")
A
mode
setting
this
variable
should
make
it
buffer
local.
"
:type 'function
:group 'dabbrev)
(def
var
dabbrev-search-these-buffers-only nil
(def
custom
dabbrev-search-these-buffers-only nil
"
If
non-nil,
a
list
of
buffers
which
dabbrev
should
search.
"
If
non-nil,
a
list
of
buffers
which
dabbrev
should
search.
If
this
variable
is
non-nil,
dabbrev
will
only
look
in
these
buffers.
If
this
variable
is
non-nil,
dabbrev
will
only
look
in
these
buffers.
It
will
not
even
look
in
the
current
buffer
if
it
is
not
a
member
of
It
will
not
even
look
in
the
current
buffer
if
it
is
not
a
member
of
...
...
lisp/desktop.el
View file @
bbf5eb28
...
@@ -104,13 +104,20 @@
...
@@ -104,13 +104,20 @@
;; ----------------------------------------------------------------------------
;; ----------------------------------------------------------------------------
;; USER OPTIONS -- settings you might want to play with.
;; USER OPTIONS -- settings you might want to play with.
;; ----------------------------------------------------------------------------
;; ----------------------------------------------------------------------------
(
defgroup
desktop
nil
"Save status of Emacs when you exit."
:group
'frames
)
(
defconst
desktop-basefilename
(
defconst
desktop-basefilename
(
convert-standard-filename
".emacs.desktop"
)
(
convert-standard-filename
".emacs.desktop"
)
"File for Emacs desktop, not including the directory name."
)
"File for Emacs desktop, not including the directory name."
)
(
def
var
desktop-missing-file-warning
nil
(
def
custom
desktop-missing-file-warning
nil
"*If non-nil then desktop warns when a file no longer exists.
"*If non-nil then desktop warns when a file no longer exists.
Otherwise it simply ignores that file."
)
Otherwise it simply ignores that file."
:type
'boolean
:group
'desktop
)
(
defvar
desktop-globals-to-save
(
defvar
desktop-globals-to-save
(
list
'desktop-missing-file-warning
(
list
'desktop-missing-file-warning
...
@@ -146,29 +153,39 @@ The variables are saved only when they really are local.")
...
@@ -146,29 +153,39 @@ The variables are saved only when they really are local.")
;; We skip .log files because they are normally temporary.
;; We skip .log files because they are normally temporary.
;; (ftp) files because they require passwords and whatnot.
;; (ftp) files because they require passwords and whatnot.
;; TAGS files to save time (tags-file-name is saved instead).
;; TAGS files to save time (tags-file-name is saved instead).
(
def
var
desktop-buffers-not-to-save
(
def
custom
desktop-buffers-not-to-save
"\\(^nn\\.a[0-9]+\\|\\.log\\|(ftp)\\|^tags\\|^TAGS\\)$"
"\\(^nn\\.a[0-9]+\\|\\.log\\|(ftp)\\|^tags\\|^TAGS\\)$"
"Regexp identifying buffers that are to be excluded from saving."
)
"Regexp identifying buffers that are to be excluded from saving."
:type
'regexp
:group
'desktop
)
;; Skip ange-ftp files
;; Skip ange-ftp files
(
def
var
desktop-files-not-to-save
(
def
custom
desktop-files-not-to-save
"^/[^/:]*:"
"^/[^/:]*:"
"Regexp identifying files whose buffers are to be excluded from saving."
)
"Regexp identifying files whose buffers are to be excluded from saving."
:type
'regexp
:group
'desktop
)
(
defvar
desktop-buffer-major-mode
nil
(
defcustom
desktop-buffer-major-mode
nil
"When desktop creates a buffer, this holds the desired Major mode."
)
"When desktop creates a buffer, this holds the desired Major mode."
:type
'symbol
:group
'desktop
)
(
defvar
desktop-buffer-file-name
nil
(
defcustom
desktop-buffer-file-name
nil
"When desktop creates a buffer, this holds the file name to visit."
)
"When desktop creates a buffer, this holds the file name to visit."
:type
'
(
choice
file
(
const
nil
))
:group
'desktop
)
(
defvar
desktop-buffer-name
nil
(
defcustom
desktop-buffer-name
nil
"When desktop creates a buffer, this holds the desired buffer name."
)
"When desktop creates a buffer, this holds the desired buffer name."
:type
'
(
choice
string
(
const
nil
))
:group
'desktop
)
(
defvar
desktop-buffer-misc
nil
(
defvar
desktop-buffer-misc
nil
"When desktop creates a buffer, this holds a list of misc info.
"When desktop creates a buffer, this holds a list of misc info.
It is used by the `desktop-buffer-handlers' functions."
)
It is used by the `desktop-buffer-handlers' functions."
)
(
def
var
desktop-buffer-handlers
(
def
custom
desktop-buffer-handlers
'
(
desktop-buffer-dired
'
(
desktop-buffer-dired
desktop-buffer-rmail
desktop-buffer-rmail
desktop-buffer-mh
desktop-buffer-mh
...
@@ -179,14 +196,18 @@ The functions are called without explicit parameters but can use the
...
@@ -179,14 +196,18 @@ The functions are called without explicit parameters but can use the
variables `desktop-buffer-major-mode', `desktop-buffer-file-name',
variables `desktop-buffer-major-mode', `desktop-buffer-file-name',
`desktop-buffer-name'.
`desktop-buffer-name'.
If one function returns non-nil, no further functions are called.
If one function returns non-nil, no further functions are called.
If the function returns t then the buffer is considered created."
)
If the function returns t then the buffer is considered created."
:type
'
(
repeat
function
)
:group
'desktop
)
(
defvar
desktop-create-buffer-form
"(desktop-create-buffer 205"
(
defvar
desktop-create-buffer-form
"(desktop-create-buffer 205"
"Opening of form for creation of new buffers."
)
"Opening of form for creation of new buffers."
)
(
def
var
desktop-save-hook
nil
(
def
custom
desktop-save-hook
nil
"Hook run before saving the desktop to allow you to cut history lists and
"Hook run before saving the desktop to allow you to cut history lists and
the like shorter."
)
the like shorter."
:type
'hook
:group
'desktop
)
;; ----------------------------------------------------------------------------
;; ----------------------------------------------------------------------------
(
defvar
desktop-dirname
nil
(
defvar
desktop-dirname
nil
"The directory in which the current desktop file resides."
)
"The directory in which the current desktop file resides."
)
...
...
lisp/jka-compr.el
View file @
bbf5eb28
;;; jka-compr.el --- reading/writing/loading compressed files
;;; jka-compr.el --- reading/writing/loading compressed files
;; Copyright (C) 1993, 1994 Free Software Foundation, Inc.
;; Copyright (C) 1993, 1994
, 1995, 1997
Free Software Foundation, Inc.
;; Author: jka@ece.cmu.edu (Jay K. Adams)
;; Author: jka@ece.cmu.edu (Jay K. Adams)
;; Keywords: data
;; Keywords: data
...
@@ -99,19 +99,29 @@
...
@@ -99,19 +99,29 @@
;;; Code:
;;; Code:
(
defvar
jka-compr-shell
"sh"
(
defgroup
compression
nil
"Data compression utilities"
:group
'data
)
(
defgroup
jka-compr
nil
"jka-compr customization"
:group
'compression
)
(
defcustom
jka-compr-shell
"sh"
"*Shell to be used for calling compression programs.
"*Shell to be used for calling compression programs.
The value of this variable only matters if you want to discard the
The value of this variable only matters if you want to discard the
stderr of a compression/decompression program (see the documentation
stderr of a compression/decompression program (see the documentation
for `jka-compr-compression-info-list')."
)
for `jka-compr-compression-info-list')."
:type
'string
:group
'jka-compr
)
(
defvar
jka-compr-use-shell
t
)
(
defvar
jka-compr-use-shell
t
)
;;; I have this defined so that .Z files are assumed to be in unix
;;; I have this defined so that .Z files are assumed to be in unix
;;; compress format; and .gz files, in gzip format.
;;; compress format; and .gz files, in gzip format.
(
def
var
jka-compr-compression-info-list
(
def
custom
jka-compr-compression-info-list
;;[regexp
;;[regexp
;; compr-message compr-prog compr-args
;; compr-message compr-prog compr-args
;; uncomp-message uncomp-prog uncomp-args
;; uncomp-message uncomp-prog uncomp-args
...
@@ -160,7 +170,21 @@ APPEND-FLAG EXTENSION], where:
...
@@ -160,7 +170,21 @@ APPEND-FLAG EXTENSION], where:
Because of the way `call-process' is defined, discarding the stderr output of
Because of the way `call-process' is defined, discarding the stderr output of
a program adds the overhead of starting a shell each time the program is
a program adds the overhead of starting a shell each time the program is
invoked."
)
invoked."
:type
'
(
repeat
(
vector
regexp
(
choice
:tag
"Compress Message"
(
string
:format
"%v"
)
(
const
:tag
"No Message"
nil
))
(
string
:tag
"Compress Program"
)
(
repeat
:tag
"Compress Arguments"
string
)
(
choice
:tag
"Uncompress Message"
(
string
:format
"%v"
)
(
const
:tag
"No Message"
nil
))
(
string
:tag
"Uncompress Program"
)
(
repeat
:tag
"Uncompress Arguments"
string
)
(
boolean
:tag
"Append"
)
(
boolean
:tag
"Auto Mode"
)))
:group
'jka-compr
)
(
defvar
jka-compr-mode-alist-additions
(
defvar
jka-compr-mode-alist-additions
(
list
(
cons
"\\.tgz\\'"
'tar-mode
))
(
list
(
cons
"\\.tgz\\'"
'tar-mode
))
...
@@ -312,11 +336,12 @@ to keep: LEN chars starting BEG chars from the beginning."
...
@@ -312,11 +336,12 @@ to keep: LEN chars starting BEG chars from the beginning."
;;; Support for temp files. Much of this was inspired if not lifted
;;; Support for temp files. Much of this was inspired if not lifted
;;; from ange-ftp.
;;; from ange-ftp.
(
def
var
jka-compr-temp-name-template
(
def
custom
jka-compr-temp-name-template
(
expand-file-name
"jka-com"
(
expand-file-name
"jka-com"
(
or
(
getenv
"TMPDIR"
)
"/tmp/"
))
(
or
(
getenv
"TMPDIR"
)
"/tmp/"
))
"Prefix added to all temp files created by jka-compr.
There
should
be
no
more
than
seven
characters
after
the
final
`
/
'.
"
There should be no more than seven characters after the final `/'"
)
:type 'string
:group 'jka-compr)
(defvar jka-compr-temp-name-table (make-vector 31 nil))
(defvar jka-compr-temp-name-table (make-vector 31 nil))
...
...
lisp/progmodes/executable.el
View file @
bbf5eb28
...
@@ -52,39 +52,59 @@
...
@@ -52,39 +52,59 @@
;;; Code:
;;; Code:
(
defvar
executable-insert
t
(
defgroup
executable
nil
"Base functionality for executable interpreter scripts"
:group
'processes
)
(
defcustom
executable-insert
'other
"*Non-nil means offer to add a magic number to a file.
"*Non-nil means offer to add a magic number to a file.
This takes effect when you switch to certain major modes,
This takes effect when you switch to certain major modes,
including Shell-script mode (`sh-mode').
including Shell-script mode (`sh-mode').
When you type \\[executable-set-magic], it always offers to add or
When you type \\[executable-set-magic], it always offers to add or
update the magic number."
)
update the magic number."
:type
'
(
choice
(
const
:tag
"off"
nil
)
(
const
:tag
"on"
t
)
symbol
)
:group
'executable
)
(
defvar
executable-query
'function
"*If non-nil, ask user before changing an existing magic number.
When this is `function', only ask when called non-interactively."
)
(
defcustom
executable-query
'function
"*If non-nil, ask user before changing an existing magic number.
When this is `function', only ask when called non-interactively."
:type
'
(
choice
(
const
:tag
"Don't Ask"
nil
)
(
const
:tag
"Ask"
t
)
(
const
:tag
"Ask when non-interactive"
function
))
:group
'executable
)
(
defvar
executable-magicless-file-regexp
"/[Mm]akefile$\\|/\\.\\(z?profile\\|bash_profile\\|z?login\\|bash_login\\|z?logout\\|bash_logout\\|.+shrc\\|esrc\\|rcrc\\|[kz]shenv\\)$"
"*On files with this kind of name no magic is inserted or changed."
)
(
defcustom
executable-magicless-file-regexp
"/[Mm]akefile$\\|/\\.\\(z?profile\\|bash_profile\\|z?login\\|bash_login\\|z?logout\\|bash_logout\\|.+shrc\\|esrc\\|rcrc\\|[kz]shenv\\)$"
"*On files with this kind of name no magic is inserted or changed."
:type
'regexp
:group
'executable
)
(
defvar
executable-prefix
"#! "
"*Interpreter magic number prefix inserted when there was no magic number."
)
(
defcustom
executable-prefix
"#! "
"*Interpreter magic number prefix inserted when there was no magic number."
:type
'string
:group
'executable
)
(
def
var
executable-chmod
73
(
def
custom
executable-chmod
73
"*After saving, if the file is not executable, set this mode.
"*After saving, if the file is not executable, set this mode.
This mode passed to `set-file-modes' is taken absolutely when negative, or
This mode passed to `set-file-modes' is taken absolutely when negative, or
relative to the files existing modes. Do nothing if this is nil.
relative to the files existing modes. Do nothing if this is nil.
Typical values are 73 (+x) or -493 (rwxr-xr-x)."
)