Lugaru's Epsilon
Programmer's
Editor

Context:
Epsilon User's Manual and Reference
   . . .
   Commands by Topic
      Getting Help
      Moving Around
      Changing Text
      . . .
      Miscellaneous
   Command Reference
      . . .
      copy-file-name
      copy-formatting-as-html
      copy-include-file-name
      copy-rectangle
      copy-region
      . . .
   Variable Reference
      abort-file-io
      abort-file-matching
      abort-key
      . . .
      yank-rectangle-to-corner
   . . .

Previous   Up    Next
copy-formatting-as-html  Command Reference   copy-rectangle


Epsilon User's Manual and Reference > Command Reference >

copy-include-file-name

Put an #include for the current file on the clipboard.  Ctrl-C Alt-i

For C mode buffers, this command constructs an #include directive that will reference the current file when inserted in some other source file. It uses the same logic as find-linked-file to find the shortest, simplest pathname that will still locate the current file, so it doesn't have to include the full path of the file.

For other languages, it uses the appropriate syntax for including files in that language, by looking for a variable of the form copy-include-file-name-mode, where mode is the current mode name. The variable holds a file name template (see Backup Files) which is used to format the current file's name. If there's a function by that name, not a variable, Epsilon simply calls it.

Also see the copy-include-file-name-options variable.

More info:

Automatically Generated Text
Reading Files
System Primitives (Primitives)



Previous   Up    Next
copy-formatting-as-html  Command Reference   copy-rectangle


Lugaru Copyright (C) 1984, 2012 Lugaru Software Ltd. All Rights Reserved.