乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
查看: 69|回复: 1

[编程交流] S::STARTUP problem

[复制链接]

8

主题

24

帖子

16

银币

初来乍到

Rank: 1

铜币
41
发表于 2022-7-6 00:02:41 | 显示全部楼层 |阅读模式
Hi all
 
I have 3 mnl files that each append to the S::STARTUP function.
 
Menu1.mnl Has MENU1, Menu2.mnl Has MENU2 and Menu3.mnl has MENU3
  1. (defun-q MENU1 ()...code....)(setq S::STARTUP (append S::STARTUP MENU1))(defun-q MENU2 ()...code....)(setq S::STARTUP (append S::STARTUP MENU2))(defun-q MENU3 ()...code....)(setq S::STARTUP (append S::STARTUP MENU3))
 
2 out of the 3 load.
Does anybody know why?
 
Also is this a good method?
The code for the functions are all Autoloads
e.g.
  1. (autoload "command" '("CMD1" "CMD2"))

Regards
Shoey
回复

使用道具 举报

8

主题

24

帖子

16

银币

初来乍到

Rank: 1

铜币
41
发表于 2022-7-6 01:08:50 | 显示全部楼层
Hi all
 
As Del Boy would say............ What a Plonker!
 
One of the menus i was adding the appended s::startup to was in a different location.
Meaning the old menu with a (defun-q S::STARTUP () was not being loaded as another S::STARTUP was defined.
 
Copied and replaced the MNL. All fine now.
 
Lovely jubbly............
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-3-10 21:10 , Processed in 0.336279 second(s), 56 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表