TAILIEUCHUNG - An Introduction to Programming in Emacs Lisp phần 10

= Function 1 là 'khoảng trống'. Trong GNU Emacs 20 và trước đó, bạn sẽ thấy: Định nghĩa chức năng của biểu tượng không có giá trị: 1 = có ý nghĩa giống như 'backtrace' đường bộ đệm trong phiên bản 21. Tuy nhiên, giả sử bạn đang không hoàn toàn chắc chắn những gì đang xảy ra? Bạn có thể đọc backtrace hoàn thành. | X Axis Tic Marks 263 The print-X-axis Function X axis labels are much like Y axis labels except that the tics are on a line above the numbers. Labels should look like this I I I I 1 5 10 15 The first tic is under the first column of the graph and is preceded by several blank spaces. These spaces provide room in rows above for the Y axis labels. The second third fourth and subsequent tics are all spaced equally according to the value of X-axis-label-spacing. The second row of the X axis consists of numbers preceded by several blank spaces and also separated according to the value of the variable X-axis-label-spacing. The value of the variable X-axis-label-spacing should itself be measured in units of symbol-width since you may want to change the width of the symbols that you are using to print the body of the graph without changing the ways the graph is labelled. The print-X-axis function is constructed in more or less the same fashion as the print-Y-axis function except that it has two lines the line of tic marks and the numbers. We will write a separate function to print each line and then combine them within the print-X-axis function. This is a three step process 1. Write a function to print the X axis tic marks print-X-axis-tic-line. 2. Write a function to print the X numbers print-X-axis-numbered-line. 3. Write a function to print both lines the print-X-axis function using print-X-axis-tic-line and print-X-axis-numbered-line. X Axis Tic Marks The first function should print the X axis tic marks. We must specify the tic marks themselves and their spacing defvar X-axis-label-spacing if boundp graph-blank 5 length graph-blank 5 Number of units from one X axis label to next. Note that the value of graph-blank is set by another defvar. The boundp predicate checks whether it has already been set boundp returns nil if it has not. If graph-blank were unbound and we did not use this conditional construction in GNU Emacs 21 we would enter the debugger and see .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.