Next: , Previous: , Up: Files   [Contents][Index]


13.2 Pathnames and Buffers

There is no good way to uniquely identify buffer names and pathnames. However, Hemlock has one way of mapping pathnames to buffer names that should be used for consistency among customizations and primitives. Independent of this, Hemlock provides a means for consistently generating prompting defaults when asking the user for pathnames.

Function: pathname-to-buffer-name pathname

This function returns a string of the form "file-namestring directory-namestring".

Hemlock Variable: Pathname Defaults (initial value (pathname "gazonk.del"))
Hemlock Variable: Last Resort Pathname Defaults Function
Hemlock Variable: Last Resort Pathname Defaults (initial value (pathname "gazonk"))

These variables control the computation of default pathnames when needed for promting the user. Pathname Defaults is a sticky default. See the Hemlock User’s Manual for more details.

Function: buffer-default-pathname buffer

This returns Buffer Pathname if it is bound. If it is not bound, and buffer’s name is composed solely of alphnumeric characters, then return a pathname formed from buffer’s name. If buffer’s name has other characters in it, then return the value of Last Resort Pathname Defaults Function called on buffer.


Next: File Groups, Previous: File Options and Type Hooks, Up: Files   [Contents][Index]