LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 905|回复: 3

谁能帮我看看下面的emacs扩展中的一段代码什么意思

[复制链接]
发表于 2006-4-13 19:06:11 | 显示全部楼层 |阅读模式
  1. (and (display-images-p)
  2.      (define-fringe-bitmap 'breakpoint
  3.        "\x3c\x7e\xff\xff\xff\xff\x7e\x3c"))
复制代码


这三行在gdb-ui.el插件中的,加载错误:
Symbol's function definition is void:define-fringe-bitmap

把这三行注释掉就能通过
发表于 2006-4-13 20:03:18 | 显示全部楼层
  1. define-fringe-bitmap is a built-in function in `src/fringe.c'.
  2. (define-fringe-bitmap bitmap bits &optional height width align)

  3. Define fringe bitmap bitmap from bits of size height x width.
  4. bitmap is a symbol or string naming the new fringe bitmap.
  5. bits is either a string or a vector of integers.
  6. height is height of bitmap.  If height is nil, use length of bits.
  7. width must be an integer between 1 and 16, or nil which defaults to 8.
  8. Optional fifth arg align may be one of `top', `center', or `bottom',
  9. indicating the positioning of the bitmap relative to the rows where it
  10. is used; the default is to center the bitmap.  Fourth arg may also be a
  11. list (align PERIODIC) where PERIODIC non-nil specifies that the bitmap
  12. should be repeated.
  13. If bitmap already exists, the existing definition is replaced.
复制代码


就是那个三角。

  1. display-images-p is a compiled Lisp function in `frame.el'.
  2. (display-images-p &optional display)

  3. Return non-nil if display can display images.

  4. display can be a display name, a frame, or nil (meaning the selected
  5. frame's display).
复制代码


你是怎么运行的?错误是什么?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-14 11:53:55 | 显示全部楼层
不是运行了,就是有个gdb-ui.el的包里有这三句话
然后我在.emacs里加上了
(add-to-list 'load-path "~/download")
(require 'gdb-ui)

然后在emacs中运行load-file ./.emacs,然后就挂了,错误提示如首贴
回复 支持 反对

使用道具 举报

发表于 2006-4-14 13:00:21 | 显示全部楼层
define-fringe-bitmap 是 Emacs CVS 里的源代码。你的 Emacs 什么版本?
回复 支持 反对

使用道具 举报

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

本版积分规则

快速回复 返回顶部 返回列表