At 11:38 AM 8/27/99 -0700, Brian Stiles wrote:
>Paul Kinnucan wrote:
>>
>> The net effect is that settings of JDE variables are local to
>> project frames not to source buffers. This means that you can open
>> another project's source file in the current project's frame without
>> triggering an update to the new project's variables. This is very
>
>It seems that this confines users running emacs in a text-only terminal
>(not X) to only working with one project at a time. Would it be
>possible to switch between this new scheme and the current functionality
>so that it is possible to use multiple projects in a text-only
>terminal? Maybe it is as simple as adding a jde-mode-hook that switches
>the project upon entering a buffer if the source belongs to a different
>project and emacs is not running under X? If full functionality of the
>current JDE can be maintained by this or some other means under in a
>text-only terminal, then I'd say this sounds pretty nice. If not, I'd
>be torn. I like the new feature, but I do use emacs in text-only
>terminals sometimes and I don't want to lose the automatic project
>switching.
>
One way to do provide for both the current and proposed project modes is to
use the proposed mode for project frames (i.e., frames created by the Open
Project command) and the current behavior if you simply open a source file.
In other words,
File->JDE New->Open Project
creates a project frame in which the JDE settings for that project apply to
any source file that you open in that frame regardless of which project the
source file belongs to. If you simply open a source file in the root frame
or in a frame created by some other means then Open Project, the current
mode applies, i.e., JDE variables are updated whenever you change from a
buffer belonging to one project to a buffer belonging to another.
Further, when you execute
File->JDE New->Open Project
the JDE prompts you in the minibuffer to enter the path to the prj.el file
for that project, with the default being the first prj.el file that the JDE
finds starting of the directory tree from the current directory. This
preserves the current way of doing things while allowing you to use an
arbitrarily located prj.el file.
- Paul