Changeset 37756
- Timestamp:
- 06/21/08 18:25:48 (5 months ago)
- Files:
-
- 1 modified
-
trunk/base/src/port/port.tcl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/base/src/port/port.tcl
r37728 r37756 2242 2242 global env boot_env 2243 2243 global current_portdir 2244 2245 array set local_options $opts 2244 2246 2245 2247 set status 0 … … 2293 2295 # Find an editor to edit the portfile 2294 2296 set editor "" 2295 foreach ed { VISUAL EDITOR } { 2296 if {[info exists env($ed)]} { 2297 set editor $env($ed) 2298 break 2297 if {[info exists local_options(ports_edit_editor)]} { 2298 set editor $local_options(ports_edit_editor) 2299 } elseif {[info exists local_options(ports_ed_editor)]} { 2300 set editor $local_options(ports_edit_editor) 2301 } else { 2302 foreach ed { VISUAL EDITOR } { 2303 if {[info exists env($ed)]} { 2304 set editor $env($ed) 2305 break 2306 } 2299 2307 } 2300 2308 } … … 2624 2632 global cmd_args_array 2625 2633 array set cmd_args_array { 2634 edit {{editor 1}} 2635 ed {{editor 1}} 2626 2636 info {{category 0} {categories 0} {depends_build 0} {depends_lib 0} 2627 2637 {depends_run 0} {depends 0} {description 0} {epoch 0}

