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
Open sidebar
emacs
emacs
Commits
5099d512
Commit
5099d512
authored
Feb 09, 2008
by
Eli Zaretskii
Browse files
(compilation-find-file): Doc fix.
parent
d0048c60
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
lisp/ChangeLog
lisp/ChangeLog
+1
-0
lisp/progmodes/compile.el
lisp/progmodes/compile.el
+6
-2
No files found.
lisp/ChangeLog
View file @
5099d512
2008-02-09 Eli Zaretskii <eliz@gnu.org>
* progmodes/compile.el (compilation-next-error): Doc fix.
(compilation-find-file): Doc fix.
2008-02-09 Glenn Morris <rgm@gnu.org>
lisp/progmodes/compile.el
View file @
5099d512
...
...
@@ -1848,13 +1848,17 @@ and overlay is highlighted between MK and END-MK."
(
defun
compilation-find-file
(
marker
filename
directory
&rest
formats
)
"Find a buffer for file FILENAME.
If FILENAME is not found at all, ask the user where to find it.
Pop up the buffer containing MARKER and scroll to MARKER if we ask
the user where to find the file.
Search the directories in `compilation-search-path'.
A nil in `compilation-search-path' means to try the
\"current\" directory, which is passed in DIRECTORY.
If DIRECTORY is relative, it is combined with `default-directory'.
If DIRECTORY is nil, that means use `default-directory'.
If FILENAME is not found at all, ask the user where to find it.
Pop up the buffer containing MARKER and scroll to MARKER if we ask the user."
FORMATS, if given, is a list of formats to reformat FILENAME when
looking for it: for each element FMT in FORMATS, this function
attempts to find a file whose name is produced by (format FMT FILENAME)."
(
or
formats
(
setq
formats
'
(
"%s"
)))
(
let
((
dirs
compilation-search-path
)
(
spec-dir
(
if
directory
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment